summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-09-15 13:59:44 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-09-15 13:59:44 +0000
commit8e143f533ad20ac85ce440fbb209c326c248a26e (patch)
tree3d77cb1126849b1185cc2dfbdcfffcbc7632ca59 /perl-install
parent8e710542767cb41984467db36145811b2032749a (diff)
downloaddrakx-8e143f533ad20ac85ce440fbb209c326c248a26e.tar
drakx-8e143f533ad20ac85ce440fbb209c326c248a26e.tar.gz
drakx-8e143f533ad20ac85ce440fbb209c326c248a26e.tar.bz2
drakx-8e143f533ad20ac85ce440fbb209c326c248a26e.tar.xz
drakx-8e143f533ad20ac85ce440fbb209c326c248a26e.zip
set ICEAUTHORITY for "gnome-session-save --kill"
(it would be better to set it in usermode, but it works :)
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/any.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index f5dc1602a..9f0d16f10 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -940,6 +940,7 @@ sub ask_window_manager_to_logout {
'wmaker' => "killall -USR1 wmaker",
);
my $cmd = $h{$wm} or return;
+ $ENV{ICEAUTHORITY} ||= "$ENV{HOME}/.ICEauthority"; #- used by gnome-session
$cmd = "su $ENV{USER} -c '$cmd'" if $wm eq 'kwin' && $> == 0;
system($cmd);
1;