Mageia Bugzilla – Attachment 3618 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]
another attempt
8505.diff (text/plain), 442 bytes, created by
Thierry Vignaud
on 2013-03-15 20:16:55 CET
(
hide
)
Description:
another attempt
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2013-03-15 20:16:55 CET
Size:
442 bytes
patch
obsolete
>diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm >index 2f93a75..6777cf2 100644 >--- a/lib/Xconfig/various.pm >+++ b/lib/Xconfig/various.pm >@@ -234,7 +234,8 @@ sub runlevel { > symlink($t, $d); > } > } else { >- cat_($f) =~ /^id:(\d):initdefault:\s*$/m && $1; >+ cat_($f) =~ /^id:(\d):initdefault:\s*$/m && return $1; >+ readlink("$::prefix/etc/systemd/system/default.target") =~ /runlevel(\d).target/m && return $1; > } > } >
diff --git a/lib/Xconfig/various.pm b/lib/Xconfig/various.pm index 2f93a75..6777cf2 100644 --- a/lib/Xconfig/various.pm +++ b/lib/Xconfig/various.pm @@ -234,7 +234,8 @@ sub runlevel { symlink($t, $d); } } else { - cat_($f) =~ /^id:(\d):initdefault:\s*$/m && $1; + cat_($f) =~ /^id:(\d):initdefault:\s*$/m && return $1; + readlink("$::prefix/etc/systemd/system/default.target") =~ /runlevel(\d).target/m && return $1; } }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 8505
:
3291
|
3616
|
3617
| 3618