Results 11 to 20 of 20
Enjoy an ad free experience by logging in. Not a member yet? Register.
echo $XDG_CURRENT_DESKTOPShould you be sitting wondering,
Which Batman is the best,
There's only one true answer my friend,
It's Adam Bloody West!
The Fifth Continent
- Join Date
- Dec 2013
- Victoria, B.C. Canada
Execution of programs is very straight forward in Linux and not hidden at all. This is true of most processes. However individual programs may well be underspecified. To learn about it though you have to understand and use the CLI. The windows are generally just window dressings. Commands such as "ps" can give you a lot of information about processes that are running.
You haven't said what file manager you're running but on my system for example:
$ ps -ef | grep [tT]hunar greg 30102 2114 0 Jan23 ? 00:00:03 /usr/bin/Thunar file:///home/greg $ which Thunar /usr/bin/Thunar ls -ltr /usr/bin/Thunar lrwxrwxrwx 1 root root 6 Nov 19 08:04 /usr/bin/Thunar -> thunar
<soapbox>Linux is a tool chest; the GUI is one of the tools but it is only a tool and to understand Linux you need to embrace the command shell.</soapbox>
Hi and thanks... I ran the code suppled and got an empty line back. So I guess it's not set. I know when I log in, I use the "system default" so whatever that is...
I'll keep my eyes peeled for any more thoughts..
pidof 'gnome' pidof 'kde' pidof 'lxde' pidof 'xfce'
For Debian, the default DE is Gnome.
As far as I know GNOME will stay the default DEdebian.org
I tried them all and they all returned nothing. I just got a prompt on the next line, unlike when I echo something and I get a blank line then the prompt. I also have tried many times to right click on a task bar and only get options of where to move it, stay on top, minimize of maximize. Nothing that let's me do anything. I was told at one time that when the 'shutdown' option disappeared from my name on the upper right of the screen that I could right click and restore it, but that didn't work either.
Thanks... I'll keep trying if you keep sending me things to try...
on the first "pidof gnome-terminal" I got a number, so I guess that's the interface, gnome...
Thanks, that answers that...
First, you need that both xdg-utils package and desktop-file-utils to be installed.
As root, create the following hierarchies :
The first one is where your (sub) menus files will be stored, and the second one is where your menu items will be stored. (Games is a sub-menu and Chess is a menu item).
To add a new menu, put the following in a fileCode:
# Only Name and Type are required [Desktop Entry] # Not the DE version; the version of freedesktop.org specification used # for the validation process Version=1.0 # The name that will appear in the menu Name=NewMenu Type=Directory # only .xpm or .png file are supported, with version=1.0. Icon=/usr/share/someicon # Categories must end with a ';' Categories=Settings;
Now validate the file with :
To add menu item, put this in a file :Code:
# Only Name and Type are required, but that would be useless to create # a menu item without an exec string to run when you click on it ! [Desktop Entry] Version=1.0 Name=Shutdown Icon=/usr/share/pixmaps/apple-green.png # What to do when you click on that menu item # if you wish to shutdown the thing : # gnome-panel-logout --shutdown Exec=gnome-panel-logout # categories is a left-to-right comma separated list which specify where # to put the item. If no 'NewMenu' has been found, the the icon will be # put in 'Settings'. Must end with a ';' under version=1.0 Categories=NewMenu;Settings; Type=Application # do not display this icon under other desktop's environment (the # command executed is DE specific) # must end with a ';' under version=1.0 OnlyShowIn=GNOME;
Now validate the file with :Code:
# Install the files for the current user only. # Put --mode system for everyone. xdg-desktop-menu install --mode user ~/.local/share/desktop-directories/SubMenu.directory ~/.local/share/applications/MenuItem.desktop
Thanks a bunch. I was hoping that someone would be able to answer this question. I will attempt it soon and if I have any questions, I'll let you know. It seems pretty through. Again, thanks for much for the assistance I don't know if I'd figure this out. BTW, where is this procedure documented?
I don't know where the whole procedure are documented, if it is. All that I know is that for commands used (desktop-file-validate, xdg-desktop-menu and gnome-panel-logout), you can refer to the proper man pages.
For the specifications of the .directory and .desktop file, you can find more information at freedesktop