Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian 4.0, Ubuntu 6.10, Ubuntu Server 6.06
Posts: 134
Rep:
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?
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.
Distribution: Debian 4.0, Ubuntu 6.10, Ubuntu Server 6.06
Posts: 134
Original Poster
Rep:
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 %.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.