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: 4569
Joined: 2008 Sep 30, 06:52
Location: Dublin

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

Post by Kilmatead » 2009 Aug 16, 13:32

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: 14372
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos » 2009 Aug 16, 17:42

there seems to be an error in binary logic somewhere twisting the fabric of cyberspace...

Kilmatead
Platinum Member
Platinum Member
Posts: 4569
Joined: 2008 Sep 30, 06:52
Location: Dublin

Post by Kilmatead » 2009 Aug 16, 17:59

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: 14372
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Post by nikos » 2009 Aug 17, 08:57

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