You could try this perl script until that Gnome bug is fixed:
#!/usr/bin/perl
while (<>)
{
if (/Exec=(.*)/)
{
exit (system $1) >> 8;
}
}
and pass the name of the desktop file on the command line.
The script looks for the text behind "Exec=" and executes it.
Klaus
ray wrote:
Hi,
How to launch an application from a launcher file such as abc.desktop
in the command line?
Thanks.
------------------------------------------------------------------------
RE: setting unix command through perl script ...setting unix command through perl script... it changes the environment of the shell you ... If I run this command on bash prompt then it is executing properly but ... (perl.beginners)
RE: setting unix command through perl script ... I have run the command like this.... ... setting unix command through perl script...shell you spawn with qx; but after this statement your shell ... To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx ... (perl.beginners)
RE: setting unix command through perl script ...setting unix command through perl script... Agreed that the parent process in which perl was invoked will not ... To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx ... (perl.beginners)
Re: CGI script: release browser after spawning new process ... > filled form and pass them along as command line parameters to another ... > perl script that should run the computation in the background. ... You have to close STDOUT and STDERR, ... You need a fork to protect from this. ... (comp.lang.perl.misc)
Re: Update message on web page while processing ... One of the simplest solutions for this is to have the web application ... The command line application, in this situation, could write a simple ... some years ago for live reports that took 10 minutes or so to complete. ... The web application fired off a PERL script that did the processing, ... (microsoft.public.dotnet.framework.aspnet)