Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: davec60 on September 14, 2012, 12:40:44 PM

Title: How to set the 'run action' to open files in Rox-Filer with the Editor?
Post by: davec60 on September 14, 2012, 12:40:44 PM
Hi,
When I click on text files in Rox-Filer in order to try and open them I get a message back saying that there is no 'run action' for such files. My text editor is the basic 'Editor' that comes as standard with the Coreplus ISO. I simply need to know what to insert in the 'set run action' dialog box. I have tried entering 'Editor' or 'editor' but this did not 'work' ie. clicking on the text files did not open them in the 'Editor' program. Can anyone please enlighten me on this? Thanks,
Dave
Title: Re: What do I need to do to set the 'run action' to open files with the Editor?
Post by: tinypoodle on September 14, 2012, 01:13:45 PM
try:
editor "$@"

And please modify the subject of first post to include "Rox-Filer", as this is a question pertaining to a specific extension ;)
Title: Re: What do I need to do to set the 'run action' to open files with the Editor?
Post by: ananix on September 14, 2012, 01:27:01 PM
the standard says %u i use that for instance in pcmanfm
Title: Re: What do I need to do to set the 'run action' to open files with the Editor?
Post by: tinypoodle on September 14, 2012, 01:33:58 PM
http://rox.sourceforge.net/Manual/Manual/Manual.html#id2507190
Title: Re: What do I need to do to set the 'run action' to open files with the Editor?
Post by: tinypoodle on September 14, 2012, 01:52:06 PM
the standard says %u i use that for instance in pcmanfm

Such would result in a popup:

Enter a shell command which will load "$@" into a suitable program. Eg:

gimp "$@"
Title: Re: What do I need to do to set the 'run action' to open files with the Editor?
Post by: tinypoodle on September 14, 2012, 04:54:59 PM
the standard says %u i use that for instance in pcmanfm

"$@" is fully conform with current version of POSIX standards:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_05_02
Title: Re: What do I need to do to set the 'run action' to open files with the Editor?
Post by: ananix on September 14, 2012, 05:10:37 PM
I no nothing about rox-filer and just saw it as a file manager trying to associate file types with programs and maybe i should have kept it shut.
I was answering straight to the poster as a suggestion, sorry for not leaving quotes, but it was not meant against your definitive answer from someone who knew, being you :) So its was not meant like "my surgestion is a standard your answer is not..."
Besides that we speak of two different things now one being a shell var and the other being field code for file managers.
Title: Re: What do I need to do to set the 'run action' to open files with the Editor?
Post by: tinypoodle on September 14, 2012, 05:45:40 PM
So its was not meant like "my surgestion is a standard your answer is not..."
Besides that we speak of two different things now one being a shell var and the other being field code for file managers.

Quote
The nice thing about standards is that you have so many to choose from.

Andrew S. Tanenbaum, Computer Networks, 2nd ed., p. 254