Results 1 to 1 of 1

Thread: How can I add an item to the Gnome 3 menu?

  1. #1
    Join Date
    May 2008
    Location
    United Kingdom
    Beans
    5,263
    Distro
    Ubuntu

    Question How can I add an item to the Gnome 3 menu?

    EDIT: It's suddenly started to work!

    I've tried following the instructions found on the 'net, but I can't get the following to work.

    I have Ubuntu 20.04, and a script that I've written.

    I want the script to be available from the normal Gnome 3 menu (when you press the Super key and start typing the name, or press the Applications button) — but it must be available to all users, not just me.

    Here's what I've done.

    1. Create the script (named test) to start a GUI application. Save this script to /usr/local/sbin/test. I've given read and execute permissions to everyone.
    2. Create a .desktop file for the item, which I've put into /usr/share/applications/test.desktop. The contents are as follows.
      Code:
      [Desktop Entry]
      Name=Test
      Comment=This is a foobar test
      Keywords=foobar;
      OnlyShowIn=GNOME;Unity;
      Exec=/usr/local/sbin/test %u
      Icon=/usr/share/icons/test.png
      StartupNotify=true
      Terminal=false
      Type=Application
      StartupWMClass=ApplicationName
      Categories=Utility;
    3. I've tested that the script works:
      Code:
      /usr/local/sbin/test

    Now, even after I restart, when I press the Super key, I search for my app using the keyword "test" (from the Name) or "foobar" (from the Keywords), but neither returns the result. How can I fix this, please?
    Last edited by Paddy Landau; November 18th, 2020 at 08:12 PM.
    Always make regular backups of your data (and test them).
    Visit Full Circle Magazine for beginners and seasoned Linux enthusiasts.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •