Mageia Bugzilla – Attachment 3616 Details for
Bug 8505
Automatically start graphic interface checkbox not checked by default
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
returns current runlevel correctly
various.patch (text/plain), 697 bytes, created by
Derek Jennings
on 2013-03-15 20:07:09 CET
(
hide
)
Description:
returns current runlevel correctly
Filename:
MIME Type:
Creator:
Derek Jennings
Created:
2013-03-15 20:07:09 CET
Size:
697 bytes
patch
obsolete
>--- /usr/lib/libDrakX/Xconfig/various.pm 2013-01-22 11:34:24.000000000 +0000 >+++ various.pm 2013-03-15 09:08:17.000000000 +0000 >@@ -70,7 +70,7 @@ > my $use_DRI_GLX = member('dri', $raw_X->get_modules); > > my $various = { >- if_($::isStandalone, xdm => runlevel() == 5), >+ if_($::isStandalone, xdm => runlevel() == 5 ), > if_($b_read_existing, > Composite => $raw_X->get_extension('Composite') ne 'Disable', > if_($card->{Options}{MonitorLayout} eq 'NONE,CRT+LFP' || >@@ -234,7 +234,7 @@ > symlink($t, $d); > } > } else { >- cat_($f) =~ /^id:(\d):initdefault:\s*$/m && $1; >+ readlink("$::prefix/etc/systemd/system/default.target") =~ /runlevel(\d).target/m && $1; > } > } >
--- /usr/lib/libDrakX/Xconfig/various.pm 2013-01-22 11:34:24.000000000 +0000 +++ various.pm 2013-03-15 09:08:17.000000000 +0000 @@ -70,7 +70,7 @@ my $use_DRI_GLX = member('dri', $raw_X->get_modules); my $various = { - if_($::isStandalone, xdm => runlevel() == 5), + if_($::isStandalone, xdm => runlevel() == 5 ), if_($b_read_existing, Composite => $raw_X->get_extension('Composite') ne 'Disable', if_($card->{Options}{MonitorLayout} eq 'NONE,CRT+LFP' || @@ -234,7 +234,7 @@ symlink($t, $d); } } else { - cat_($f) =~ /^id:(\d):initdefault:\s*$/m && $1; + readlink("$::prefix/etc/systemd/system/default.target") =~ /runlevel(\d).target/m && $1; } }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8505
:
3291
|
3616
|
3617
|
3618