Assoc. Program Arguments (Does not work on Linux)

*** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: helmut, XnTriq, xnview, Dreamer

bugreporter2
Posts: 1
Joined: Wed Mar 19, 2025 11:48 pm

Assoc. Program Arguments (Does not work on Linux)

Post by bugreporter2 »

XnViewMP: 1.8.6 64-bit
OS: Linux Debian 12 (Bookworm) 64 bit

On the Linux build of XnViewMP, associated program arguments don't get passed to the program being run. On windows, this feature works as expected.
Both XnViewMP versions are the same for each install tested.

Effect: XnView fails to pass arguments to program.

To reproduce:
1. Install XnViewMP on Linux
2. Select a file in XnView
3. From the "File" menu, open "Open with" and select "Configure programs..."
4. In the dialog that opens, click the "Add..." button and choose any program on your computer that accepts command line arguments. (For example, Python)
5. Edit the "Arguments" column to add arguments values you would be able test for in the program you chose.
6. Click OK to close the dialog and apply changes.
7. Right click on a file in XnView and from the "Open with" menu, choose the program you added in the dialog with the custom arguments.

For a test case, I use a python script that writes the command line arguments to a text file:

Code: Select all

import sys, os

with open(r"C:\Users\USERNAME\Desktop\output.txt", "w") as f:
	for item in sys.argv:
		f.write(item + "\n")
Actual behaviour (bug): Arguments not passed to program on Linux.

Expected behaviour: Arguments would be passed to the program like on the Windows OS builds.




Screenshots for Linux Debian 64bit:
1.png
2.png
3.png
4.png
5.png



Screenshots for Windows 11 Home 64bit:
1.png
2.png
1.png
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 45794
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Assoc. Program Arguments (Does not work on Linux)

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 45794
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Assoc. Program Arguments (Does not work on Linux)

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.8.7. Please check and confirm the bug fix here.
Pierre.