Re: desktop file exec working firectory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dj YB wrote:

> Hello,
> I am creating a desktop file for a service menu, and can't find out how to
> use the directory from which the action was launched.
> 
> this is how it looks:
> 
> Exec=convert %F `kdialog --title "save PDF" --getsavefilename join.pdf`;
> 
> this is how I want it to look:
> 
> Exec=convert %F `kdialog --title "save PDF" --getsavefilename
> $PWD/join.pdf`;
> 
> that doesn't work.

According to
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

looks like you might want %f here, and I'd bet it's a full path, so perhaps 
substituting `dirname %f` for $PWD may give you want you want.

-- Rex

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux