diff options
Diffstat (limited to 'perl-install/standalone/notify-x11-free-driver-switch')
| -rwxr-xr-x | perl-install/standalone/notify-x11-free-driver-switch | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/perl-install/standalone/notify-x11-free-driver-switch b/perl-install/standalone/notify-x11-free-driver-switch index fd43416a1..30c42f82c 100755 --- a/perl-install/standalone/notify-x11-free-driver-switch +++ b/perl-install/standalone/notify-x11-free-driver-switch @@ -8,9 +8,16 @@ $::isStandalone = 0; my $in = 'interactive'->vnew; my $driver = eval { require Xconfig::xfree; - $raw_X = Xconfig::xfree->read; + my $raw_X = Xconfig::xfree->read; $raw_X->get_Driver; } || N("unknown"); -$in->ask_warn(N("Warning"), N("The proprietary driver for your graphic card can not be found, the system is now using the free software driver (%s).", $driver)); + +my $reason = cat_utf8($ENV{LOCK}); + +$in->ask_warn(N("Display driver setup"), + join("\n\n", + N("The display driver has been automatically switched to '%s'.", $driver), + if_($reason, N("Reason: %s.", $reason)), + )); unlink $0 if $0 =~ m!/etc/X11/xsetup.d/!; |
