Tiny Core Base > CorePlus
How to add launch flags to an application launcher
(1/1)
SirFizX:
I am used to systems with *.desktop files that can be edited to launch applications with flags. For example I would normally edit the .desktop file for chromium to include a line that said chromium-browser --auto-open-devtools-for-tabs. How is this achieved in TC without typing it out in the Terminal each time or writing a separate script for it?
nitram:
Tiny Core uses desktop files. Load the extension and check out /tmp/tcloop. For example, the desktop file for Dillo in dCore when mounted is /tmp/tcloop/dillo/usr/share/applications/dillo.desktop. You could unpack the .tcz, modify the desktop file for your preference and repack for use.
Easier just create a custom menu entry, if your Window Manager supports this.
Or if you keep the extension in OnDemand, modify the OnDemand script. With OnDemand improvements, the same applicaition can be launched repeatedly from OnDemand menu during the same session without difficulty. For example, modifying Dillo to open Google when launched from the OnDemand menu:
--- Code: ---#!/bin/sh
ondemand -e dillo.sce www.google.com
--- End code ---
SirFizX:
@nitram
Thank you very much. Have a great day.
Misalf:
I think it should be possible to edit the Exec= line of /usr/local/share/applications/some-app.desktop and just add it to backup, because *.desktop files are used by the window manager's menu build scripts. This way, in addition to OnDemand execution (uses *.desktop files too), the program options are also used if launched from Wbar and WM's Applications menu. Might be easier than modifying extensions.
Navigation
[0] Message Index
Go to full version