<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>197133</bug_id>
          
          <creation_ts>2007-10-26 14:08 0000</creation_ts>
          <short_desc>no turn off or restart buttons in KDE w/ gnome-base/gdm-2.20.x</short_desc>
          <delta_ts>2007-12-03 19:02:16 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>KDE</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>admin@easyshellz.com</reporter>
          <assigned_to>kde@gentoo.org</assigned_to>
          <cc>billydv1@verizon.net</cc>

      

      
          <long_desc isprivate="0">
            <who>admin@easyshellz.com</who>
            <bug_when>2007-10-26 14:08:43 0000</bug_when>
            <thetext>When using kde and gdm-2.20.* apon clicking the logout button from kmenu, you no longer get the &quot;turn off&quot; or &quot;restart&quot; buttons. After some investigation I found that the socket has changed paths, and this should be modified in the ebuild, either to one specific location of at least creating a symlink to it.
Path changed from /tmp/.gdm_socket to /var/run/gdm_socket .

Reproducible: Always

Steps to Reproduce:
1.run any kde version in portage
2. use gdm 2.20.0 or 2.20.1
3. login to kde and select kmenu logout


Actual Results:  
Only the &quot;End Current Session&quot; and &quot;cancel&quot; appears.

Expected Results:  
To have 4 Buttons,
1.End Current Session
2.Turn off Computer
3.Restart Computer
4.Cancel 

A simple symlink does work
ln -s /var/run/gdm_socket /tmp/.gdm_socket

I did find a ubuntu bug about It when searching , thats how I figure out it was the socket.
https://bugs.launchpad.net/ubuntu/+source/kdebase/+bug/64695</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>admin@easyshellz.com</who>
            <bug_when>2007-10-26 18:09:04 0000</bug_when>
            <thetext>simply put stable kde and stable gdm are fine (kde knows where the gdm socket is)
but ~arch kde does not know where ~arch gdm socket is.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2007-11-02 06:04:10 0000</bug_when>
            <thetext>Created an attachment (id=134988)
Fix to be applied to ksmserver (kdebase) to fix this.

I&apos;ve hit this too, and as it is annoying (and I clean my /tmp dir automatically) I&apos;ve created the above fix. It will check for the new place to exist (with a stat call) and in that case have the logic connect there instead instead of the /tmp place. The code I added does not do further checks on the file, so in the case where a hacker were to influence the socket in the new location the existing security of ksmserver on attacks at /tmp would have to handle it. (In short, this patch might have security issues, but I don&apos;t know. I do know it works)</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pauldv@gentoo.org</who>
            <bug_when>2007-11-02 08:42:33 0000</bug_when>
            <thetext>Created an attachment (id=134991)
There were some typo&apos;s in the previous one. Sorry for the inconvenience.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-11-04 00:24:47 0000</bug_when>
            <thetext>Thanks, Paul! I&apos;ve taken a slightly different patch from upstream&apos;s SVN but your help here is really appreciated. This issue is fixed in 3.5.8-r1 of both kdebase and ksmserver. Fixed in CVS.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-11-22 14:36:12 0000</bug_when>
            <thetext>*** Bug 199983 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>billydv1@verizon.net</who>
            <bug_when>2007-11-23 00:08:09 0000</bug_when>
            <thetext>stable  kde  and  stable  gdm  are  not  fine,  I  run  both  x86  and  amd64  on  2  different  machine  both  of  which  are  running  the  stable  version  kde  3.5.7  and  gnome 2.20,  both  have  the  problem  and  you  patch  is  for  kde  3.5.8,  so  what  can  I  do  to  fix  my  2  boxes?</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>philantrop@gentoo.org</who>
            <bug_when>2007-11-23 00:18:01 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; for  kde  3.5.8,  so  what  can  I  do  to  fix  my  2  boxes?

Update.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jakub@gentoo.org</who>
            <bug_when>2007-11-23 12:11:12 0000</bug_when>
            <thetext>*** Bug 199983 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>michael.mauch@gmx.de</who>
            <bug_when>2007-12-03 18:24:30 0000</bug_when>
            <thetext>I removed the old /tmp/.gdm_socket and created a link instead:

  ln -s /var/run/gdm_socket /tmp/.gdm_socket 

Works for me.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>billydv1@verizon.net</who>
            <bug_when>2007-12-03 19:02:16 0000</bug_when>
            <thetext>I  have  updated,  I  now  have  emerge  kde  3.5.8  and  all  works  properly.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>134988</attachid>
            <date>2007-11-02 06:04 0000</date>
            <desc>Fix to be applied to ksmserver (kdebase) to fix this.</desc>
            <filename>gdmfix</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtciAtdSBrZGViYXNlLTMuNS44Lm9yaWcva2RtbGliL2RtY3RsLmNwcCBrZGViYXNlLTMu
NS44L2tkbWxpYi9kbWN0bC5jcHAKLS0tIGtkZWJhc2UtMy41Ljgub3JpZy9rZG1saWIvZG1jdGwu
Y3BwCTIwMDctMDEtMTUgMjI6MzE6NTAuMDAwMDAwMDAwICsxMTAwCisrKyBrZGViYXNlLTMuNS44
L2tkbWxpYi9kbWN0bC5jcHAJMjAwNy0xMS0wMiAxNjoxNDozOS4wMDAwMDAwMDAgKzExMDAKQEAg
LTQ0LDYgKzQ0LDcgQEAKIHsKIAljb25zdCBjaGFyICpwdHI7CiAJc3RydWN0IHNvY2thZGRyX3Vu
IHNhOworCXN0cnVjdCBzdGF0IHN0c3RhdDsKIAogCWlmIChETVR5cGUgPT0gRHVubm8pIHsKIAkJ
aWYgKCEoZHB5ID0gOjpnZXRlbnYoICJESVNQTEFZIiApKSkKQEAgLTY1LDggKzY2LDEzIEBACiAJ
CWlmICgoZmQgPSA6OnNvY2tldCggUEZfVU5JWCwgU09DS19TVFJFQU0sIDAgKSkgPCAwKQogCQkJ
cmV0dXJuOwogCQlzYS5zdW5fZmFtaWx5ID0gQUZfVU5JWDsKLQkJaWYgKERNVHlwZSA9PSBHRE0p
Ci0JCQlzdHJjcHkoIHNhLnN1bl9wYXRoLCAiL3RtcC8uZ2RtX3NvY2tldCIgKTsKKwkJaWYgKERN
VHlwZSA9PSBHRE0pIHsKKwkJCWlmIChzdGF0KCIvdmFyL3J1bi9nZG1fc29ja2V0ImksIHN0c3Rh
dCk9PTApIHsKKwkJCQlzdHJjcHkoIHNhLnN1bl9wYXRoLCAiL3Zhci9ydW4vZ2RtX3NvY2tldCIp
OworCQkJfSBlbHNlIHsKKwkJCQlzdHJjcHkoIHNhLnN1bl9wYXRoLCAiL3RtcC8uZ2RtX3NvY2tl
dCIgKTsKKwkJCX0KKwkJfQogCQllbHNlIHsKIAkJCWlmICgocHRyID0gc3RyY2hyKCBkcHksICc6
JyApKSkKIAkJCQlwdHIgPSBzdHJjaHIoIHB0ciwgJy4nICk7Cg==
</data>        

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>134991</attachid>
            <date>2007-11-02 08:42 0000</date>
            <desc>There were some typo&apos;s in the previous one. Sorry for the inconvenience.</desc>
            <filename>gdmfix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtciAtdSBrZGViYXNlLTMuNS44Lm9yaWcva2RtbGliL2RtY3RsLmNwcCBrZGViYXNlLTM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