Author |
Message |
1ColdBeer

Joined: 02 Oct 2005 Posts: 36
|
Posted: Sun 02 Oct 2005, 11:37 Post subject:
Solved Can't change ROX run action to XNview |
|
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, 08:31; edited 2 times in total
|
Back to top
|
|
 |
Guest
Guest
|
Posted: Sun 02 Oct 2005, 15:56 Post subject:
|
|
Did you try /usr/local/share/Choices/MIME-info
|
Back to top
|
|
 |
GuestToo
Puppy Master
Joined: 04 May 2005 Posts: 4078
|
Posted: Sun 02 Oct 2005, 16:17 Post subject:
|
|
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
|
Back to top
|
|
 |
Jesse
Joined: 08 May 2005 Posts: 465 Location: Auckland, NZ
|
Posted: Sun 02 Oct 2005, 20:26 Post subject:
|
|
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
|
Back to top
|
|
 |
1ColdBeer

Joined: 02 Oct 2005 Posts: 36
|
Posted: Mon 03 Oct 2005, 22:02 Post subject:
|
|
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
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Mon 03 Oct 2005, 22:18 Post subject:
|
|
# 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
|
Back to top
|
|
 |
1ColdBeer

Joined: 02 Oct 2005 Posts: 36
|
Posted: Mon 03 Oct 2005, 23:21 Post subject:
|
|
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
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Mon 03 Oct 2005, 23:44 Post subject:
|
|
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: | #!/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
|
Back to top
|
|
 |
1ColdBeer

Joined: 02 Oct 2005 Posts: 36
|
Posted: Tue 04 Oct 2005, 00:07 Post subject:
|
|
Hi,
That did it.
Thanks again!
|
Back to top
|
|
 |
|