I have written a simple shell script to accomplish a common task, and I want to be able to run it whenever a button is clicked. I've used gnome-shell-extension-tool to create the Hello World example already, but now I need to know how to simply have it run an arbitrary command when clicked. There is no input or output to be concerned with; it just needs to run.
相关问题
- How can my GNOME Shell extension detect the GNOME
- How do I call out to a command-line program from a
- How to handle keyboard events in gnome shell exten
- Use of Shell object in Gjs
- How to test / debug GNOME Shell extensions? Is the
相关文章
- How do I call out to a command-line program from a
- How to handle keyboard events in gnome shell exten
- Use of Shell object in Gjs
- How to test / debug GNOME Shell extensions? Is the
- 在JavaScript拆包GVariant(unpacking GVariant in javasc
- 掌握侏儒壳牌JS接口的联系人列表(Getting list of contacts with Gno
- Programming a Gnome extension to disable left edge
- How do I get the monitor of an active window in GN
For those looking to read the output of the command, use this. The default working directory for Gnome shell extensions is the user's home directory.
Just thought I'd mention these things, because it took me a while to figure them out.
After some more creative googling, I've found the solution: