This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE logout/shutdown dialog does not appear

Tags: None
(comma "," separated)
wintercat
Registered Member
Posts
4
Karma
0
OS
Hello, I am using KDE in Debian 7 and the right click or the KMenu dialog for logout/shutdown/restart does not appear.
Also i have a startup script which doesn't load at all times. I have found sometimes the dialog appears for some sessions (randomly), and in those sessions the autostart apps actually work. So I guess they are somewhat related.
Please suggest me what steps should I take.
User avatar
google01103
Manager
Posts
6668
Karma
25
if you disable the startup script does the Kmenu dialog display?

ps - slightly confused about the dialog: "does not appear" or "appears for some sessions"


OpenSuse Leap 42.1 x64, Plasma 5.x

wintercat
Registered Member
Posts
4
Karma
0
OS
google01103 wrote:if you disable the startup script does the Kmenu dialog display?

ps - slightly confused about the dialog: "does not appear" or "appears for some sessions"



Ok let me clarify,

I have a startup script to launch a few apps. They don't launch at all for most sessions. Also in those sessions the Logout dialog does not appear either by Right Click -> Leave or from the Kick off launcher.
However, sometimes (I don't know why), the startup apps actually launch and the logout dialog does as well.

I googled and tried a few solutions, e.g. disable login/logout sound.
User avatar
google01103
Manager
Posts
6668
Karma
25
have you tried using systemsettings -> startup & shutdown -> autostart, to start those few apps instead of your startup script

how does the startup script get run?

post the script, maybe someone will see something that will help?


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Another thing to check - do you background the applications you are launching on startup, especially if they do not fork themselves?
I observed this behaviour once in a startup script I wrote.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
wintercat
Registered Member
Posts
4
Karma
0
OS
Code: Select all
wintercat@debian:~$ cat .kde/Autostart/start.sh
#!/bin/bash
artha &
shutter --min_at_startup &
klipper &


have you tried using systemsettings -> startup & shutdown -> autostart, to start those few apps instead of your startup script


of course.

Also here is my ksmserverrc, le-t me know if its alright.

Code: Select all
wintercat@debian:~$ cat  ~/.kde/share/config/ksmserverrc
[General]
confirmLogout=false
excludeApps=
loginMode=restorePreviousLogout
offerShutdown=true
screenCount=1
shutdownType=0

[LegacySession: saved at previous logout]
count=0

[Session: saved at previous logout]
clientId1=10c5d36269000137303620000000036720000
clientId10=10c5d36269000137306470000000036480023
clientId2=10c5d36269000137306443700000036480004
clientId3=10c5d36269000137303621300000036720009
clientId4=10c5d36269000137303772600000036600014
clientId5=10c5d36269000137306444800000036480016
clientId6=10c5d36269000137306445700000036480018
clientId7=10c5d36269000137306445700000036480019
clientId8=10c5d36269000137306445700000036480020
clientId9=10c5d36269000137306445700000036480021
count=10
discardCommand1[$e]=rm,$HOME/.kde/share/config/session/kwin_10c5d36269000137303620000000036720000_1373071377_832652                                                                             
discardCommand10[$e]=rm,$HOME/.kde/share/config/session/konsole_10c5d36269000137306470000000036480023_1373071377_755018                                                                         
discardCommand2[$e]=                                                                                                                                                                           
discardCommand3[$e]=rm,$HOME/.kde/share/config/session/kmix_10c5d36269000137303621300000036720009_1373071377_753326                                                                             
discardCommand4[$e]=\\0                                                                                                                                                                         
discardCommand5[$e]=                                                                                                                                                                           
discardCommand6[$e]=                                                                                                                                                                           
discardCommand7[$e]=                                                                                                                                                                           
discardCommand8[$e]=                                                                                                                                                                           
discardCommand9[$e]=                                                                                                                                                                           
program1=kwin                                                                                                                                                                                   
program10=/usr/bin/konsole                                                                                                                                                                     
program2=/usr/bin/nepomukservicestub                                                                                                                                                           
program3=/usr/bin/kmix                                                                                                                                                                         
program4=/usr/bin/nepomukcontroller                                                                                                                                                             
program5=pulseaudio                                                                                                                                                                             
program6=/usr/bin/nepomukservicestub                                                                                                                                                           
program7=/usr/bin/nepomukservicestub                                                                                                                                                           
program8=/usr/bin/nepomukservicestub
program9=/usr/bin/nepomukservicestub
restartCommand1=kwin,-session,10c5d36269000137303620000000036720000_1373071377_832652
restartCommand10=/usr/bin/konsole,-session,10c5d36269000137306470000000036480023_1373071377_755018
restartCommand2=/usr/bin/nepomukservicestub,-session,10c5d36269000137306443700000036480004_1373071377_756216
restartCommand3=/usr/bin/kmix,-session,10c5d36269000137303621300000036720009_1373071377_753326
restartCommand4=/usr/bin/nepomukcontroller,-session,10c5d36269000137303772600000036600014_1373071377_753318
restartCommand5=
restartCommand6=/usr/bin/nepomukservicestub,-session,10c5d36269000137306445700000036480018_1373071377_754569
restartCommand7=/usr/bin/nepomukservicestub,-session,10c5d36269000137306445700000036480019_1373071377_753770
restartCommand8=/usr/bin/nepomukservicestub,-session,10c5d36269000137306445700000036480020_1373071377_757382
restartCommand9=/usr/bin/nepomukservicestub,-session,10c5d36269000137306445700000036480021_1373071377_754153
restartStyleHint1=0
restartStyleHint10=0
restartStyleHint2=0
restartStyleHint3=0
restartStyleHint4=0
restartStyleHint5=0
restartStyleHint6=0
restartStyleHint7=0
restartStyleHint8=0
restartStyleHint9=0
userId1=wintercat
userId10=wintercat
userId2=wintercat
userId3=wintercat
userId4=wintercat
userId5=wintercat
userId6=wintercat
userId7=wintercat
userId8=wintercat
userId9=wintercat
wasWm1=true
wasWm10=false
wasWm2=false
wasWm3=false
wasWm4=false
wasWm5=false
wasWm6=false
wasWm7=false
wasWm8=false
wasWm9=false
User avatar
google01103
Manager
Posts
6668
Karma
25
I'd remove shutter and see if that's the culprit, as it's a Gnome app and being placed in the system tray maybe it occasionally causes a conflict


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
That shell script otherwise looks fine - although launching Klipper is not needed as it should automatically be restored on login.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
wintercat
Registered Member
Posts
4
Karma
0
OS
I have removed the script, still the problem persists.
User avatar
google01103
Manager
Posts
6668
Karma
25
can you try logging in as a new user


OpenSuse Leap 42.1 x64, Plasma 5.x

User avatar
hermantowawan
Registered Member
Posts
70
Karma
0
The fact that it sometimes works doesn't make it easier to find a solution.
However, I did search a bit, and found his -perhaps outdated-site
http://techbase.kde.org/KDE_System_Admi ... on/Startup
it states
Code: Select all
The KDE session manager also restores one of the previous sessions

I looked at my own ~/.kde4/share/config/ksmserverrc:
Code: Select all
[General]
confirmLogout=false
excludeApps=
loginMode=restorePreviousLogout
offerShutdown=true
screenCount=1
shutdownType=0

[LegacySession: saved at previous logout]
count=0

[Session: saved at previous logout]
clientId1=1041726368000137260930800000004110000
clientId2=1041726368000137106177600000004810009
clientId3=1041726368000137303911200000004300005
count=3
discardCommand1[$e]=rm,$HOME/.kde4/share/config/session/kwin_1041726368000137260930800000004110000_1373044182_993937
discardCommand2[$e]=\\0
discardCommand3[$e]=
program1=kwin
program2=/usr/bin/nepomukcontroller
program3=pulseaudio
restartCommand1=kwin,-session,1041726368000137260930800000004110000_1373044182_993937
restartCommand2=/usr/bin/nepomukcontroller,-session,1041726368000137106177600000004810009_1373044182_991176
restartCommand3=
restartStyleHint1=0
restartStyleHint2=0
restartStyleHint3=0
userId1=henk
userId2=henk
userId3=henk
wasWm1=true
wasWm2=false
wasWm3=false

furthermore the site states:
Code: Select all
For example, if ksmserverrc contains:

restartCommand1=kwin,-session,110a0a0002000106760689100000019360000_1083342151_608625
restartCommand2=konsole,-session,10378ac070000108334204700000277690000_1083342151_552722

Then the application specific state information for kwin and konsole can be found in

$KDEHOME/share/config/session/kwin_110a0a0002000106760689100000019360000_1083342151_608625

and

$KDEHOME/share/config/session/konsole_10378ac070000108334204700000277690000_1083342151_552722

respectively.

Perhaps you should have a look into it.


I Am Still Learning About KDE
TunaBoy
Registered Member
Posts
1
Karma
0
OS
I had this issue, and found the solution on the archlinux forums, which worked for me.

I went to session management under systems settings, and chose "Start with an empty session".

After I got out of systems settings, I killed X (my way of leaving KDE under the startup/shutdown buttons/commands not working), and the logged back in.

Bingo. shutdown, etc. work like a charm again.

I'm not sure what goofed up the buttons, but they were working, then quit at some point. I'm on Centos 6. These were non functional enough that I have been running with the Gnome window manager, which I'm not a fan of, for at least a month.

Hope this helps,
Mike
rajabp
Registered Member
Posts
5
Karma
0
Hello,

How do you start KDE? It is already a welknown bug, that unless KDE is started by KDM, there are no shutdown and reboot options in the menu.

https://bugs.archlinux.org/task/32371


My name is Rajab Punjabi


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]