how to open a file with the assosiate program on suse?

i came to know that we can open a file with assosiated program on windows using "cmd /c start filename".

and i want the same functionality on suse linux.

in forums i found that "kfm filename" will do fine on linux.

i tried it on suse but no use at all.

i would appretiate the quick response and i would be very thankful

for the same.

Thanks alot in advance.

[400 byte] By [rajeshka] at [2007-11-27 4:05:26]
# 1
try vi fileName
java_2006a at 2007-7-12 9:10:25 > top of Java-index,Desktop,Runtime Environment...
# 2
it is fine with the text files but for image files it doesnt work.
rajeshka at 2007-7-12 9:10:25 > top of Java-index,Desktop,Runtime Environment...
# 3
take a look at java.awt.Desktop in the JDK SE 6 http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html.See these two methods:- void edit(File file) - void open(File file)
java_2006a at 2007-7-12 9:10:25 > top of Java-index,Desktop,Runtime Environment...
# 4
thats great!! thats exactly what i was looking for. an infinite thanks.
rajeshka at 2007-7-12 9:10:25 > top of Java-index,Desktop,Runtime Environment...
# 5
you are welcome, so are your dukes :o)
java_2006a at 2007-7-12 9:10:25 > top of Java-index,Desktop,Runtime Environment...