summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/drakedm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/drakedm')
-rw-r--r--perl-install/standalone/drakedm16
1 files changed, 9 insertions, 7 deletions
diff --git a/perl-install/standalone/drakedm b/perl-install/standalone/drakedm
index a4f44417b..b5fb82ae4 100644
--- a/perl-install/standalone/drakedm
+++ b/perl-install/standalone/drakedm
@@ -25,14 +25,16 @@ use any;
use interactive;
use services;
+$ugtk2::wm_icon = "/usr/share/mcc/themes/default/drakedm-mdk.png";
+
my $in = 'interactive'->vnew('su');
my $cfg_file = '/etc/sysconfig/desktop';
-my %dm = ('GNOME' => [ 'GDM (GNOME Display Manager)', '/usr/bin/gdm', 'gdm' ],
- 'KDM' => [ 'KDM (KDE Display Manager)', '/usr/bin/kdm', 'kdebase-kdm' ],
- 'KDE' => [ 'MdkKDM (Mandrake Display Manager)', '/usr/bin/mdkkdm', 'mdkkdm' ],
- 'XDM' => [ 'XDM (X Display Manager)', '/usr/bin/X11/xdm', 'xorg-x11' ],
+my %dm = ('GNOME' => [ N("GDM (GNOME Display Manager)"), '/usr/bin/gdm', 'gdm' ],
+ 'KDM' => [ N("KDM (KDE Display Manager)"), '/usr/bin/kdm', 'kdebase-kdm' ],
+ 'KDE' => [ N("MdkKDM (Mandrakelinux Display Manager)"), '/usr/bin/mdkkdm', 'mdkkdm' ],
+ 'XDM' => [ N("XDM (X Display Manager)"), '/usr/bin/X11/xdm', 'xorg-x11' ],
);
my $dm;
@@ -74,9 +76,9 @@ several different X sessions on your local machine at the same time.")),
} $cfg_file;
log::explanations(qq(Switching to "$dm" display manager));
if (any::running_window_manager()) {
- $in->ask_yesorno('', N("The change is done, do you want to restart the dm service ?"), 1) and
- $in->ask_yesorno('', N("You are going to close all running programs and lose your current session. Are you really sure that you want to restart the dm service ?"), 1) and
- run_program::rooted($::prefix, "nohup", "/etc/rc.d/init.d/dm", "restart");
+ $in->ask_yesorno('', N("The change is done, do you want to restart the dm service?"), 1) and
+ $in->ask_yesorno('', N("You are going to close all running programs and lose your current session. Are you really sure that you want to restart the dm service?"), 1) and
+ run_program::run("nohup", "/etc/rc.d/init.d/dm", "restart");
}
}