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

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
User avatar
juozas
Posts: 37
Joined: Sun Sep 27, 2009 11:42 am
Location: Lithuania
Contact:

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

Post 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 283 times
screenshot of an external program
screenshot of an external program
Ekrano kopija_2025-04-20_14-31-16.png (1.25 MiB) Viewed 283 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
Сделано в СССР
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

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

Post by xnview »

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

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

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.9.0. Please check and confirm the bug fix here.
Pierre.
User avatar
juozas
Posts: 37
Joined: Sun Sep 27, 2009 11:42 am
Location: Lithuania
Contact:

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

Post by juozas »

I confirm that it's fixed (Tested in 1.9.1, probably fixed in 1.9.0 too)
Сделано в СССР
Post Reply