LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 07-16-2016, 06:14 PM   #1
stwesh
Member
 
Registered: Oct 2011
Posts: 30

Rep: Reputation: Disabled
fluxbox log out option


If this is the wrong forum,I do apologize.I am running debian/xfce on an old 32 bit machine.I have built Fluxbox up to a descent state and noticed there in no log out option.I have Googled this and came up with Fluxbox does'nt have this option.I messed around with Antix Linux
in the past which is built on(or around)Fluxbox and does have a menu option for log out,shutdown,suspend,etc... My question-Could I utilize
this in a standard build of Fluxbox?
 
Old 07-16-2016, 08:06 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I found this on the Fluxbox wiki, but I don't think it's what you are looking for:

http://fluxbox-wiki.org/category/how..._a_dialog.html

As Fluxbox is a window manager and not a desktop environment, logout/reboot/shutdown capability is inherent to it. Depending on the distro you are using, you might be able to rig something up using gksu or a similar utility to execute reboot/logout/pm-suspend/shutdown commands with root authority.

This post at archbang.org might give you some ideas:

http://bbs.archbang.org/viewtopic.php?id=2902
 
Old 07-17-2016, 04:25 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i'm pretty sure fluxbox has an "Exit" command, which in most cases triggers a logout.
RTFM ( = read the fluxbox manual :-)!
 
1 members found this post helpful.
Old 07-17-2016, 04:35 AM   #4
Michael Uplawski
Senior Member
 
Registered: Dec 2015
Posts: 1,622
Blog Entries: 40

Rep: Reputation: Disabled
Add something like these lines to your fluxbox menu, between the topmost [begin] and the last [end] at the bottom (both not shown, here):
Code:
---------- snip -----------
[submenu] (Red button) <~/Icons/red_button.xpm>
  [restart] (Restart)
  [exec] (halt) {xterm -e sudo shutdown -h now}
  [exit] (Exit) 
[end]
---------- snip -----------
Use an image of your choice for the menu-icon or do not mention any icon. Use gksudo instead of the call to xterm, if you prefer... anyway, this should be quite obvious.

Last edited by Michael Uplawski; 07-17-2016 at 09:50 AM.
 
Old 07-17-2016, 09:01 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
If you are using a display manager, the Fluxbox exit command should trigger a logout. If you are not using a DM, it simply exits X and puts you back to the command line.

Last edited by frankbell; 07-17-2016 at 09:05 PM.
 
1 members found this post helpful.
  


Reply



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
change desktop option in gdm... using Linuxmint fluxbox version budword Linux - Desktop 1 04-08-2008 10:49 PM
Fluxbox Menu option for 'Mount' TomalakBORG Linux - Software 9 05-18-2005 12:37 PM
No antialias option in fluxbox Dswissmiss Linux - Software 7 10-03-2004 12:02 PM
Can't log into KDE or Fluxbox MockieMoo Linux - Newbie 2 08-10-2004 04:34 AM
gdm no option for fluxbox b0rcked Debian 14 05-02-2004 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 06:32 AM.

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
Open Source Consulting | Domain Registration