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

User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

Please use

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 »

Perfect, the patch now works, thank you very much.
Hopefully the problem will be solved, because it's an additional work to have to do this process for every installation.
george6996
Posts: 2
Joined: Tue Dec 09, 2014 11:23 pm

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

Post by george6996 »

xnview wrote: Mon Mar 21, 2022 7:26 am you can make a workaround, create a gwenview.sh
In which folder should these *.sh files be saved?

I have a similar issue when trying to open .pdf files from within XnView. 'Error -- KIO client' appears also when I try to open a folder in file explorer or when I click on Settings > Integration > Paths > Open Config Files Location or on Settings > Integration > Paths > Open the Catalog Location.

Probably, due to the same bug, XnView doesn't see/use files in ~/.xnviewmp -- .db files in this folder were last updated on 14 July 2020. It seems that each time one opens a folder, XnView recreates thumbnails.

What would be the code for opening .pdf files in Okular and folders in Dolphin?
Post Reply