summaryrefslogtreecommitdiffstats
path: root/perl-install/any.pm
diff options
context:
space:
mode:
authorTomasz Paweł Gajc <tpg@mandriva.org>2010-07-25 16:46:38 +0000
committerTomasz Paweł Gajc <tpg@mandriva.org>2010-07-25 16:46:38 +0000
commit5d853f4162c68658619cd1644068bc85e7612c72 (patch)
tree005f66e6a2f5e964ea0dbde5ad5de1cc82c2b0b9 /perl-install/any.pm
parentf8e5be3694daea3187f9eebed07df39a1ad2c7d6 (diff)
downloaddrakx-5d853f4162c68658619cd1644068bc85e7612c72.tar
drakx-5d853f4162c68658619cd1644068bc85e7612c72.tar.gz
drakx-5d853f4162c68658619cd1644068bc85e7612c72.tar.bz2
drakx-5d853f4162c68658619cd1644068bc85e7612c72.tar.xz
drakx-5d853f4162c68658619cd1644068bc85e7612c72.zip
- add xfce4 support to running_window_manager()
Diffstat (limited to 'perl-install/any.pm')
-rw-r--r--perl-install/any.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/perl-install/any.pm b/perl-install/any.pm
index 981195007..0557d61dd 100644
--- a/perl-install/any.pm
+++ b/perl-install/any.pm
@@ -1410,7 +1410,7 @@ sub monitor_full_edid() {
# FIXME: is buggy regarding multiple sessions
sub running_window_manager() {
- my @window_managers = qw(ksmserver kwin gnome-session icewm wmaker afterstep fvwm fvwm2 fvwm95 mwm twm enlightenment xfce blackbox sawfish olvwm fluxbox compiz drakx-matchbox-window-manager);
+ my @window_managers = qw(ksmserver kwin gnome-session icewm wmaker afterstep fvwm fvwm2 fvwm95 mwm twm enlightenment xfce4-session blackbox sawfish olvwm fluxbox compiz drakx-matchbox-window-manager);
foreach (@window_managers) {
my @pids = fuzzy_pidofs(qr/\b$_\b/) or next;
@@ -1434,6 +1434,7 @@ sub ask_window_manager_to_logout {
'kwin' => "dcop kdesktop default logout",
'gnome-session' => "gnome-session-save --kill",
'icewm' => "killall -QUIT icewm",
+ 'xfce4-session' => "xfce4-session-logout --logout",
);
my $cmd = $h{$wm} or return;
if (member($wm, 'ksmserver', 'kwin', 'gnome-session') && $> == 0) {