Custom keywords in Gnome launcher

I'm making the switch from MacOS, and one of the things I loved about MacOS was the Alfred launcher.
Especially it's feature to attach custom actions to a keyword of your choice.

Is it possible to for example execute this command xdg-open https://gmail.com && xdg-open https://calendar.google.com when I type the keyword "start workday" in the Gnome launcher?

I tried making a .sh file and running it from the Gnome launcher but that's not working.

Might this help?
https://www.miskatonic.org/2021/09/26/launcher/

1 Like

This would work on XFCE using exo- instead. Not sure about Gnome, though.

2 Likes

I followed the guide, but it didn't work.
After a lot of experimentation, I ended up with this method:

  1. Create a .desktop file on the desktop
  2. Open and write the following:
    [Desktop Entry]
    Encoding=UTF-8
    Name=Name that will show up in Gnome Launcher
    Exec=bash -c "xdg-open Zorin OS - Make your computer better."
    Icon="home/hanne/Documents/Linux/Debian/custom-launcher-entries/custom-gnome-launcher-entries/zorin.png"
    Type=Application
    Terminal=false
  3. Make executable: right click file > Properties > Permissions > check Execute
  4. Allow launching: right click file > Allow launching (this is why the file needs to be on the desktop)
  5. Move the file to ~/.local/share/applications (create these folders if they don't exist)
    Wait a few seconds and the entry should be visible in Gnome Launcher.

Tip: Make sure the icon is sqaure or it will be stretched in the launcher.

2 Likes

Good job!
Would you mind writing a tutorial with this discovery?
I am sure it will benefit many others.

3 Likes

Sure!
You mean here on the forum?

1 Like

That is what the tutorials and guides category is for. Anyone is free to add content that is beneficial and well explained.

2 Likes

The tutorial is created!

3 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.