LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-15-2010, 10:52 AM   #1
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

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, 10:56 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 02:17 PM   #4
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 360

Rep: Reputation: 170Reputation: 170
%u is a field code.
http://standards.freedesktop.org/des...t/ar01s06.html
 
Old 07-16-2010, 05:05 AM   #5
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

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, 05:24 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 05: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, 05:43 AM   #8
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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, 08:38 AM   #9
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Original Poster
Rep: Reputation: Disabled
Thanks to everybody.
 
  


Reply

Tags
firefox, mozilla



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

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

All times are GMT -5. The time now is 08:50 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