parsing Exec entries

Brian J. Tarricone bjt23 at
Tue May 18 21:34:42 CEST 2004

On Tue, 18 May 2004, Eduard Roccatello wrote:

> I'am experiencing some trouble in parsing Exec entries from .desktop files.
> What is the best way to proceed? How do you process this in xfdesktop 
> Brian? I hadn't had time to take a look and i'll be so happy if you 
> explain me how :)  For now i'm using % like a separator and using the 
> first token (but it is not the best way to process a Exec field).

i really don't have a great solution to this.  some apps do use/need 
cmdline arguments, so chopping them off isn't really a good idea.  all 
i'm doing is checking to see if there's a '%' in the arglist, and, if 
so, drop them all and just use the command.  it seems to work ok so far.


More information about the Xfce4-dev mailing list