Page 1 of 1

1.8.8: Extra blank parameter added to command line of programs launched using Open with menu

Posted: Sun Apr 20, 2025 11:40 am
by juozas
Subject: 1.8.8: Extra blank parameter added to command line of programs launched using Open with menu

XnView: MP 1.8.8 - 64 bit
OS: Ubuntu Linux 22.04 LTS (64bit)

Launching a program using an open with menu ads an extra parameter in it's command line, triggering an error in some programs. Extra command line parameter is shown when inspecting the Linux proc filesystem for affected external program.

Code: Select all

$ xargs -0 -I{} echo \"{}\" < /proc/$(pidof gimp)/cmdline
"/usr/bin/gimp"
"/home/juozas/Paveikslai/image.jpg"
""
screenshot of configure programs dialog, first command liested above is used in example
screenshot of configure programs dialog, first command liested above is used in example
Ekrano kopija_2025-04-20_14-34-06.png (37.52 KiB) Viewed 280 times
screenshot of an external program
screenshot of an external program
Ekrano kopija_2025-04-20_14-31-16.png (1.25 MiB) Viewed 280 times
Effect: External program displays an error :bug:

To reproduce:
  1. Add an external command using File->Open with->Configure programs menu
  2. Open an image in viewer or have it selected in browser
  3. Use the File->Open with->[program name] menu
Actual behaviour (bug): External program showing an error (e.g. gimp showing error that *current path* is not a regular file) :bug:

Expected behaviour: No extra unneded parameter for external programs, external program does not show an error

Re: 1.8.8: Extra blank parameter added to command line of programs launched using Open with menu

Posted: Fri Apr 25, 2025 9:36 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

Re: 1.8.8: Extra blank parameter added to command line of programs launched using Open with menu

Posted: Mon May 26, 2025 6:24 am
by xnview
This problem is supposed to be fixed in XnView MP 1.9.0. Please check and confirm the bug fix here.

Re: 1.8.8: Extra blank parameter added to command line of programs launched using Open with menu

Posted: Fri May 30, 2025 2:16 am
by juozas
I confirm that it's fixed (Tested in 1.9.1, probably fixed in 1.9.0 too)