Trywhich should show your desktop.Code:
Trywhich should show your desktop.Code:
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:
This tells me a couple of things. First off, the wm executed thunar for me using the command "/usr/bin/Thunar file:///home/greg". Thunar in the command is a link to thunar - the actual name of the executable. "which thunar" or "which Thunar" tells me both are in the PATH variable and so I can type thunar at a terminal and up pops thunar. "man thunar" tells me all sorts of information about executing thunar. I can find out more information about an executing instance of thunar by examining the proc file system or running strace on the process. I can apply this to any process on my system.Code:
$ ps -ef | grep [tT]hunar
greg 30102 2114 0 Jan23 ? 00:00:03 /usr/bin/Thunar file:///home/greg
$ which 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..
If none return a valid process id (a 4 digits number) then try by right-clicking on the task bar then choose 'about ?' might be a good option to get the running DE (desktop environment).Code:
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 fileSave this file with the desired name under desktop-directories folder with .directory as extension. (For the example, I used SubMenu.directory)Code:
# Only Name and Type are required
# Not the DE version; the version of freedesktop.org specification used
# for the validation process
# The name that will appear in the menu
# only .xpm or .png file are supported, with version=1.0.
# Categories must end with a ';'
Now validate the file with :
If everything goes Ok with the validation, then go to the next stepCode:
To add menu item, put this in a file :Save this file with the desired name under applications folder with .desktop as extension. (For the example, I use MenuItem.desktop)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 !
# What to do when you click on that menu item
# if you wish to shutdown the thing :
# gnome-panel-logout --shutdown
# 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
# do not display this icon under other desktop's environment (the
# command executed is DE specific)
# must end with a ';' under version=1.0
Now validate the file with :If everything goes Ok with the validation, then add them to the menu :Code:
For more keys, take a look at Recognized desktop entry keysCode:
# 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