diff options
author | Thierry Vignaud <tv@mandriva.org> | 2008-10-20 16:30:40 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2008-10-20 16:30:40 +0000 |
commit | a19de9766adfb2e8dfd04e2714bf5010a6f661ce (patch) | |
tree | 221df9bb96ca1ed91ab896da46c1fedef6749b94 /mdkapplet-upgrade-helper | |
parent | 9c27489578586ec106f8b03d820c6336a5f878c1 (diff) | |
download | mgaonline-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
Diffstat (limited to 'mdkapplet-upgrade-helper')
-rwxr-xr-x | mdkapplet-upgrade-helper | 5 |
1 files changed, 5 insertions, 0 deletions
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); |