From 126777bc019a54afb4ec51299f2cf9d2841698aa Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 25 Apr 2007 12:26:16 +0000 Subject: re-sync after the big svn loss --- perl-install/standalone/drakedm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'perl-install/standalone/drakedm') diff --git a/perl-install/standalone/drakedm b/perl-install/standalone/drakedm index 6f4e62c90..03e3213cf 100644 --- a/perl-install/standalone/drakedm +++ b/perl-install/standalone/drakedm @@ -1,6 +1,6 @@ #!/usr/bin/perl # DrakxDM -- Display Manager chooser -# Copyright (C) 2003-2005 Mandriva (tvignaud@mandriva.com) +# Copyright (C) 2003-2006 Mandriva (tvignaud@mandriva.com) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,6 +24,7 @@ use common; use any; use interactive; use services; +use run_program; $ugtk2::wm_icon = "/usr/share/mcc/themes/default/drakedm-mdk.png"; @@ -71,7 +72,7 @@ several different X sessions on your local machine at the same time.")), 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 - system("nohup /etc/rc.d/init.d/dm restart &>/dev/null"); + run_program::raw({ detach => 1 }, '/etc/rc.d/init.d/dm', '>', '/dev/null', '2>', '/dev/null', 'restart'); } } -- cgit v1.2.1