diff options
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); |