Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 30-Mar-2007, 14:41
harryc
Guest
 
Posts: n/a
Default

Quote:
Answers for this appear hard to come by, I searched around a bit and found the following that explain bits and pieces.

Maybe it will help give more detail on what to search for anyway. <_<

UbuntuForums
KDE-Forum

Good Luck,
Greg
[/b]
Good stuff. So far we've learned that the %u is there so you can drag & drop a file onto the Firefox icon and have it open in Firefox. I never knew that capability existed ...
  #12 (permalink)  
Old 30-Mar-2007, 14:46
Darkelve
Guest
 
Posts: n/a
Default

You can test it by creating an empty .html file (in KDE: right-click, create new->html file) and maybe fill it up with a bit of code if you want. Then drag the file from the desktop to the Firefox icon. Yup, it opens.

Edit: if I remove the %u code, it still works. But if I press Alt+F2 and type firefox+URL then it does NOT work any longer.

Edit2: so I put the %u back, and the KDE launcher works again... seems now we know what it's for


Quote:
Good stuff. So far we've learned that the %u is there so you can drag & drop a file onto the Firefox icon and have it open in Firefox. I never knew that capability existed ... [/b]
  #13 (permalink)  
Old 08-Apr-2007, 18:21
tCarls
Guest
 
Posts: n/a
Default

Take a look at this: Desktop Entry Specification. Look at the "The Exec key" section.

Quote:
A number of special field codes have been defined which will be expanded by the file manager or program launcher when encountered in the command line. Field codes consist of the percentage character ("%") followed by an alpha character.
[/b]
Then it shows a table. %s isn't listed so maybe this isn't what you were looking for.

%f - single file name
%F - list of file names
%u - single URL
%U - list of URLs
%i - icon key
%c - translate name of the application
%k - location of desktop file
 
Page 2 of 2 1 2

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2