Score:0

dbus-send works at terminal but not script

us flag

I'm trying to make a script that opens the gnome application overview

If I run this at the terminal it works:

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

but if I run it from a script, nothing happens.

Weirdly, if I add this just before it, it does work after the yad dialog (similar to zenity) goes away, but that delays it longer than I want

yad --text="hud" --timeout=1 --center 

If I add a " &" to the end of that, it doesn't work again.

Any ideas?

thanks,

  • Dave
vanadium avatar
cn flag
If I run it in a script, it works. You may want to show the script.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.