Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 134991 Details for
Bug 197133
no turn off or restart buttons in KDE w/ gnome-base/gdm-2.20.x
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
There were some typo's in the previous one. Sorry for the inconvenience.
gdmfix.patch (text/plain), 835 bytes, created by
Paul de Vrieze (RETIRED)
on 2007-11-02 08:42:33 UTC
(
hide
)
Description:
There were some typo's in the previous one. Sorry for the inconvenience.
Filename:
MIME Type:
Creator:
Paul de Vrieze (RETIRED)
Created:
2007-11-02 08:42:33 UTC
Size:
835 bytes
patch
obsolete
>diff -r -u kdebase-3.5.8.orig/kdmlib/dmctl.cpp kdebase-3.5.8/kdmlib/dmctl.cpp >--- kdebase-3.5.8.orig/kdmlib/dmctl.cpp 2007-01-15 22:31:50.000000000 +1100 >+++ kdebase-3.5.8/kdmlib/dmctl.cpp 2007-11-02 16:14:39.000000000 +1100 >@@ -44,6 +44,7 @@ > { > const char *ptr; > struct sockaddr_un sa; >+ struct stat ststat; > > if (DMType == Dunno) { > if (!(dpy = ::getenv( "DISPLAY" ))) >@@ -65,8 +66,13 @@ > if ((fd = ::socket( PF_UNIX, SOCK_STREAM, 0 )) < 0) > return; > sa.sun_family = AF_UNIX; >- if (DMType == GDM) >- strcpy( sa.sun_path, "/tmp/.gdm_socket" ); >+ if (DMType == GDM) { >+ if (stat("/var/run/gdm_socket", &ststat)==0) { >+ strcpy( sa.sun_path, "/var/run/gdm_socket"); >+ } else { >+ strcpy( sa.sun_path, "/tmp/.gdm_socket" ); >+ } >+ } > else { > if ((ptr = strchr( dpy, ':' ))) > ptr = strchr( ptr, '.' );
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197133
:
134988
| 134991