diff options
author | root <root@homebase.dk> | 2010-06-18 08:49:40 +0200 |
---|---|---|
committer | root <root@homebase.dk> | 2010-06-18 08:49:40 +0200 |
commit | d571bda1393dfe7ea85dee072f6c5ab56296c78d (patch) | |
tree | 55e4b5961a9beaa3dc5625d35243101952b1d070 /apt/apt.conf.d/99-local-set-preferred-x-session-manager | |
parent | 80dd21617f3d176eee304934dd0dca622a40f5ce (diff) | |
parent | 6cc2dc4632a55c63ebd8efafb568d9947461cbf9 (diff) |
Merge branch 'master' of git://source.jones.dk/local-COMMON
Diffstat (limited to 'apt/apt.conf.d/99-local-set-preferred-x-session-manager')
-rwxr-xr-x | apt/apt.conf.d/99-local-set-preferred-x-session-manager | 4 |
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" +;}; }; |