Hi,
attached you will find a patch which trims the parameter list. This
helps if there are only one or more white-spaces behind the command and
nothing else. The old behavior will add a parameter string with only the
white-spaces and prevents therefore adding the default "%F", because the
parameter list is not empty.
Bye,
Thomas
--
Stark, Thomas <[EMAIL PROTECTED]>
--- cvs/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c 2006-12-21 04:36:27.000000000 +0100
+++ build/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c 2007-02-17 01:47:58.000000000 +0100
@@ -257,7 +257,10 @@
{
*exe = '\0';
exe++;
- result->exec_params = strdup(exe);
+ /* trim the parameter string */
+ for(;isspace(*exe) && (exe - result->exec) < PATH_MAX && *exe != '\0'; exe++)
+ if(*exe != '\0')
+ result->exec_params = strdup(exe);
}
}
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel