Startup command not working

I have a startup command that works when I use it in the terminal, but doesn't work when I add it to Startup Applications Preferences

It's a command to open the Gnome Applications launcher:

dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.shellDBusService.ShowApplications();'

image

Try wrap it with a sh -c command

3 Likes

Thanks! This works!

gnome-terminal -- bash -c "dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.shellDBusService.ShowApplications();'"

What is the purpose of bash -c?

1 Like

-c = command. It''s like writing a script in the terminal.

2 Likes