'compiz-decorator' file changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
In Progress
|
High
|
BryanFRitt |
Bug Description
#!/bin/sh
# Starts Compiz Decorator depending on the DE
#
# Copyright (c) 2007 CyberOrg <email address hidden>
# Based on compiz-manager script by Kristian Lyngstøl <email address hidden>
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Contributions by: crdlb
# Modifications by: Daniel van Vugt <email address hidden>
#
# changes made by BryanFRitt to compiz-decorator script:
# Does the '/' in paths work differently in script languages/systems?
# added '/' in paths,
# someone TODO:
# put this(or something like it) in as default for the decor plugin Command option:
# exec "${COMPIZ_
# changed to `which metacity`
# changed string to compare $DESKTOP_SESSION with, 'plasma-kde'
# added '--replace &' in the calling function,
# --replace, that way it'll replace the current decorator,
# and the ' &' so that the terminal will be freed up.
# IDEA: rename FALLBACKWM_OPTIONS something different, and use the new name instead of the '--replace' I added
# default the bin path is the same as the path of this file, instead of /usr/bin <- if this isn't a good idea, please revert, or change
#
if [ -z "$COMPIZ_BIN_PATH" ]; then
# COMPIZ_
# default to the bin path is in the same path as this file, or do above?
COMPIZ_
#echo "$COMPIZ_BIN_PATH";
fi
KWIN=`which kwin`
#METACITY=
METACITY=`which metacity`
#
# Default to gtk/kde4-
#
USE_EMERALD="no"
DECORATOR=""
#Do not leave users without decoration if decorator fails
# try out `echo "$DESKTOP_SESSION"` it gives back "kde-plasma" on KDE
#if [ "$DESKTOP_SESSION" = "kde" ]; then
if [ "$DESKTOP_SESSION" = "kde-plasma" ]; then
FALLBACKWM=
else
FALLBACKWM=
fi
FALLBACKWM_
#
# Set to yes to enable verbose
#
VERBOSE="yes"
#
# Echos the arguments if verbose
#
verbose()
{
if [ "x$VERBOSE" = "xyes" ]; then
printf "$*"
fi
}
# Read configuration from XDG paths
if [ -z "$XDG_CONFIG_DIRS" ]; then
test -f /etc/xdg/
else
test -f $XDG_CONFIG_
fi
if [ -z "$XDG_CONFIG_HOME" ]; then
test -f $HOME/.
else
test -f $XDG_CONFIG_
fi
# start a decorator
# slashes needed here too
if [ -x ${COMPIZ_
DECORATOR=
elif [ -x ${COMPIZ_
DECORATOR=
elif [ -x ${COMPIZ_
DECORATOR=
fi
# fall back to any decorator that is installed
if [ -z "$DECORATOR" ]; then
verbose "Couldn't find a perfect decorator match; trying all decorators\n"
# These needs '/' in them to get the path
if [ -x ${COMPIZ_
elif [ -x ${COMPIZ_
DECORATOR=
elif [ -x ${COMPIZ_
DECORATOR=
fi
fi
if [ -n "$DECORATOR" ]; then
verbose "Starting ${DECORATOR}\n"
# another spot with a '/' needed, also added --replace
exec ${COMPIZ_
else
verbose "Found no decorator to start\n"
exec $FALLBACKWM $FALLBACKWM_OPTIONS
fi
Related branches
- PS Jenkins bot (community): Approve (continuous-integration)
- MC Return: Pending requested
- Daniel van Vugt: Pending requested
- Sam Spilsbury: Pending requested
-
Diff: 378 lines (+128/-107)3 files modifieddebian/patches/ubuntu-config.patch (+60/-39)
plugins/decor/decor.xml.in (+1/-1)
plugins/decor/src/compiz-decorator (+67/-67)
- Daniel van Vugt: Needs Resubmitting
- Sam Spilsbury: Needs Fixing
- MC Return: Approve
-
Diff: 172 lines (+68/-68)2 files modifiedplugins/decor/decor.xml.in (+1/-1)
plugins/decor/src/compiz-decorator (+67/-67)
description: | updated |
Changed in compiz: | |
milestone: | none → 0.9.10.0 |
importance: | Undecided → Medium |
tags: | added: patch |
Changed in compiz: | |
assignee: | nobody → MC Return (mc-return) |
status: | Invalid → New |
status: | New → Triaged |
Changed in compiz: | |
assignee: | MC Return (mc-return) → nobody |
assignee: | nobody → BryanFRitt (bryanfritt) |
Changed in compiz: | |
status: | Triaged → In Progress |
importance: | Medium → High |
Changed in compiz: | |
milestone: | 0.9.10.0 → 0.9.10.2 |
Changed in compiz: | |
milestone: | 0.9.10.2 → 0.9.11.0 |
Changed in compiz: | |
milestone: | 0.9.11.0 → 0.9.12.1 |
Changed in compiz: | |
milestone: | 0.9.12.1 → 0.9.12.2 |
Please propose merge requests for changes.