Configure OpenWith program

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

Moderators: XnTriq, helmut, xnview

dric512
Posts: 2
Joined: Tue Sep 03, 2024 7:14 pm

Configure OpenWith program

Post by dric512 »

I am trying to configure an "Open with" program to open pictures. When I try to use it, nothing happens and I am not able to debug it.

The script I want to configure is:

Code: Select all

    
<path to venv>/bin/python3 <path>/script.py <images>
Both "path to venv" and "path" are absolute paths on Linux. If I try this command manually from any directory, it opens correctly.

In the configuration window, I tried to put python3 program and script as argument, or both together, but with no success.

Any help?
dric512
Posts: 2
Joined: Tue Sep 03, 2024 7:14 pm

Re: Configure OpenWith program

Post by dric512 »

I have been able to work around it by creating an addition script that directly calls:

<path to venv>/python <path>/script.py <args>