How to pass arguments to command through Desktop shortcut without having to open a terminal?
2
votes
2
answers
5428
views
I'm using a LXDE desktop.
I created a shortcut in the desktop to a python program, which can be passed files to, which are then opened in the GUI.
I mean passing files (file absolute paths) to the command by drag'n'dropping them over the shortcut on the desktop.
In fact this is already working, but only if I set Terminal=true in the Desktop Entry, which obviously makes the terminal be opened. I wanted to know if there's a way to pass the arguments to the command without the need to open the terminal.
I'm creating the shortcut like this:
[Desktop Entry]
Name=TBOPlayer
Comment=UI for omxplayer
Exec=python /path/to/tboplayer/tboplayer.py "%F"
Icon=/usr/share/pixmaps/python.xpm
Terminal=true
Type=Application
Is there a way to do this?
Asked by heniotierra
(21 rep)
Sep 7, 2015, 06:54 PM
Last activity: Aug 4, 2023, 05:08 PM
Last activity: Aug 4, 2023, 05:08 PM