That's part 2 of a question asked earlier (to be able to give credit to the answers individually).
When I type into the Dash applications show up with their title (also when hovering over the launcher), how can I find the associated desktop file. When I look into the usual suspect locations (/usr/share/applications
and ~/.local/share/applications
) with Nautilus I see the titles, but not the file names (not even in properties which sucks). When I look from the command line I see the file names but not the titles (a switch would be nice).
How can I get a listing (a custom column?) that shows them next to each other?
Command line
grep
searches in all file in/usr/share/applications/
for a line starting withName=
.For each line it finds it prints
filename:line
, for exampleTo make it look a bit better we use
sed 's/:Name=/ /'
to replace:Name=
with(three spaces)
Quick hack for the list view in Nautilus:
Install the package
python-nautilus
, create the folder~/.local/share/nautilus-python/extensions
and save the following code as~/.local/share/nautilus-python/extensions/filename-column.py
:Run
nautilus -q; nautilus&
at the command line to restart Nautilus. Then in the nautilus menu go to Edit -> Preferences -> List Columns and activate thefile name
column (you may want to move it up, too). Now you have an additional column in list view that always shows the file name.Isn't exactly pretty but does it's job.