Re: the %U %s %F options

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

 



Steven Shao wrote:
On Sat, 2005-03-12 at 11:33 -0500, Chris Lewis wrote:
  
Steven Shao wrote:

    
When you create a launcher in gnome and set a command to it, you will
see the form that a command %s or %U or %F. 

I don't know what they do. For example, if you set a gedit launcher, you
see   gedit %U. Why should gnome append the %U to the command? Very
Strange! Who can tell me the reason. or Where can I find the reason in
detial?

Thank you.

Steven Shao.

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

 

      
I know that they are used at least in the case of DnD, although I'm not 
sure what each letter represents. I'm quite sure %U is URL, so when you 
drag a file for example onto the launcher, it calls the command and 
passes the file location as a URL to the command.

_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

    
Thank you very much, Chris. You make me step more to the truth. But how
can get information about these things? I cannot search it through
google because google can not accept '%'.


  

I suspected these options were specified by the freedesktop standards, so I took a quick look into them.
First off, http://freedesktop.org/wiki/ is the main fd.o site - have a look as it has lots of documentation on the subject. Here is a direct link to the section in the desktop entry spec the covers what you want:
http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s06.html

hope that helps
-chris
_______________________________________________
gnome-list mailing list
gnome-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gnome-list

[Index of Archives]     [Fedora Desktop]     [Trinity Users]     [KDE]     [Gimp]     [Yosemite News]

  Powered by Linux