diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-23 17:37:35 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-23 17:37:35 +0000 |
commit | 6c714597ea6ba89cd9b78162aa1554705d335e64 (patch) | |
tree | 162f73c5f7c5094d923bc19c0195012505064415 /perl-install/standalone | |
parent | ce983934eee38ee727ae3ad403dbefd86572a681 (diff) | |
download | drakx-6c714597ea6ba89cd9b78162aa1554705d335e64.tar drakx-6c714597ea6ba89cd9b78162aa1554705d335e64.tar.gz drakx-6c714597ea6ba89cd9b78162aa1554705d335e64.tar.bz2 drakx-6c714597ea6ba89cd9b78162aa1554705d335e64.tar.xz drakx-6c714597ea6ba89cd9b78162aa1554705d335e64.zip |
drakclock/finish-install: disable DPMS and screensaver when setting time not to blank monitor (#17031, backport from trunk)
Diffstat (limited to 'perl-install/standalone')
-rwxr-xr-x | perl-install/standalone/drakclock | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/standalone/drakclock b/perl-install/standalone/drakclock index e34980807..d9d046a66 100755 --- a/perl-install/standalone/drakclock +++ b/perl-install/standalone/drakclock @@ -103,6 +103,7 @@ $my_win->{window}->add(gtknew('VBox', border_width => $::isEmbedded ? 0 : 5, chi cancel_clicked => sub { ugtk2->exit(0) }, ok_clicked => sub { my $need_date = 1; + any::disable_x_screensaver(); if ($check_ntp->get_active) { my $choosed_serv = $combo_ntpserver->entry->get_text; $choosed_serv =~ s/^[^:]+: (.+)/$1/; @@ -141,6 +142,7 @@ $my_win->{window}->add(gtknew('VBox', border_width => $::isEmbedded ? 0 : 5, chi join('', map { print_it0($_) } ($month, $day, $hour, $min, $year)) . '.' . print_it0($sec)); } -e '/sbin/hwclock' and system('/sbin/hwclock --systohc'); + any::enable_x_screensaver(); system("dcop kicker Panel restart") if $ENV{DESKTOP} eq 'kde'; ugtk2->exit(0); }, |