summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2003-05-20 13:26:05 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2003-05-20 13:26:05 +0000
commit5bbb58d8fb987f60ee6b8e4d5730c3e137253991 (patch)
tree0bd18cae7be5e2cc10b1ba06889feb6074c206cf /perl-install
parent10255efd87348acddcc8f54ce5b451766949b739 (diff)
downloaddrakx-5bbb58d8fb987f60ee6b8e4d5730c3e137253991.tar
drakx-5bbb58d8fb987f60ee6b8e4d5730c3e137253991.tar.gz
drakx-5bbb58d8fb987f60ee6b8e4d5730c3e137253991.tar.bz2
drakx-5bbb58d8fb987f60ee6b8e4d5730c3e137253991.tar.xz
drakx-5bbb58d8fb987f60ee6b8e4d5730c3e137253991.zip
fix #1743: offer to restart the dm service
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/standalone/drakedm4
1 files changed, 4 insertions, 0 deletions
diff --git a/perl-install/standalone/drakedm b/perl-install/standalone/drakedm
index f70c585d5..8eb7ceb6d 100644
--- a/perl-install/standalone/drakedm
+++ b/perl-install/standalone/drakedm
@@ -21,6 +21,7 @@ use lib qw(/usr/lib/libDrakX);
use standalone; #- warning, standalone must be loaded very first, for 'explanations'
use common;
+use any;
use interactive;
my $in = 'interactive'->vnew('su');
@@ -62,6 +63,9 @@ several different X sessions on your local machine at the same time.")),
s/^\n//g;
$_ .= "\nDISPLAYMANAGER=$dm\n" if eof;
} $cfg_file;
+ if (any::running_window_manager()) {
+ $in->ask_okcancel('', N("The change is done, do you want to restart the dm service ?"), 1) and services::restart("dm");
+ }
}
$in->exit(0);