LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-15-2010, 11:52 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

Rep: Reputation: Disabled
Question What is "firefox %u"?


Whay do I have a link to start Firefox with "%u"? What is "%u" and where to read about this kind of parameters?
 
Old 07-15-2010, 11:56 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
it's the url you have clicked on
 
Old 07-15-2010, 11:56 AM   #3
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
These usually aren't pertaining to firefox itself but the desktop or window manager you are using. To my knowledge, the %u stands for single URL.
 
Old 07-15-2010, 03:17 PM   #4
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 333

Rep: Reputation: 141Reputation: 141
%u is a field code.
http://standards.freedesktop.org/des...t/ar01s06.html
 
Old 07-16-2010, 06:05 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

Original Poster
Rep: Reputation: Disabled
Thanks but what is "single URL" here in Firefox? Whether I start it with "%u" or not - no difference.
 
Old 07-16-2010, 06:24 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
it's for when you click on something that your DE, e.g. GNOME thinks it should open in a browser.
 
1 members found this post helpful.
Old 07-16-2010, 06:42 AM   #7
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
That "%u" gets replaced by whatever URL (or file path) you clicked on in the command that gets executed. Like acid_kewpie said above, it's for your DE.
 
1 members found this post helpful.
Old 07-16-2010, 06:43 AM   #8
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
As I understand this, it's mainly for desktop managers (KDE, XFCE, GNOME) to interface with your various applications, but not so much for you (the user) to use as if it were a command line:

The idea, I believe, is for when you are (let's say for example) reading a PDF file with some PDF reader, and the PDF contains a URL (a web address) and you want to open the URL in your browser. Your DM knows what browser you like and how to start it up, while the PDF reader itself does not necessarily know how to start a browser, nor what browser you like, nor necessarily what to with a URL at all. So, it passes the request (the URL) to the desktop manager.

In the case of %u (a single URL) you have your desktop manager configured such that when a URL is clicked from whatever application (PDF reader passes a URL to the DM) your DM knows that when it gets a URL from an application, it should execute "firefox %u", which results in the DM expanding the %u with the single argument it's given (the URL) to create a command-line like `exec firefox www.blah.com`, and fire up the browser to open that URL.

So, further example, what about %U (a capital U)? This indicates a list of URL's; so if the PDF reader (or whatever application) sends a list of URLs to the desktop manager to deal with, the desktop manager knows (because you have it configured) it should exec the command "firefox %U", and so expands the %U into "www.blah.com www.goop.com www.urgleburgle.com", resulting in an exec-command-line like "exec firefox www.blah.com www.goop.com www.urgleburgle.com" and your firefox fires up with 3 tabs (or 3 windows) each with one of the URLs.

As implied above (and indicated by the other posters), this isn't useful for you to start firefox yourself from a commandline with a % code, because you know you would simply need to type "firefox www.blah.com www.bloop.com www.blargh.com" to achieve the desired result.
 
1 members found this post helpful.
Old 07-16-2010, 09:38 AM   #9
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: Arch + X.org + IceWM
Posts: 1,208

Original Poster
Rep: Reputation: Disabled
Thanks to everybody.
 
  


Reply

Tags
firefox, mozilla


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 08:11 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 09:31 AM
Can't exec "firefox 1.5", "prompts glibc detected" SPo2 Linux - General 1 06-05-2006 12:02 AM
Firefox freezes at "Save", "Download" kjmorris Linux - Software 4 10-27-2004 03:44 PM


All times are GMT -5. The time now is 12:52 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration