[Solved] Open with default text editor
Posted
#1
(In Topic #388)
Regular

In my app, I wish to open a text file with the default text editor of the system. Please, how to do ? I know with bash, but is there a native Gambas command ?
Code
xdg-open myfile.txt
Linux & Android enthusiast - France
Posted
Regular

Philippe734 said
In my app, I wish to open a text file…
As an alternative, take a look at "TextEditor" in the component: gb.form.editor
Posted
Regular

Posted
Regular

or by using "DesktopFile" Class of "gb.desktop" Component:
Aprire un file mediante la Classe 'DesktopFile' con il programma al quale è associato - Gambas-it.org - Wikipedia
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Expert

Either method works:
Code (gambas)
Command line applications for the various formats of Libre Office.
LibreOffice is shortened to lo with the addition of the various document type.
<LIST>
- <LI>lobase</LI>
<LIST>
- <LI>localc</LI>
<LIST>
- <LI>lodraw</LI>
<LIST>
- <LI>lofromtemplate</LI>
<LIST>
- <LI>loimpress</LI>
<LIST>
- <LI>lomath</LI>
<LIST>
- <LI>loweb</LI>
<LIST>
- <LI>lowriter</LI>
Code (gambas)
Full command line list can be found here.
Cheers - Quin.
I code therefore I am
I code therefore I am
1 guest and 0 members have just viewed this.


