On 13/04/10 12:45, Viktor Szakáts wrote:
I don't know, but if someone gives me some hints,
it's very easy to implement in hbmk2. It already
works for win, darwin and os2.
For *nix it's AFAIK desktop dependent, and we should
also have a default version which is plain terminal
based.
Here is my code to do that, but I'd highly appreciate
if *nix experts would comment on it, before I add it
to Harbour:
---
IF ! Empty( GetEnv( "GNOME_DESKTOP_SESSION_ID" ) )
nResult := hb_run( "gnome-open " + cFileName )
ELSEIF ! Empty( GetEnv( "KDEDIR" ) )
nResult := hb_run( "kfmclient exec " + cFileName )
ELSE
nResult := hb_run( cFileName )
ENDIF
---
Brgds,
Viktor
I can run KDE, Gnome, LXDE or ICEWM here - so am happy to do some testing.
In KDE I have no KDEDIR envar by default, so it may be distro specific.
( I run Mandriva 2010.0 )
This will launch a new konsole (in KDE) and run my ash application :-
proc main
hb_run( "konsole --workdir /home/baz/hash -e /home/baz/hash/ash" )
return
I can close the calling konsole without affecting it and the new konsole
closes when the (non-GUI) application closes.
I will look at Gnome later.
Rgds,
Barry
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour