In Linux, text files are not normally executable. If you can ever click on a text file to run it, that's a special attribute of the file manager program you are using to "present a view" of the file.
Instead of launching the file you want to view, you launch a PROGRAM and pass the file you want to open as an argument.
eg
Dim item As FolderItem
item = GetFolderItem("/path/to/kf
f.launch "exec /path/to/file.txt"
The idea is to run, for example "/opt/kde3/bin/kfmclient exec /path/to/file.txt"
The GNOME equivalent (for Linux systems using the Gnome WM) is
gnome-open, i.e.
Dim item As FolderItem
item = GetFolderItem("/path/to/gn
f.Launch "/path/to/file.txt"
in XFCE it would be exo-open
In Linux, the user could be utilizing a different window manager, and every WM has a different way of accomplishing this.
KDE and Gnome being the common cases.
Main Topics
Browse All Topics





by: pramodpatelPosted on 2009-05-18 at 01:22:59ID: 24409855
Hi,
.text)
Managed to launch folders with the following
dim s as shell
dim g as FolderItem
s = new shell
g=GetFolderItem(EditField1
s.execute( "nautilus /root/bin")
looking to open movie files now...
regards
pramod