Re: [opensuse] article about Midnight Commander
Carlos E. R. wrote:
El 2006-12-13 a las 16:14 +0200, Hylton Conacher(ZR1HPC) escribió:
Had a look in the file and found the StarOffice line. Commented out what was there and inserted the above. Viola, now when I Enter or double click on a selected file it opens up in OOo, provided of course I am using an xterm in KDE.
Tnx Carlos. PS: If I were to open mc in a terminal(Ctrl-Alt-Fx) after signing into KDE, how could I still get the file to open in the appropiate viewer under KDE ie on the graphical terminal?
That's not easy, you have to inform the program what X terminal to use - in Linux there can be many, so that's not simple to automate.
As with most of Linux it aint easy, but it can be done :) HOW Can I open documents in the graphical interface ie (Ctrl-Alt-F7) from using the cli? True Linuxers use the cli and find it OK, right? So why is it so difficult to explain how to open a file in the designated viewer? Wouild it not be something like $> /document/dir/docname :0 to open the document in Ctrl-Alt-F7? If the document was to be opened in Ctrl-Alt-F8 then wouldn't it be $> /document/dir/docname :1 ? I have not tried any of this as I have reached the limits of my knowledge/experience and need input. -- ======================================================================== Using SuSE 9.2 Professional with KDE and Mozilla Mail 1.7.13 Linux user # 229959 at http://counter.li.org ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 15 December 2006 13:24, Hylton Conacher(ZR1HPC) wrote:
As with most of Linux it aint easy, but it can be done :)
HOW Can I open documents in the graphical interface ie (Ctrl-Alt-F7) from using the cli? True Linuxers use the cli and find it OK, right? So why is it so difficult to explain how to open a file in the designated viewer?
Wouild it not be something like $> /document/dir/docname :0 to open the document in Ctrl-Alt-F7?
There are 2 steps involved: discover the appropriate viewer for the document, and open it in the right place. 1) "kfmclient exec /document/dir/docname" starts the appropriate KDE application for docname's mime type. This follows the settings for that mimetype in the KDE file associations config module. 2) we set DISPLAY to tell the program to use a given X display. Result: "DISPLAY=:0 kfmclient exec /document/dir/docname" should do the same thing as if you had clicked it in KDE for pretty much any file. You can always alias this if it seems like too much typing.
If the document was to be opened in Ctrl-Alt-F8 then wouldn't it be $> /document/dir/docname :1 ?
Right, substitute :1 for :0 above. If you are frequently running X on a different you could do some scripting trickery using the output of who to determine which display to use. HTH Will -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 15 December 2006 14:59, Will Stephenson wrote:
On Friday 15 December 2006 13:24, Hylton Conacher(ZR1HPC) wrote:
As with most of Linux it aint easy, but it can be done :)
HOW Can I open documents in the graphical interface ie (Ctrl-Alt-F7) from using the cli? True Linuxers use the cli and find it OK, right? So why is it so difficult to explain how to open a file in the designated viewer?
Wouild it not be something like $> /document/dir/docname :0 to open the document in Ctrl-Alt-F7?
There are 2 steps involved: discover the appropriate viewer for the document, and open it in the right place.
1) "kfmclient exec /document/dir/docname" starts the appropriate KDE application for docname's mime type. This follows the settings for that mimetype in the KDE file associations config module.
2) we set DISPLAY to tell the program to use a given X display.
Result: "DISPLAY=:0 kfmclient exec /document/dir/docname" should do the same thing as if you had clicked it in KDE for pretty much any file. You can always alias this if it seems like too much typing.
If the document was to be opened in Ctrl-Alt-F8 then wouldn't it be $> /document/dir/docname :1 ?
Right, substitute :1 for :0 above. If you are frequently running X on a different you could do some scripting trickery using the output of who to determine which display to use.
Yes, or the easy way: open a Konsole window, and run mc from there. For root, do <Alt>+<F2>, enter "kdesu konsole". Cheers, Leen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 12/15/06, Leendert Meyer
Yes, or the easy way: open a Konsole window, and run mc from there. For root, do <Alt>+<F2>, enter "kdesu konsole".
Cheers,
Leen
Or even easier: open Konsole. In the "Session" menu there are entris for new mc, root mc, etc. -- Svetoslav Milenov (Sunny) Even the most advanced equipment in the hands of the ignorant is just a pile of scrap. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Friday 15 December 2006 19:08, Sunny wrote:
On 12/15/06, Leendert Meyer
wrote: Yes, or the easy way: open a Konsole window, and run mc from there. For root, do <Alt>+<F2>, enter "kdesu konsole".
Or even easier: open Konsole. In the "Session" menu there are entris for new mc, root mc, etc.
Yes, I realized that. ;-) But starting e.g. kwrite from a root shell is not possible without extra measures... <checking> Hello! It *is* possible! :-O Ok, didn't know that. This must have been changed. That's a nice surprise! :-) Cheers, Leen -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Hylton Conacher(ZR1HPC) wrote:
Carlos E. R. wrote:
El 2006-12-13 a las 16:14 +0200, Hylton Conacher(ZR1HPC) escribió:
Had a look in the file and found the StarOffice line. Commented out what was there and inserted the above. Viola, now when I Enter or double click on a selected file it opens up in OOo, provided of course I am using an xterm in KDE.
Tnx Carlos. PS: If I were to open mc in a terminal(Ctrl-Alt-Fx) after signing into KDE, how could I still get the file to open in the appropiate viewer under KDE ie on the graphical terminal?
That's not easy, you have to inform the program what X terminal to use - in Linux there can be many, so that's not simple to automate.
As with most of Linux it aint easy, but it can be done :)
HOW Can I open documents in the graphical interface ie (Ctrl-Alt-F7) from using the cli? True Linuxers use the cli and find it OK, right? So why is it so difficult to explain how to open a file in the designated viewer?
Wouild it not be something like $> /document/dir/docname :0 to open the document in Ctrl-Alt-F7?
If the document was to be opened in Ctrl-Alt-F8 then wouldn't it be $> /document/dir/docname :1 ?
I have not tried any of this as I have reached the limits of my knowledge/experience and need input. Tnx Will, Leendert et al,
For the moment, the replies answer the question I raised. Tnx -- ======================================================================== Using SuSE 9.2 Professional with KDE and Mozilla Mail 1.7.13 Linux user # 229959 at http://counter.li.org ======================================================================== -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Hylton Conacher(ZR1HPC)
-
Leendert Meyer
-
Sunny
-
Will Stephenson