Stochastic User Command Token doesn't like Tarantino...

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
Kilmatead
Platinum Member
Platinum Member
Posts: 4578
Joined: 2008 Sep 30, 06:52
Location: Dublin

Stochastic User Command Token doesn't like Tarantino...

Post by Kilmatead »

No doubt I'm missing some logical in-line conditional expression here, but my brain is drawing a blank today.

Using '>"C:\Program Files (x86)\GIMP-2.0\bin\gimp-2.6.exe" $S' works fine 99% of the time, whether multiple files are selected or not, which is fine.

If no files are selected, then the command "seems" to work just like a regular shortcut, and Gimp opens fine with a blank canvas as expected.

However, if no files are selected and the active pane happens to be empty (no files in directory), then it appears x2 passes the argument literally as "$S", resulting in a predictable error:

Image

Why does this only happen when invoked from empty directories, and how might I prevent it?  (Same behaviour in all applications called through similar commands.)

I could understand if $S was just parsed out as empty space, as expected, but literally?  Odd.
User avatar
nikos
Site Admin
Site Admin
Posts: 15794
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

there seems to be an error in binary logic somewhere twisting the fabric of cyberspace...
Kilmatead
Platinum Member
Platinum Member
Posts: 4578
Joined: 2008 Sep 30, 06:52
Location: Dublin

Post by Kilmatead »

So are Bugs like meteors then, where he who discovers it gets to name it?  If so, henceforth (until untimely squashing) it shalt be called Dr. Who's Arsed Parse.

(One must find comfort in the little joys of life, these days. :alien:)

(Or Cognac, whichever is easier.)
User avatar
nikos
Site Admin
Site Admin
Posts: 15794
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos »

So are Bugs like meteors then, where he who discovers it gets to name it
since xplorer2 bugs are rarer than comets and other celestial bodies, you got a valid point there :D
Post Reply