This question has already been answered:
How to run a shortcut on the desktop through the terminal? Arch linux xfce system. Specifically created a shortcut to the virtual machine on the desktop. xdg-open does not start
This question has already been answered:
How to run a shortcut on the desktop through the terminal? Arch linux xfce system. Specifically created a shortcut to the virtual machine on the desktop. xdg-open does not start
A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .
Manual method - open the file, it is a text file, find the Desktop Entry section, in it the Exec key. There will be a launch line. You can parse both handles and ready-made modules. For example, for Perl there is such a File :: DesktopEntry . or for python .
If you just need to run in the terminal, then you can
xdg-open file.desktop www-browser* and show the output - KoVadimTypically, the desktop folder is located at '~ / Desktop', but it can also be "Desktop". Go through the terminal in this folder and write ./ shortcut name - should work.
Source: https://ru.stackoverflow.com/questions/761305/
All Articles