qnapi icon indicating copy to clipboard operation
qnapi copied to clipboard

qnapi not listed in Open With Other Application

Open rofrol opened this issue 4 years ago • 0 comments

Is strange bc this %U was already add on 2017-03-31 https://github.com/QNapi/qnapi/commit/73ac207ca2b4975b0417508c12d6d31f7734cc47#diff-f19acdd85a8243632148c98d2ee5e6e5

  • Tested on Ubuntu 19.10
  • Installed from eoan/universe

Wokaround

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

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 to Entry field in desktop file.

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.

rofrol avatar Nov 20 '19 19:11 rofrol