Linux: "Open with" does nothing after assigning an application [Solved]

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Linux: "Open with" does nothing after assigning an application [Solved]

Post by rafael.linux.user »

I created two entries in "Open with" in XnView MP AppImage:
  • gimp (parameter "%U")
  • 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
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Open with" does nothing after assigning an application

Post by xnview »

do you have tried with the tgz version?
Pierre.
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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.
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Open with" does nothing after assigning an application

Post 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
Pierre.
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Open with" does nothing after assigning an application

Post by xnview »

i don't know, i have no problem with xfce or gnome
Pierre.
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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).
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Open with" does nothing after assigning an application

Post by xnview »

which version of QT do you have?
Pierre.
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Open with" does nothing after assigning an application

Post 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 
Pierre.
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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 :shock: When do I launch xnview with that script?
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "Open with" does nothing after assigning an application

Post 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 :shock: 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
Pierre.
rafael.linux.user
Posts: 20
Joined: Wed Jul 11, 2018 12:06 pm

Re: "Open with" does nothing after assigning an application

Post 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.
Post Reply