Command Launcher

by collinss
UUID: commandLauncher@scollins
Score: 1
Last edited: 1 month ago
Last commit: e99a550022b3d166c29e58dcfc233e9e76fad111

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).

Features

  • 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!

5 Comments

CottonEaster
CottonEaster-3 weeks 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
CottonEaster-1 month ago
Sorry for the (lack of) formatting in the comment below; the website seems not to support formatting.
CottonEaster
CottonEaster-1 month 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
rtikw-3 weeks 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
CottonEaster-3 weeks ago
Thanks - perhaps I'll try that.