Merge lp:~noskcaj/ubuntu/trusty/xfce4-session/4.10.1-3 into lp:ubuntu/trusty/xfce4-session

Proposed by Jackson Doak
Status: Merged
Merged at revision: 75
Proposed branch: lp:~noskcaj/ubuntu/trusty/xfce4-session/4.10.1-3
Merge into: lp:ubuntu/trusty/xfce4-session
Diff against target: 413 lines (+291/-9)
14 files modified
.pc/01_fix-xrdb-call.patch/scripts/xinitrc.in.in (+192/-0)
.pc/applied-patches (+1/-0)
.pc/xubuntu_set-xdg-current-desktop.patch/scripts/xinitrc.in.in (+1/-1)
debian/55xfce4-session (+18/-0)
debian/changelog (+53/-0)
debian/control (+3/-3)
debian/defaults.list (+1/-0)
debian/patches/01_fix-xrdb-call.patch (+11/-0)
debian/patches/series (+1/-0)
debian/rules (+4/-4)
debian/xfce4-session.dirs (+2/-0)
debian/xfce4-session.install (+2/-0)
debian/xfce4-session.links (+1/-0)
scripts/xinitrc.in.in (+1/-1)
To merge this branch: bzr merge lp:~noskcaj/ubuntu/trusty/xfce4-session/4.10.1-3
Reviewer Review Type Date Requested Status
Ubuntu branches Pending
Review via email: mp+192405@code.launchpad.net

Description of the change

Merge from debian

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== added directory '.pc/01_fix-xrdb-call.patch'
=== added directory '.pc/01_fix-xrdb-call.patch/scripts'
=== added file '.pc/01_fix-xrdb-call.patch/scripts/xinitrc.in.in'
--- .pc/01_fix-xrdb-call.patch/scripts/xinitrc.in.in 1970-01-01 00:00:00 +0000
+++ .pc/01_fix-xrdb-call.patch/scripts/xinitrc.in.in 2013-10-23 21:22:20 +0000
@@ -0,0 +1,192 @@
1#!/bin/sh
2
3# fix broken $UID on some system...
4if test "x$UID" = "x"; then
5 if test -x /usr/xpg4/bin/id; then
6 UID=`/usr/xpg4/bin/id -u`;
7 else
8 UID=`id -u`;
9 fi
10fi
11
12# set $XDG_MENU_PREFIX to "xfce-" so that "xfce-applications.menu" is picked
13# over "applications.menu" in all Xfce applications.
14if test "x$XDG_MENU_PREFIX" = "x"; then
15 XDG_MENU_PREFIX="xfce-"
16 export XDG_MENU_PREFIX
17fi
18
19# set DESKTOP_SESSION so that one can detect easily if an Xfce session is running
20if test "x$DESKTOP_SESSION" = "x"; then
21 DESKTOP_SESSION="xfce"
22 export DESKTOP_SESSION
23fi
24
25# $XDG_CONFIG_HOME defines the base directory relative to which user specific
26# configuration files should be stored. If $XDG_CONFIG_HOME is either not set
27# or empty, a default equal to $HOME/.config should be used.
28if test "x$XDG_CONFIG_HOME" = "x" ; then
29 XDG_CONFIG_HOME=$HOME/.config
30fi
31[ -d "$XDG_CONFIG_HOME" ] || mkdir "$XDG_CONFIG_HOME"
32
33# $XDG_CACHE_HOME defines the base directory relative to which user specific
34# non-essential data files should be stored. If $XDG_CACHE_HOME is either not
35# set or empty, a default equal to $HOME/.cache should be used.
36if test "x$XDG_CACHE_HOME" = "x" ; then
37 XDG_CACHE_HOME=$HOME/.cache
38fi
39[ -d "$XDG_CACHE_HOME" ] || mkdir "$XDG_CACHE_HOME"
40
41# set up XDG user directores. see
42# http://freedesktop.org/wiki/Software/xdg-user-dirs
43if which xdg-user-dirs-update >/dev/null 2>&1; then
44 xdg-user-dirs-update
45fi
46
47# Modify libglade and glade environment variables so that
48# it will find the files installed by Xfce
49GLADE_CATALOG_PATH="$GLADE_CATALOG_PATH:@XFCE_GLADE_CATALOG_PATH@"
50GLADE_PIXMAP_PATH="$GLADE_PIXMAP_PATH:@XFCE_GLADE_PIXMAP_PATH@"
51GLADE_MODULE_PATH="$GLADE_MODULE_PATH:@XFCE_GLADE_MODULE_PATH@"
52export GLADE_CATALOG_PATH
53export GLADE_PIXMAP_PATH
54export GLADE_MODULE_PATH
55
56# For now, start with an empty list
57XRESOURCES=""
58
59# Has to go prior to merging Xft.xrdb, as its the "Defaults" file
60test -r "@_sysconfdir_@/xdg/xfce4/Xft.xrdb" && XRESOURCES="$XRESOURCES @_sysconfdir_@/xdg/xfce4/Xft.xrdb"
61test -r $HOME/.Xdefaults && XRESOURCES="$XRESOURCES $HOME/.Xdefaults"
62
63BASEDIR=$XDG_CONFIG_HOME/xfce4
64if test -r "$BASEDIR/Xft.xrdb"; then
65 XRESOURCES="$XRESOURCES $BASEDIR/Xft.xrdb"
66elif test -r "$XFCE4HOME/Xft.xrdb"; then
67 mkdir -p "$BASEDIR"
68 cp "$XFCE4HOME/Xft.xrdb" "$BASEDIR"/
69 XRESOURCES="$XRESOURCES $BASEDIR/Xft.xrdb"
70fi
71
72# merge in X cursor settings
73test -r "$BASEDIR/Xcursor.xrdb" && XRESOURCES="$XRESOURCES $BASEDIR/Xcursor.xrdb"
74
75# ~/.Xresources contains overrides to the above
76test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"
77
78# load all X resources (adds /dev/null to avoid an empty list that would hang the process)
79cat /dev/null $XRESOURCES | xrdb -nocpp -merge -
80
81# load local modmap
82test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
83
84# run xfce4-session if installed
85if which xfce4-session >/dev/null 2>&1; then
86
87 # check if we start xfce4-session with ck-launch-session. this is only
88 # required for starting from a console, not a login manager
89 if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then
90 if which ck-launch-session >/dev/null 2>&1; then
91 ck-launch-session xfce4-session
92 else
93 echo
94 echo "You have tried to start Xfce with consolekit support, but"
95 echo "ck-launch-session is not installed."
96 echo "Aborted startup..."
97 echo
98
99 exit 1
100 fi
101 else
102 # start xfce4-session normally
103 xfce4-session
104 fi
105
106 exit 0
107fi
108
109##################
110# IMPORTANT NOTE #
111##################
112
113# Everything below here ONLY gets executed if you are NOT using xfce4-session
114# (Xfce's session manager). If you are using the session manager, everything
115# below is handled by it, and the code below is not executed at all. If you're
116# not sure if you're using the session manager, type 'ps -e|grep xfce4-session'
117# in a terminal while Xfce is running.
118
119##################
120
121# Use dbus-launch if installed.
122if test x"$DBUS_SESSION_BUS_ADDRESS" = x""; then
123 if which dbus-launch >/dev/null 2>&1; then
124 eval `dbus-launch --sh-syntax --exit-with-session`
125 # some older versions of dbus don't export the var properly
126 export DBUS_SESSION_BUS_ADDRESS
127 else
128 echo "Could not find dbus-launch; Xfce will not work properly" >&2
129 fi
130fi
131
132# this is only necessary when running w/o xfce4-session
133xsetroot -solid black -cursor_name watch
134
135# or use old-fashioned startup script otherwise
136
137xfsettingsd &
138xfwm4 --daemon
139
140# start up stuff in $XDG_CONFIG_HOME/autostart/
141if test -d "$XDG_CONFIG_HOME/autostart"; then
142 for i in ${XDG_CONFIG_HOME}/autostart/*.desktop; do
143 grep -q -E "^Hidden=true" "$i" && continue
144 if grep -q -E "^OnlyShowIn=" "$i"; then
145 # need to test twice, as lack of the line entirely means we still run it
146 grep -E "^OnlyShowIn=" "$i" | grep -q 'XFCE;' || continue
147 fi
148 grep -E "^NotShowIn=" "$i" | grep -q 'XFCE;' && continue
149
150 # check for TryExec
151 trycmd=`grep -E "^TryExec=" "$i" | cut -d'=' -f2`
152 if test "$trycmd"; then
153 which "$trycmd" >/dev/null 2>&1 || continue
154 fi
155
156 cmd=`grep -E "^Exec=" "$i" | cut -d'=' -f2`
157 if test "$cmd" && which "$cmd" >/dev/null 2>&1; then
158 $cmd &
159 fi
160 done
161fi
162
163xfdesktop&
164orage &
165
166panel=`which xfce4-panel`
167case "x$panel" in
168 x|xno*)
169 ;;
170 *)
171 $panel
172 ret=$?
173 while test $ret -ne 0; do
174 xmessage -center -file - -timeout 20 -title Error <<EOF
175A crash occured in the panel
176Please report this to the xfce4-dev@xfce.org list
177or on http://bugs.xfce.org
178Meanwhile the panel will be restarted
179EOF
180 cat >&2 <<EOF
181A crash occured in the panel
182Please report this to the xfce4-dev@xfce.org list
183or on http://bugs.xfce.org
184Meanwhile the panel will be restarted
185EOF
186 $panel
187 ret=$?
188 done
189 ;;
190esac
191
192xsetroot -bg white -fg red -solid black -cursor_name watch
0193
=== modified file '.pc/applied-patches'
--- .pc/applied-patches 2013-07-01 19:35:39 +0000
+++ .pc/applied-patches 2013-10-23 21:22:20 +0000
@@ -1,3 +1,4 @@
101_fix-xrdb-call.patch
1xubuntu_ignore-gdm-lang.patch2xubuntu_ignore-gdm-lang.patch
2xubuntu_set-xdg-current-desktop.patch3xubuntu_set-xdg-current-desktop.patch
3xubuntu_runtime-logind-support.patch4xubuntu_runtime-logind-support.patch
45
=== modified file '.pc/xubuntu_set-xdg-current-desktop.patch/scripts/xinitrc.in.in'
--- .pc/xubuntu_set-xdg-current-desktop.patch/scripts/xinitrc.in.in 2012-05-18 20:21:52 +0000
+++ .pc/xubuntu_set-xdg-current-desktop.patch/scripts/xinitrc.in.in 2013-10-23 21:22:20 +0000
@@ -76,7 +76,7 @@
76test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"76test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"
7777
78# load all X resources (adds /dev/null to avoid an empty list that would hang the process)78# load all X resources (adds /dev/null to avoid an empty list that would hang the process)
79cat /dev/null $XRESOURCES | xrdb -nocpp -merge -79cat /dev/null $XRESOURCES | xrdb -merge -
8080
81# load local modmap81# load local modmap
82test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap82test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
8383
=== added file 'debian/55xfce4-session'
--- debian/55xfce4-session 1970-01-01 00:00:00 +0000
+++ debian/55xfce4-session 2013-10-23 21:22:20 +0000
@@ -0,0 +1,18 @@
1# For Xfce, we add a directory to XDG_DATA_DIRS
2# to allow the admin to set, for example, defaults.list properly
3BASESTARTUP=$(basename "$STARTUP" | cut -d\ -f1)
4if [ "$BASESTARTUP" = x-session-manager ]; then
5 BASESTARTUP=$(basename $(readlink /etc/alternatives/x-session-manager))
6fi
7case "$BASESTARTUP" in
8 xfce4-session|startxfce4)
9 # We prepend /usr/share/xfce4 since its defaults.list actually points
10 # to /etc so it is configurable.
11 if [ -z "$XDG_DATA_DIRS" ]; then
12 XDG_DATA_DIRS=/usr/share/xfce4:/usr/local/share/:/usr/share/
13 else
14 XDG_DATA_DIRS=/usr/share/xfce4:"$XDG_DATA_DIRS"
15 fi
16 export XDG_DATA_DIRS
17 ;;
18esac
019
=== modified file 'debian/changelog'
--- debian/changelog 2013-07-01 19:35:39 +0000
+++ debian/changelog 2013-10-23 21:22:20 +0000
@@ -1,3 +1,56 @@
1xfce4-session (4.10.1-3ubuntu1) UNRELEASED; urgency=low
2
3 * Merge from Debian unstable, remaining Ubuntu changes:
4 - debian/patches:
5 + xubuntu_ignore-gdm-lang.patch: do not set $LANG to $GDM_LANG, there's
6 already an xsession script to do that, and $GDM_LANG might not contain
7 a valid locale code.
8 + xubuntu_set-xdg-current-desktop.patch: added. Taken from xfce4-utils,
9 export XDG_CURRENT_DESKTOP=XFCE, can be useful with alacarte and
10 gnome-menus.
11 + debian/patches/xubuntu_runtime-logind-support.patch:
12 Check for logind support at runtime
13 - debian/rules:
14 + call xdt-autogen after patching
15 + clean up autogenerated files modified by xdt-autogen.
16 - debian/control:
17 + add build-dep on libpolkit-gobject-1-dev (>= 0.100).
18 + add build-dep on xfce4-dev-tools and libtool in order to run xdt-autogen
19 after patching.
20 + don't recommend consolekit anymore.
21
22 -- Jackson Doak <noskcaj@ubuntu.com> Thu, 24 Oct 2013 08:09:19 +1100
23
24xfce4-session (4.10.1-3) unstable; urgency=low
25
26 [ Jackson Doak ]
27 * debian/rules: Use disable-silent-build
28
29 [ Yves-Alexis Perez ]
30 * debian/patches:
31 - fix file patched in 01_fix-xrdb-call. (really) closes: #648553
32 * debian/55xfce4-session:
33 - handle case where session is started as startxfce4. closes: #725399
34
35 -- Yves-Alexis Perez <corsac@debian.org> Wed, 09 Oct 2013 21:17:35 +0200
36
37xfce4-session (4.10.1-2) unstable; urgency=low
38
39 [ Evgeni Golov ]
40 * Correct Vcs-* URLs to point to anonscm.debian.org
41
42 [ Mark Hymers ]
43 * Add /usr/share/xfce4 to XDG_DATA_DIRS and add defaults.list symlink
44 closes: #717875
45
46 [ Yves-Alexis Perez ]
47 * debian/control:
48 - update standards version to 3.9.4.
49 * debian/patches:
50 - 01_fix-xrdb-call added, don't call xrdb with -nocpp. closes: #648553
51
52 -- Yves-Alexis Perez <corsac@debian.org> Tue, 17 Sep 2013 21:56:28 +0200
53
1xfce4-session (4.10.1-1ubuntu1) saucy; urgency=low54xfce4-session (4.10.1-1ubuntu1) saucy; urgency=low
255
3 * Merge from Debian unstable, remaining Ubuntu changes:56 * Merge from Debian unstable, remaining Ubuntu changes:
457
=== modified file 'debian/control'
--- debian/control 2013-07-01 19:35:39 +0000
+++ debian/control 2013-10-23 21:22:20 +0000
@@ -10,10 +10,10 @@
10 libxfconf-0-dev (>= 4.10.0), libglade2-dev, intltool (>= 0.31),10 libxfconf-0-dev (>= 4.10.0), libglade2-dev, intltool (>= 0.31),
11 libpolkit-gobject-1-dev (>= 0.100), xfce4-dev-tools, libtool,11 libpolkit-gobject-1-dev (>= 0.100), xfce4-dev-tools, libtool,
12 dpkg-dev (>= 1.16.1)12 dpkg-dev (>= 1.16.1)
13Standards-Version: 3.9.313Standards-Version: 3.9.4
14Homepage: http://www.xfce.org/14Homepage: http://www.xfce.org/
15Vcs-Svn: svn://svn.debian.org/pkg-xfce/desktop/trunk/xfce4-session/15Vcs-Svn: svn://anonscm.debian.org/pkg-xfce/desktop/trunk/xfce4-session/
16Vcs-Browser: http://svn.debian.org/wsvn/pkg-xfce/desktop/trunk/xfce4-session/16Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-xfce/desktop/trunk/xfce4-session/
1717
18Package: xfce4-session18Package: xfce4-session
19Section: xfce19Section: xfce
2020
=== added file 'debian/defaults.list'
--- debian/defaults.list 1970-01-01 00:00:00 +0000
+++ debian/defaults.list 2013-10-23 21:22:20 +0000
@@ -0,0 +1,1 @@
1[Default Applications]
02
=== added file 'debian/patches/01_fix-xrdb-call.patch'
--- debian/patches/01_fix-xrdb-call.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/01_fix-xrdb-call.patch 2013-10-23 21:22:20 +0000
@@ -0,0 +1,11 @@
1--- a/scripts/xinitrc.in.in
2+++ b/scripts/xinitrc.in.in
3@@ -76,7 +76,7 @@ test -r "$BASEDIR/Xcursor.xrdb" && XRESO
4 test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"
5
6 # load all X resources (adds /dev/null to avoid an empty list that would hang the process)
7-cat /dev/null $XRESOURCES | xrdb -nocpp -merge -
8+cat /dev/null $XRESOURCES | xrdb -merge -
9
10 # load local modmap
11 test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap
012
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-07-01 19:35:39 +0000
+++ debian/patches/series 2013-10-23 21:22:20 +0000
@@ -1,3 +1,4 @@
101_fix-xrdb-call.patch
1xubuntu_ignore-gdm-lang.patch2xubuntu_ignore-gdm-lang.patch
2xubuntu_set-xdg-current-desktop.patch3xubuntu_set-xdg-current-desktop.patch
3xubuntu_runtime-logind-support.patch4xubuntu_runtime-logind-support.patch
45
=== modified file 'debian/rules'
--- debian/rules 2013-07-01 19:35:39 +0000
+++ debian/rules 2013-10-23 21:22:20 +0000
@@ -3,10 +3,6 @@
3export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,--as-needed -Wl,-O13export DEB_LDFLAGS_MAINT_APPEND=-Wl,-z,defs -Wl,--as-needed -Wl,-O1
4export DEB_BUILD_MAINT_OPTIONS=hardening=+all4export DEB_BUILD_MAINT_OPTIONS=hardening=+all
55
6override_dh_auto_configure:
7 NOCONFIGURE=1 xdt-autogen
8 dh_auto_configure
9
10override_dh_auto_clean:6override_dh_auto_clean:
11 dh_auto_clean7 dh_auto_clean
12 rm -f $$(find -name 'Makefile.in*') INSTALL ltmain.sh8 rm -f $$(find -name 'Makefile.in*') INSTALL ltmain.sh
@@ -20,5 +16,9 @@
20override_dh_strip:16override_dh_strip:
21 dh_strip --dbg-package=xfce4-session-dbg17 dh_strip --dbg-package=xfce4-session-dbg
2218
19override_dh_auto_configure:
20 NOCONFIGURE=1 xdt-autogen
21 dh_auto_configure -- --disable-silent-rules
22
23%:23%:
24 dh $@ --parallel24 dh $@ --parallel
2525
=== added file 'debian/xfce4-session.dirs'
--- debian/xfce4-session.dirs 1970-01-01 00:00:00 +0000
+++ debian/xfce4-session.dirs 2013-10-23 21:22:20 +0000
@@ -0,0 +1,2 @@
1etc/xfce4
2etc/X11/Xsession.d
03
=== modified file 'debian/xfce4-session.install'
--- debian/xfce4-session.install 2011-02-15 00:18:12 +0000
+++ debian/xfce4-session.install 2013-10-23 21:22:20 +0000
@@ -1,2 +1,4 @@
1usr1usr
2etc2etc
3debian/defaults.list etc/xfce4/
4debian/55xfce4-session etc/X11/Xsession.d/
35
=== added file 'debian/xfce4-session.links'
--- debian/xfce4-session.links 1970-01-01 00:00:00 +0000
+++ debian/xfce4-session.links 2013-10-23 21:22:20 +0000
@@ -0,0 +1,1 @@
1etc/xfce4/defaults.list usr/share/xfce4/applications/defaults.list
02
=== modified file 'scripts/xinitrc.in.in'
--- scripts/xinitrc.in.in 2012-05-18 20:21:52 +0000
+++ scripts/xinitrc.in.in 2013-10-23 21:22:20 +0000
@@ -82,7 +82,7 @@
82test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"82test -r "$HOME/.Xresources" && XRESOURCES="$XRESOURCES $HOME/.Xresources"
8383
84# load all X resources (adds /dev/null to avoid an empty list that would hang the process)84# load all X resources (adds /dev/null to avoid an empty list that would hang the process)
85cat /dev/null $XRESOURCES | xrdb -nocpp -merge -85cat /dev/null $XRESOURCES | xrdb -merge -
8686
87# load local modmap87# load local modmap
88test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap88test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap

Subscribers

People subscribed via source and target branches

to all changes: