Page 1 of 2
Linux: "Open with" does nothing after assigning an application [Solved]
Posted: Mon Jan 03, 2022 9:23 am
by rafael.linux.user
I created two entries in "Open with" in XnView MP AppImage:
- gimp-2.10 (parameter "%U")
Both references does exist in "/bin". "gimp" is a softlink to "gimp-2.10".
However, when I select a image in XNView and try "Open with" with any of both entries, none of them even launch GIMP (Gimp is installed and works without issues). However, I tried downloading Gimp.AppImage and create a new entry in "Open with" and it works!!!!
What's happening?
Thank you
Re: "Open with" does nothing after assigning an application
Posted: Tue Jan 04, 2022 4:43 pm
by xnview
do you have tried with the tgz version?
Re: "Open with" does nothing after assigning an application
Posted: Wed Jan 05, 2022 9:08 am
by rafael.linux.user
xnview wrote: Tue Jan 04, 2022 4:43 pm
do you have tried with the tgz version?
Sincerely, I don't know why but not. Maybe I tried it some years ago but AppImage version made easier to update .... I'll try, thanks.
Re: "Open with" does nothing after assigning an application
Posted: Wed Jan 05, 2022 9:28 am
by rafael.linux.user
xnview wrote: Tue Jan 04, 2022 4:43 pm
do you have tried with the tgz version?
I tried with tgz "XnView MP Linux, Version 0.99.6 64bits (Dec 10 2021) Libformat version 7.99" but same issue. Using or not "%U" parameter, Xnview even don't launch GIMP (or any other editor) when using "Open with .." and selecting my own new menu entry (gimp or even gimp-2.10)
Any other suggestion?
Re: "Open with" does nothing after assigning an application
Posted: Wed Jan 05, 2022 12:40 pm
by xnview
why %U?
I've tried on ubuntu to add gimp (/usr/bin/gimp), and i use 'open with' in browser, gimp is opened with the file
Re: "Open with" does nothing after assigning an application
Posted: Wed Jan 05, 2022 1:37 pm
by rafael.linux.user
%U usually is (at least in Plasma) how desktop send selected file URI to application.
Anyway, in my case, it doesn't open GIMP with or without parameter. I tried in TWO distinct PC with Plasma (openSUSE Tumbleweed) and in both doesn't work. I must add that in openSUSE 15.1 it was working. Maybe issue is related to latest Plasma updates?
Re: "Open with" does nothing after assigning an application
Posted: Thu Jan 06, 2022 7:05 am
by xnview
i don't know, i have no problem with xfce or gnome
Re: "Open with" does nothing after assigning an application
Posted: Tue Mar 15, 2022 12:55 pm
by rafael.linux.user
I downloaded current AppImage version, removed "~/.config/xnviewmp" folder and launch XNview AppImage. Previously, I associated GIMP to JPG images in Plasma. I select a image and hit "F3" .... nothing happens so I think this issue is related to XNView when working on Plasma.
UPDATE:
I tried AppImage and binaries (xnview.sh) in TWO distinct PC with openSUSE Tumbleweed with Plasma desktop. No one of them opened Gwenview (default application to open JPG files in Plasma) nor GIMP (associated to JPG files manually in Plasma desktop later).
Re: "Open with" does nothing after assigning an application
Posted: Thu Mar 17, 2022 12:25 pm
by rafael.linux.user
I don't undertand too much of AppImage, but seeing output when pressing <F3> key (to open associated application), the output tells
Code: Select all
######### CategoryModel :: checkAndSave()
kde-open5: /tmp/.mount_XnViewZIUxFY/lib/x86_64-linux-gnu/libselinux.so.1: no version information available (required by /lib64/libmount.so.1)
kde-open5: /tmp/.mount_XnViewZIUxFY/usr/XnView/lib/libQt5Gui.so.5: version `Qt_5.15.2_PRIVATE_API' not found (required by /lib64/libQt5WaylandClient.so.5)
kde-open5: /tmp/.mount_XnViewZIUxFY/usr/XnView/lib/libQt5Core.so.5:
that I bet is related to an unpacked library in the AppImage. In fact, I'm not using Wayland now and day.
Re: "Open with" does nothing after assigning an application
Posted: Fri Mar 18, 2022 7:15 am
by xnview
which version of QT do you have?
Re: "Open with" does nothing after assigning an application
Posted: Fri Mar 18, 2022 8:54 am
by rafael.linux.user
Operating System: openSUSE Tumbleweed 20220218
KDE Plasma Version: 5.24.1
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.2
Kernel Version: 5.16.4-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-9700K CPU @ 3.60GHz
Memory: 15.1 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 2060/PCIe/SSE2
Re: "Open with" does nothing after assigning an application
Posted: Mon Mar 21, 2022 7:26 am
by xnview
you can make a workaround, create a gwenview.sh
Code: Select all
#!/bin/sh
export LD_LIBRARY_PATH=""
export QT_PLUGIN_PATH=""
exec /usr/bin/gwenview
Re: "Open with" does nothing after assigning an application
Posted: Mon Mar 21, 2022 9:15 am
by rafael.linux.user
There must be an errata .... you put "gwenview", should not be "xnview"?. If not, I don't understand what's the point

When do I launch xnview with that script?
Re: "Open with" does nothing after assigning an application
Posted: Mon Mar 21, 2022 12:19 pm
by xnview
You choose this script instead of /usr/bin/gwenview for 'open with'
rafael.linux.user wrote: Mon Mar 21, 2022 9:15 am
There must be an errata .... you put "gwenview", should not be "xnview"?. If not, I don't understand what's the point

When do I launch xnview with that script?
no, gwenview or any other apps. Like that the 'open with' app will not use XnView's QT libraries
Re: "Open with" does nothing after assigning an application
Posted: Mon Mar 21, 2022 12:57 pm
by rafael.linux.user
It is now clear. I have done it and, with and without %U as parameter, it opens the program (GIMP) but not the image selected to open.