summaryrefslogtreecommitdiff
path: root/apt/apt.conf.d/99-local-set-preferred-x-session-manager
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2010-04-21 18:07:56 +0200
committerJonas Smedegaard <dr@jones.dk>2010-04-21 18:10:00 +0200
commit1e59c38f0a0241ba14a914adb1c02a03d0199d8b (patch)
treed2a66698045bcb6298e9791e85cd228f74e07841 /apt/apt.conf.d/99-local-set-preferred-x-session-manager
parentb3b3125f8a92670a13e38a972b439abf3b05fb68 (diff)
More compact yet easier readable APT hook alternatives resolving.
Diffstat (limited to 'apt/apt.conf.d/99-local-set-preferred-x-session-manager')
-rwxr-xr-xapt/apt.conf.d/99-local-set-preferred-x-session-manager4
1 files changed, 3 insertions, 1 deletions
diff --git a/apt/apt.conf.d/99-local-set-preferred-x-session-manager b/apt/apt.conf.d/99-local-set-preferred-x-session-manager
index a842f9f..4e0b73f 100755
--- a/apt/apt.conf.d/99-local-set-preferred-x-session-manager
+++ b/apt/apt.conf.d/99-local-set-preferred-x-session-manager
@@ -2,5 +2,7 @@
DPkg
{
-Post-Invoke {"if [ -x /usr/sbin/update-alternatives ] && [ -x /usr/bin/gnome-session ]; then /usr/sbin/update-alternatives --set x-session-manager /usr/bin/gnome-session; else exit 0; fi";};
+Post-Invoke {
+"s=/usr/bin/gnome-session; [ ! -x $s ] || /usr/sbin/update-alternatives --set x-session-manager $s"
+;};
};