Open rofrol opened 4 years ago
Is strange bc this %U was already add on 2017-03-31 https://github.com/QNapi/qnapi/commit/73ac207ca2b4975b0417508c12d6d31f7734cc47#diff-f19acdd85a8243632148c98d2ee5e6e5
%U
After finding desktop file and adding %U, it works as expected:
$ dpkg -S qnapi | grep desktop qnapi: /usr/share/applications/qnapi.desktop qnapi: /usr/share/doc/qnapi/qnapi-download.desktop qnapi: /usr/share/doc/qnapi/qnapi-scan.desktop $ sudo vim /usr/share/applications/qnapi.desktop
According to this https://askubuntu.com/questions/162612/how-can-i-add-an-application-to-the-list-of-open-with-applications/849387#849387 %U needs to be added to Entry field in desktop file.
Entry
desktop
Also mpv uses %U.
Recognized desktop entry keys points to The Exec key:
%U A list of URLs. Each URL is passed as a separate argument to the executable program. Local files may either be passed as file: URLs or as file path.
Is strange bc this
%U
was already add on 2017-03-31 https://github.com/QNapi/qnapi/commit/73ac207ca2b4975b0417508c12d6d31f7734cc47#diff-f19acdd85a8243632148c98d2ee5e6e5Wokaround
After finding desktop file and adding
%U
, it works as expected:Regarding %U vs %F
According to this https://askubuntu.com/questions/162612/how-can-i-add-an-application-to-the-list-of-open-with-applications/849387#849387
%U
needs to be added toEntry
field indesktop
file.Also mpv uses
%U
.Recognized desktop entry keys points to The Exec key: