summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2008-10-20 16:30:40 +0000
committerThierry Vignaud <tv@mandriva.org>2008-10-20 16:30:40 +0000
commita19de9766adfb2e8dfd04e2714bf5010a6f661ce (patch)
tree221df9bb96ca1ed91ab896da46c1fedef6749b94
parent9c27489578586ec106f8b03d820c6336a5f878c1 (diff)
downloadmgaonline-a19de9766adfb2e8dfd04e2714bf5010a6f661ce.tar
mgaonline-a19de9766adfb2e8dfd04e2714bf5010a6f661ce.tar.gz
mgaonline-a19de9766adfb2e8dfd04e2714bf5010a6f661ce.tar.bz2
mgaonline-a19de9766adfb2e8dfd04e2714bf5010a6f661ce.tar.xz
mgaonline-a19de9766adfb2e8dfd04e2714bf5010a6f661ce.zip
(upgrade) disable the X screen saver while upgrading the system
-rw-r--r--NEWS1
-rwxr-xr-xmdkapplet-upgrade-helper5
2 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index e7702269..bb57e35e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,6 @@
- mdkapplet-upgrade-helper
o disable custom downloader settings in order to default to aria2
+ o disable the X screen saver while upgrading the system
Version 2.63 - 16 October 2008
diff --git a/mdkapplet-upgrade-helper b/mdkapplet-upgrade-helper
index a4004ba1..bb8d2d6f 100755
--- a/mdkapplet-upgrade-helper
+++ b/mdkapplet-upgrade-helper
@@ -135,6 +135,11 @@ sub upgrade_distro_congratulations() {
}
sub upgrade() {
+ my $xid = gtkroot()->XWINDOW;
+
+ run_program::raw({ detach => 1 }, 'xdg-screensaver', 'suspend', $xid);
+ my $_w = before_leaving { run_program::raw({ detach => 1 }, 'xdg-screensaver', 'resume', $xid) };
+
my $file = "$ENV{HOME}/urpmi.cfg.backup." . int(rand 100000);
log::explanations("backuping urpmi configuration in $file");
cp_af("$root/etc/urpmi/urpmi.cfg", $file);