>> Brgds,
>> Viktor
> 
> If I run from command line :-
> 
> [...@jackodesktop hash]$ hbmk2 ash.hbp -run
> 
> then ash is built and runs, but it is in a terminal window labelled 
> "hash:hbmk2"
> 
> If I kill the hbmk2 process then the running ash process drops to a prompt, 
> with ./ash still taking 25% cpu and showtime() still running, displaying the 
> time (as it does in ash).
> 
> It's the same with:
> [...@jackodesktop hash]$ hbmk2 ash.hbp -hbrun
> 
> The launched process still depends on hbmk2.
> Is there a way to launch a new terminal window and run the process in that, 
> so the launched app is truly independant ?

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

_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to