LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-28-2006, 07:47 PM   #1
BaltikaTroika
Member
 
Registered: Sep 2004
Distribution: Debian 4.0, Ubuntu 6.10, Ubuntu Server 6.06
Posts: 134

Rep: Reputation: 15
What's the %u in firefox %u?


I'm sure that this question has been asked a few times before, but it's quite hard to find the answer.

What's the %u stand for in the command "firefox %u"? This is the command that is displayed by default with my firefox installation.

I did manage to find one post about this, but the reply was "I forget what it's for, but I do know that it's something useful."

Any takers?

And a second part to this question... I recently found out about Swiftfox and installed it. Since it's an optimized version of Firefox, would it help to add this mysterious %u to it as well?
 
Old 11-28-2006, 08:09 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You're using KDE aren't you? If so, the %u will be a URL parameter. There's some info about the Exec option in .desktop files at http://docs.kde.org/development/en/k...izing-kde.html which should apply to KDE menus as well.
 
Old 11-28-2006, 08:14 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
I think it's the URL being passed by the application calling firefox.

If you're interested in the firefox command options, enter firefox -h from a terminal window for a list of them, and the command syntax.
 
Old 11-28-2006, 09:32 PM   #4
BaltikaTroika
Member
 
Registered: Sep 2004
Distribution: Debian 4.0, Ubuntu 6.10, Ubuntu Server 6.06
Posts: 134

Original Poster
Rep: Reputation: 15
I'm actually using gnome under Ubuntu. It still had the %u there (by "there", I mean in the Applications menu) by default.

Basically, what I sometimes do to see where programs are located, or which command is used to run them, is drag icons from the menu onto the desktop. That way, I can right click it, open up its properties and take a bit of a look around before deleting the icon. That's when I noticed the %u. It is a stock Ubuntu 6.10 install, though, so maybe this kind of thing is useful not only to kde, but to gnome, as well?

I had already tried "firefox -h", but didn't find anything relating to the %.
 
Old 11-28-2006, 10:16 PM   #5
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
yea everyone is right
its a matter of kde and gnome using standards i think set for linux desktop. (freedesktop.org ?)
%u is a url i thinf %F is a file.
it has to do with the drag and drop capabilities of the .desktop files.
just like you said you can drag the menu launchers onto the desktop.
and then you can drag documents onto the launcher. this is where the %u comes in to play.
if you dragged a whole folder of files onto the launcher it created lots of different instances of the app. If you write something with tabs and want all the different files in the tabs instead of different instances you use %U instead of %u i think.
the convention has to be written down somewhere for everything you cn do with those .desktop files.
it makes it so developers can make apps with common behavior that integrate into the desktop easy.
 
Old 11-29-2006, 07:51 AM   #6
BaltikaTroika
Member
 
Registered: Sep 2004
Distribution: Debian 4.0, Ubuntu 6.10, Ubuntu Server 6.06
Posts: 134

Original Poster
Rep: Reputation: 15
Ahhh, now everything makes sense. Thank you for the detailed explanation!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Firefox Slower than Windows Firefox on same machine gherikill Linux - Software 17 02-21-2008 12:06 AM
Install regular firefox instead of ubuntu firefox? sureshot324 Linux - Software 10 05-03-2006 02:45 AM
firefox does not stream video after firefox automatic upgrade? kazuya1977 VectorLinux 1 02-12-2006 01:48 PM
Firefox linux & FireFox windows observation shotokan General 66 12-16-2005 07:17 AM
Firefox died (Fedora Core 1, firefox latest) Brakki Fedora 1 03-05-2004 11:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration