LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-03-2012, 06:16 AM   #1
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Rep: Reputation: 61
No logout dialog in Xfce


I have just installed Slackware 14, 64-bit, with Xfce. I boot up to console, log in, and then type startx to start xfce.

When I click on logout in the menu, I immediately gets back to console, still logged in as my user. I want the logout dialog where to choose shutdown, reboot and so on. How to get that?
 
Old 11-03-2012, 07:10 AM   #2
powerball
LQ Newbie
 
Registered: Jun 2010
Distribution: Slackware-14.1
Posts: 9
Blog Entries: 1

Rep: Reputation: 2
Hi Lennie, I wrote this in my Xfce notes: log in as root.
Code:
visudo
Then add this line:
Code:
%users ALL = NOPASSWD:/usr/libexec/xfsm-shutdown-helper
Hope that helps, later.
 
Old 11-03-2012, 07:28 AM   #3
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
I don't have that file /usr/libexec/xfsm-shutdown-helper ...

When I installed Slackware I installed the recommended package groups except from kde and games. So I guess I should have everything important installed...

Is there a way to find out which command is run when I click logout in menu? Like a way to change what's in the menu?
 
Old 11-03-2012, 07:55 AM   #4
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,948

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
Quote:
Originally Posted by Lennie View Post
I have just installed Slackware 14, 64-bit, with Xfce. I boot up to console, log in, and then type startx to start xfce.

When I click on logout in the menu, I immediately gets back to console, still logged in as my user. I want the logout dialog where to choose shutdown, reboot and so on. How to get that?
Edit /etc/inittab and set the value for initdefault from 3 to 4. Reboot to your graphical login manager (XDM, KDM, whatever), launch your Xfce session from there, and you'll see all your options.

BTW, when using Xfce, I recommend SLiM. It's not included officially, but you'll find it on SBo. I wrote a little HOWTO about it here:

http://docs.slackware.com/howtos:window_managers:slim
 
Old 11-03-2012, 09:04 AM   #5
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
Still no success. I changed to runlevel 4, I login with xdm, and I still didn't get the logout options. Then I also couldn't open geany as root, neither with sudo nor if I used 'su -' first.

Code:
sudo geany /etc/inittab
Password:
No protocol specified
Geany: cannot open display
I logged out, switched to another tty and login, and run startx, and now I can open geany with sudo.


I find it also strange I can't run 'shutdown' or 'reboot' with sudo, I need to use 'su -', otherwise I get
'sudo: reboot: command not found'. I have this in sudoers:

Code:
%wheel ALL=(ALL) ALL
lena slack=NOPASSWD: /sbin/shutdown, /sbin/reboot
Code:
bash-4.2$ hostname
slack

bash-4.2$ groups lena
lena : users lp wheel audio video cdrom plugdev power netdev scanner
 
Old 11-03-2012, 09:26 AM   #6
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 161

Rep: Reputation: 21
I believe the sudo behavior is because sudo inherits the calling user's environment (which does not include /sbin, /usr/sbin, etc. in the path by default) whereas su -c gets the root user's environment.

So if you did:

Code:
sudo /sbin/reboot
it should work.

As for the Logout entry in the menu, if you right click on the Applications Menu button on the panel and select Properties, is Use the default menu selected under Menu File, or is it set to a custom menu file?
 
Old 11-03-2012, 09:49 AM   #7
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
I added 'PATH=$PATH:/sbin:/usr/sbin' to my .bash_profile and now I can use 'sudo reboot' with no password.

But still no options for logout from menu...

In the panel I also have 'Action Buttons', for shutdown, reboot... I saw there were both 'Log Out...' and 'Log Out' If I use 'Log Out...' It behaves just as if I click 'Log Out' in the menu, i.e. get me back to console but still logged in. The other alternatives gives me a question if I really want to shutdown/reboot/logout, and they work.

So the most important thing of course is that it works, and I can shutdown/reboot/logout with a few easy clicks. But I still would prefer to have it from the menu, and not need to have that extra item in panel.

Anyone know how to find out which commands it uses, so that I can try it in terminal and see what error I get? Where is the config file for the menu? I don't find it in my home, so I guess it should be somewhere in /etc ...

'Use the default menu' is selected for the menu.
 
Old 11-03-2012, 10:21 AM   #8
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 161

Rep: Reputation: 21
On my system, the menu is defined in /etc/xdg/menus/xfce-applications.menu

In this file, there is an entry:

Code:
<Filename>xfce4-session-logout.desktop</Filename>
The .desktop file above is located here:

Code:
/usr/share/applications/xfce4-session-logout.desktop
and it refers to the executable with the line:

Code:
Exec=xfce4-session-logout
If I run xfce4-session-logout from a terminal window, it presents the dialog you are looking for. So see if yours is configured the same way and then try running that executable.
 
Old 11-03-2012, 11:04 AM   #9
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
Thanks for finding those files for me. When I ran xfce4-session-logout from terminal I was thrown out to console again. I could see that the terminal gave back the prompt before that, so that command had finnished running. No errors. /usr/bin/xfce4-session-logout is a binary, so not so easy to find out what it does...

This is strange... I want to find out also because I don't like unsolved mysteries, in addition to that I want to use this feature. I guess this means checking out the source code. (I don't know C, but I will try anyway, and see if I can understand anything of it.)

If someone knows what's causing this problem, please let me know.
 
Old 11-03-2012, 11:13 AM   #10
xflow7
Member
 
Registered: May 2004
Distribution: Slackware
Posts: 161

Rep: Reputation: 21
I just searched over at the xfce.org forum. You may want to check out this thread - it seems germane:

http://forum.xfce.org/viewtopic.php?id=6898

That user seems to report the same behavior and it turned out to be some kind of interaction with the acpi daemon.

Hope that helps.
 
Old 11-03-2012, 12:11 PM   #11
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
I tried the solution from that thread, but it didn't help. I stopped the daemon ( /etc/rc.d/rc.acpid stop ), and I also did 'chmod -x' on it and rebooted, but I still get thrown out of X when I click logout in menu.
 
Old 11-03-2012, 02:25 PM   #12
Lennie
Member
 
Registered: Aug 2012
Location: Sweden
Distribution: LFS, built with pacman
Posts: 302

Original Poster
Rep: Reputation: 61
Now I feel stupid... It was so simple that I had unmarked "Prompt on logout" in Settings - Session and Startup. I thougt it was about 'prompt about saving the session', which it now wants to do if I don't unmark it in the logout-dialog every time.

I will mark the thread as solved (if/when I find out how to do that).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] migrate XFCE panel automatically, without a migration dialog cccc Debian 2 09-25-2012 06:44 PM
[SOLVED] xfce dialog box now appears waddles Linux - Desktop 3 09-20-2012 05:17 AM
Gnome Logout dialog, shutdown and hibernate options have disappeared trainpic Ubuntu 2 04-04-2006 08:06 PM
Problem: Default Login Manager &Logout Dialog Ray2047 Debian 6 12-24-2005 08:33 AM
Dragon on logout dialog in KDE... craigs1987 Linux - Software 2 07-06-2004 05:25 PM


All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration