Command Launcher

UUID: commandLauncher@scollins
Last edited:
7 months ago 2017-09-12, 20:05 UTC
Last commit: [a6059d31] command launcher: fix notification of completion. It seems the arguments to GLib.child_watch_add have changed for no obvious reason, and the change is not documented. This could be an error of some sort, but adding the additional argument seems to fix it.

Lets you to run command-line commands with the click of a button

Cinnamon Command Launcher

This is a simple multi-instance applet for Cinnamon which allows the user to launch commands as though from a command prompt with the click of a button. Unlike a program launcher, which typically uses a .desktop to launch a program, Command Launcher uses a direct command-line command. This means you can use any command you could use from a terminal (eg run a script, launch program with complicated command-line arguments, etc).


  • Users can add as many to the panels as they would like
  • Users can change the command, tooltip and icon (supports fullcolor and symbolic)
  • Users can set a short-cut key to launch the command
  • Option to set the path from which to run the command
  • Option to run with root priviledges (password dialog will appear)
  • Option to send Notifications on start and completion of the process

Known issues

Log In To Comment!


CottonEaster-8 months ago
I should add that I would like it were the problem I identified in another comment to be fixed; because in the meantime I have to reply on the launcher that Cinnamon itself provides, and that launcher is considerably buggy. Perhaps I'll try the rollback of your applet, as suggested on this page by the user called 'rtikw'. (Is there some way to get an email notification when a comment is replied to?)
CottonEaster-9 months ago
Sorry for the (lack of) formatting in the comment below; the website seems not to support formatting.
CottonEaster-9 months ago
This wonderful applet is, as of today, throwing an error when I use it to launch anything. The error is: Error invoking Glib.child_watch_add: Expected function for callback argument function, got null Is this the result (in part) of some library being updated?
rtikw-8 months ago
I'm getting the same problem - I found a temporary fix by rolling back a recent change in the applet JS: ~/.local/share/cinnamon/applets/commandLauncher@scollins/applet.js Comment out: GLib.child_watch_add(pid, Lang.bind(this, this.onClosed), null); Replace with: GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid, Lang.bind(this, this.onClosed), null);
CottonEaster-8 months ago
Thanks - perhaps I'll try that.