Quit menu only has logout and cancel icons

Forums for the Fluxbox Edition
Forum rules
Before you post please read this

Quit menu only has logout and cancel icons

Postby jeffreyC on Sat Aug 21, 2010 1:12 am

Using version 3.24 white squares with red x's on all but logout, cancel
Tried changing icon set, no difference
Can't find a menu to edit manually


Jeff
Get Dropbox and an extra 250 mb http://db.tt/wAizqw0
jeffreyC
Level 4
Level 4
 
Posts: 318
Joined: Mon Jun 07, 2010 9:34 pm

Linux Mint is funded by ads and donations.
 

Re: Quit menu only has logout and cancel icons

Postby viking777 on Sat Aug 21, 2010 1:59 pm

Well you have one up on me already - I don't even have a quit menu!

The file to edit is ~/.fluxbox/menu

My entries (at the end of the file) look like this:

Code: Select all
[separator] (--------) {} <>
    [exec] (Logout) {skill -KILL -u  yourusername goes here}
    [exec] (Reboot) {/sbin/reboot}
    [exec] (Shutdown) {/sbin/halt}
[end]


You may have to invoke the setuid bit to make reboot and halt work as a normal user, for that you do:

Code: Select all
sudo chmod 4711 /sbin/reboot


and the same for /sbin/halt
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Quit menu only has logout and cancel icons

Postby jeffreyC on Sat Aug 21, 2010 2:21 pm

The menu works, but no icons, just image not found symbols


Jeff
Get Dropbox and an extra 250 mb http://db.tt/wAizqw0
jeffreyC
Level 4
Level 4
 
Posts: 318
Joined: Mon Jun 07, 2010 9:34 pm

Re: Quit menu only has logout and cancel icons

Postby shane on Sat Aug 21, 2010 6:00 pm

jeffreyC wrote:Using version 3.24 white squares with red x's on all but logout, cancel
Tried changing icon set, no difference
Can't find a menu to edit manually


What icon theme are you using in your other *GTK* apps? Instead of using static icons, I changed this version to use the GTK icon theme for the quit dialog. Look in /usr/lib/linuxmint/mint-fm2/endsession/endsession.glade... the lines with "<property name="icon_name">" define what icon should be used for each button. If the *GTK* icon theme is complete, the corresponding icon should be present and should appear. Please check your *GTK* icon theme or try another one.

@viking777 How did you generate your menu? There is no code that I wrote that would generate those entries in the menu... :?

P.S. By GTK theme... i mean the one defined in lxappearance.
User avatar
shane
Level 6
Level 6
 
Posts: 1300
Joined: Sun Feb 25, 2007 11:15 pm

Re: Quit menu only has logout and cancel icons

Postby viking777 on Sun Aug 22, 2010 5:33 am

@viking777 How did you generate your menu? There is no code that I wrote that would generate those entries in the menu...


You are quite right, there isn't, it is entirely my own invention. I needed to do this because I am not using the Fluxbox CE, but the fluxbox wm on top of various other DE's but using the Fluxbox CE generated .fluxbox and .mint-fm2 files. Not all your code therefore works with these other DE's. The sheer beauty of fluxbox is that it is so easy to manipulate to make it work with other environments. I have it running over Gnome, Xfce and Lxde on several different distros and they all work well with just a bit of tweaking, mainly to menus. Again the beauty of Fluxbox is that the menus are plain text files, not even xml and are therefore simple to manipulate. I must congratulate you on the original code even if I don't use the CE edition, it is immensely portable even to non debian environments (this is being posted on an rpm based distro but it is very successfully using the .fluxbox and .mint-fm2 files that came with the Fluxbox CE that I started out with when I first looked at Flux).

I am not entirely sure about this, but I believe you use the command 'ciao' to run the quit menu? Thing is that command doesn't exist outside of Flux CE (as far as I can tell) and that is why my quit menu wouldn't work and had to be rewritten. I could have added the 'ciao' executable (if there is one) to get it working but I doubt that would have worked on an rpm based system and anyway I prefer it the way I have it as it shuts down or reboots straight away without bothering me with another dialog box.
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Quit menu only has logout and cancel icons

Postby shane on Sun Aug 22, 2010 7:29 am

Oh OK... You should be able to hack it a bit to get ciao to work in your distro. Things you'll need to know...
- The root daemon should be running. This is what does the actual power management action with root privileges.
- The trigger directory in which ciao creates the triggers should be configured.

But if you prefer doing it your own way... that's great... and that's the whole point :D
User avatar
shane
Level 6
Level 6
 
Posts: 1300
Joined: Sun Feb 25, 2007 11:15 pm

Re: Quit menu only has logout and cancel icons

Postby viking777 on Sun Aug 22, 2010 7:59 am

But if you prefer doing it your own way... that's great... and that's the whole point


Isn't it just. I am as happy as a puppy with two tails using Fluxbox at the moment, especially when I see how KDE has gone and how Gnome appears to be going. I don't know if I will always feel that way but I do just now and that is all that matters. About the only time I boot a non-flux desktop nowadays is if I am trying to help someone out on the forum and need to use Gnome tools to do so (though most of those work with flux anyway).

Thanks for the reply Shane and keep up the good work it is much appreciated, by me at least, and many others I am sure :D
Fujitsu Lifebook AH532. Intel i5 processor, 6Gb ram, Intel HD3000 graphics, Intel Audio/wifi. Realtek RTL8111/8168B Ethernet.Lubuntu 13.10,Ubuntu12.10 (Unity), Mint16 (Cinnamon), Manjaro (Xfce).
Image
User avatar
viking777
Level 14
Level 14
 
Posts: 5153
Joined: Mon Dec 01, 2008 11:21 am

Re: Quit menu only has logout and cancel icons

Postby jeffreyC on Sun Aug 22, 2010 4:19 pm

In my other GTK apps I am using Tango; the /usr/lib/linuxmint/mint-fm2/endsession/endsession.glade has gnome icons listed which are also installed on my system. I tried switching to gnome GTK icons; different image not found symbols
Get Dropbox and an extra 250 mb http://db.tt/wAizqw0
jeffreyC
Level 4
Level 4
 
Posts: 318
Joined: Mon Jun 07, 2010 9:34 pm

Linux Mint is funded by ads and donations.
 

Return to Fluxbox

Who is online

Users browsing this forum: No registered users and 2 guests