Xfce Wiki

Sub domains
 

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howto:customize-menu [2012/11/25 19:09]
cocoonair [Unanswered]
howto:customize-menu [2013/12/03 21:55] (current)
ammo [Unanswered]
Line 148: Line 148:
  
   * With which command can I set a start-up-password for an application in the *.desktop file?   * With which command can I set a start-up-password for an application in the *.desktop file?
 + One approach would be to remove execution rights for others (chmod o-x filename) and start the command using '​Exec=gksudo filename'​ (gksudo is included in package gksu - apt-get install gksu). You may need to provide some command line options before the filename to tune the behaviour of gksu. In this way users have to be members of group sudo to start the program, and enter their own password to confirm their identity. You could also make the program owned by a special group, e.g. powerusers (sudo addgroup powerusers),​ that have execution rights (e.g. chown root:​powerusers filename && chmod g+x filename && chmod o-x filename) and then users would have to be a member of group powerusers (adduser someuser powerusers) to start the command after one-time logging in and out of the system to apply the new group membership to their user profile. Users that are not members of that group will simply not be able to run the program at all. 
 + If you really want a password prompt, you can also run the program using '​Exec=gksu --user someuser filename'​ in the .desktop file in order to require someuser'​s password before running the program. However, running programs as a different user is not generally recommended for more complex programs unless you know how to avoid the side-effects (e.g. different home directory, security policy, etc.).
 +
   * What do i do, if the above does //not// work? (only xfce's own desktop files are seen, not even the one created with exo-desktop-item-edit,​ not to speak from common desktop files in both /​usr/​share/​applications/​ and ~/​.local/​share/​applications/​)   * What do i do, if the above does //not// work? (only xfce's own desktop files are seen, not even the one created with exo-desktop-item-edit,​ not to speak from common desktop files in both /​usr/​share/​applications/​ and ~/​.local/​share/​applications/​)
 +In some cases running update-desktop-database may help. Or directly modify the files in /​usr/​share/​applications.
 +
   * Where do i find a log or anything like that, actually giving me a clue other than simply empty space in the menu?   * Where do i find a log or anything like that, actually giving me a clue other than simply empty space in the menu?
 +View /​usr/​share/​applications,​ ~/​.local/​share/​applications,​ etc. with Thunar. You should see a plain .desktop file listed for the blank entry, between the clickable icons with fancy names.
   * I run Jaunty and need to make the menu to be multi-level,​ which, in previous versions I believe, could be achieved by editing '///​etc/​X11/​xdg/​xfce4/​desktop/​menu.xml//'​ and replace //​style="​simple"//​ with //​style="​multilevel"//​ in the //<​include>//​. How do I do this in Jaunty? I need this because I have certain applications under Wine which have very many start-menu entries and they are all merged into one menulevel, which is really annoying to navigate thru. Please help ...   * I run Jaunty and need to make the menu to be multi-level,​ which, in previous versions I believe, could be achieved by editing '///​etc/​X11/​xdg/​xfce4/​desktop/​menu.xml//'​ and replace //​style="​simple"//​ with //​style="​multilevel"//​ in the //<​include>//​. How do I do this in Jaunty? I need this because I have certain applications under Wine which have very many start-menu entries and they are all merged into one menulevel, which is really annoying to navigate thru. Please help ...
 +See http://​forums.opensuse.org/​english/​get-technical-help-here/​applications/​477258-flat-menu-xfce.html
howto/customize-menu.txt · Last modified: 2013/12/03 21:55 by ammo