49

For shortcuts in the Applications drop-down Menu and on the title bar of the Gnome Desktop, where is the path to their directories?

wsdzbm
  • 839
  • 1
  • 7
  • 12
  • For the benefit of a comprehensive understanding and an organic yet simple description on how desktop files work and where they should be placed, see the Gnome Developers website at: https://developer.gnome.org/integration-guide/stable/desktop-files.html.en Hope this helps! – user3567566 Oct 18 '20 at 06:17
  • That is a helpful resource, but seems to have been moved to: https://developer-old.gnome.org/integration-guide/stable/desktop-files.html.en – JonathanDavidArndt Apr 16 '23 at 01:21

3 Answers3

62

You are looking for the .desktop files, which are located in /usr/share/applications (or sometimes /usr/local/share/applications).

Some applications may place these files in ~/.local/share/applications instead.

Slim
  • 477
  • 1
  • 4
  • 10
Charles Green
  • 20,952
  • 21
  • 60
  • 92
  • I saw some duplications in that folder. I guess they are the shortcuts in the `Applications` menu? How about the shortcuts on the titlebar? I didn't see them in `/usr/share/applications` – wsdzbm Mar 17 '16 at 14:31
  • What titlebar we're talking about ? The top black bar ? Can you give example of application you're referring to ? – Sergiy Kolodyazhnyy Mar 17 '16 at 14:33
  • @Lee Are you referring to the tray icons, such as the bluetooth icon or the speaker volume icon? – Charles Green Mar 17 '16 at 14:47
  • @CharlesGreen yes, they are included on the title bar. I'm using `gnome-session-flashback`, not `unity`. – wsdzbm Mar 17 '16 at 14:50
  • @Serg On the top of the Desktop, where there is `Applications` menu, custommed application shortcuts and applet indicators such as the icons of dropbox, input method, time clock and system menu. – wsdzbm Mar 17 '16 at 14:52
  • 1
    Those may vary. If that's an external application like dropbox - it has .desktop file as well in `/usr/share/applicaitons/` folder. If that's something built in like clock or input method - that's built into the gnome, likely won't have a shortcut. – Sergiy Kolodyazhnyy Mar 17 '16 at 15:04
48
  1. Most apps: /usr/share/applications/
  2. Some apps: /usr/local/share/applications
  3. Some other apps: ~/.local/share/applications/
  4. Installed with Snap apps: /var/lib/snapd/desktop/applications/
  5. Installed with Flatpak apps: /var/lib/flatpak/exports/share/applications/
  6. Installed with Wine apps: ~/.local/share/applications/wine/Programs/
Xtigyro
  • 581
  • 4
  • 4
9

Your own shortcuts can also be placed in ~/.local/share/applications.

pa4080
  • 29,351
  • 10
  • 85
  • 161
rloth
  • 101
  • 1
  • 3
  • 2
    This would be better off as an edit to the existing answer. (you also get additional reputation for editing existing answers here) – Fabby Aug 31 '17 at 08:55
  • 2
    @DavidCulbreth: Posting questions, posting answers and editing answers are rep 1 privileges. Posting comments needs higher rep. – Fabby Aug 11 '18 at 22:53
  • You're doing great @rloth! Keep the good stuff coming. – Bruno Bronosky Nov 04 '21 at 14:35