Solved Can't change ROX run action to XNview

Booting, installing, newbie
Post Reply
Message
Author
User avatar
1ColdBeer
Posts: 36
Joined: Sun 02 Oct 2005, 14:39

Solved Can't change ROX run action to XNview

#1 Post by 1ColdBeer »

Hi,
I'm trying to change the rox run action so images open in XNview. XNview works great standalone. Tried right click > run action and changed to xnview. Now when i click BlaBla.jpg XNview opens but the image variable is lost in the shuffle.

Now the run action line only shows the variable with no program name. I tried to change it back to mpaint with no luck.

Lots of reading, poking, proding, clicking and scrolling has not fixed it. Any ideas sure would be great.

Thanks,
1ColdBeer
Last edited by 1ColdBeer on Wed 05 Oct 2005, 12:31, edited 2 times in total.

Guest

#2 Post by Guest »

Did you try /usr/local/share/Choices/MIME-info

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#3 Post by GuestToo »

you should be able to right click any jpg, click Set Run Action, and either type in mtpaint so it looks like mtpaint "$1", or find mtpaint in /usr (you can type rox -s `which mtpaint` and drag it to the Set Run Action window

i usually set the rox Run Action for jpgs, gifs, and pngs to xli, because usually i just want to look at the picture ... if i want to open it with mtpaint, i usually use Send To

Jesse
Posts: 466
Joined: Sun 08 May 2005, 16:07
Location: Auckland, NZ

#4 Post by Jesse »

Hi,

if you would like a real solution, to let you do what you want, try this one:

http://www.goosee.com/puppy/wikka/RoxFileSelector

Jesse

User avatar
1ColdBeer
Posts: 36
Joined: Sun 02 Oct 2005, 14:39

#5 Post by 1ColdBeer »

Hi,
I tried XnView from the command line and found the path was broke. I tracked that down and found that /root/my-roxapps/XnView/bin/xnview "$1" in the Set run action > Enter a shell command box fixes my problem.

How do i append or link the path in Puppy?

Thanks

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

# echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin:/root/my-applications/bin
#

So create a symlink in one of the folders, that is in the PATH:

# ln -s /root/my-roxapps/XnView/bin/xnview /root/my-applications/bin/xnview

Now you have a new entry /root/my-applications/bin/xnview that is in the PATH.
It does not waste space, as it is just a link, not a copy.

Mark

User avatar
1ColdBeer
Posts: 36
Joined: Sun 02 Oct 2005, 14:39

#7 Post by 1ColdBeer »

Hi,
MU wrote: So create a symlink in one of the folders, that is in the PATH:
# ln -s /root/my-roxapps/XnView/bin/xnview /root/my-applications/bin/xnview
I gave symlink a try and it was a no go too. It does what i want now with the full path in the box so I'll run with that and be happy.

Thanks to all for thhe help,
1ColdBeer

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

Oh, I see...

just installed it.

there is already a symlink /usr/bin/xnview, but it has a path-error.

Replace it with this shellscript:

Code: Select all

#!/bin/sh
/root/my-roxapps/XnView/bin/xnview $1
Don't forget to make it executable:
chmod 755 /usr/bin/xnview

And delete the symlink from my first answer.

Greets, Mark

User avatar
1ColdBeer
Posts: 36
Joined: Sun 02 Oct 2005, 14:39

#9 Post by 1ColdBeer »

Hi,
That did it.

Thanks again!

:D :D :D

Post Reply