SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2009-02-20 23:14:39

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Firefox beta shortcut and launch command & .desktop file? [Resolved]

I just installed firefox-3.2a1pre.en-US.linux-i686 by extracting firefox-3.2a1pre.en-US.linux-i686.tar.bz2 to my ~/home/username

I want to do a couple of things:

A) add Firefox to the Openbox GUI menu
B) add Firefox to the Application Launch bar
C) Set Firefox as default browser

Since Firefox is not showing up in Xfc34 Appfinder (this is coupled to my question on how to add an unlisted app to Appfinder, which I still can't figure out how to do) I don't know what it's command is, so I can't add it to the GUI menu. There is no .desktop file in the usual location, so I don't know how to add it to the Application Launch bar. Thanks.

Last edited by nabilalk (2009-02-21 00:59:37)


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

Be excellent to each other!

#2 2009-02-21 00:00:36

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,905

Re: Firefox beta shortcut and launch command & .desktop file? [Resolved]

Look inside the folder where you extracted Firefox and look for an executable. Maybe something like "firefox-bin" then the command would just be:

/home/username/firefoxfolder/firefox-bin

For creating your own .desktop files, look here: http://standards.freedesktop.org/deskto … ec/latest/

Once you run Firefox, you can just go to Edit > Preferences > Advanced > and under System Defaults, click the "Check Now" button.

BTW why are you using a testing/beta build?


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#3 2009-02-21 00:23:05

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: Firefox beta shortcut and launch command & .desktop file? [Resolved]

anonymous wrote:

Look inside the folder where you extracted Firefox and look for an executable. Maybe something like "firefox-bin" then the command would just be:

/home/username/firefoxfolder/firefox-bin

For creating your own .desktop files, look here: http://standards.freedesktop.org/deskto … ec/latest/

Once you run Firefox, you can just go to Edit > Preferences > Advanced > and under System Defaults, click the "Check Now" button.

BTW why are you using a testing/beta build?

I want to use the latest build. I was going to go with 3.1b2, but I figured that I would just use the latest one.

After posting I did some research and found some answers. Prior to your post I moved firefox folder to the opt folder and figured out via various wiki's that I could launch firefox via /opt/firefox/firefox.

That takes care of A (getting Firefox to launch off the GUI menu).I then found how to make a desktop file via the xfce4-appfinder wiki, but it isn't working.

 [Desktop Entry]
  Encoding=UTF-8
  Name=Firefox
  Comment=Run Firefox
  Exec=/opt/firefox/firefox
  Icon=/opt/firefox/firefox.png
  Type=Application

I saved it as a .desktop
Was I supposed to do something else? If I double click on the file in Thunar, Firefox launches. However if I add the .desktop file to the application bar, the icon png doesn't show up )a red x is there) and Firefox doesn't launch.

I still don't know how to add Firefox to appfinder though. Any thoughts on that?

Update: I inspected the Epiphany .desktop file and copied the format. I think the problem might have been that the application launcher didn't like the location of the firefox.png file that I wanted to use for the .desktop icon. I I changed the icon from the firefox icon to the gnome-web-browser icon.

Completed .desktop file below if anyone else needs it.

[Desktop Entry]
Encoding=UTF-8
Name=Firefox
Comment=Run Firefox
Exec=/opt/firefox/firefox
TryExec=/opt/firefox/firefox
StartupNotify=true
Terminal=false
Type=Application
Icon=gnome-web-browser

Why can't I use any png 128x128 that I want as an icon? Is 128x128 too big or is there some other issue?

Update 2: I figured out what was the problem with the png file that was being used for the firefox icon. I had to place the icon file firefox1.png in the usr/share/pixmaps folder and link the Icon value to: /usr/share/pixmaps/firefox1.png
I then added the .desktop to the application bar and it worked ;-)

Now the only thing left to do is figure out had to add a firefox entry to appfinder.

Update final: I added Category=Application;Network to the .desktop file and now it shows up in xfce4-Appfinder. Hopefully some other noob will be able to follow these steps to add apps to the appfinder, create .desktop files for use in the appbar and add entries to the Openbox GUI Menu.

Finally...resolved ;-)

Completed .desktop file:

[Desktop Entry]
Encoding=UTF-8
Name=Firefox
Comment=Run Firefox
Exec=/opt/firefox/firefox
TryExec=/opt/firefox/firefox
StartupNotify=true
Terminal=false
Type=Application
Icon=/usr/share/pixmaps/firefox.png
GenericName=Web Browser
Categories=Application;Network

Last edited by nabilalk (2009-02-21 00:59:22)


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

#4 2009-02-21 00:51:49

anonymous
The Mystery Member
From: Arch Linux Forums
Registered: 2008-11-29
Posts: 8,905

Re: Firefox beta shortcut and launch command & .desktop file? [Resolved]

Move the .desktop file into /usr/share/applications and then see if appfinder sees it.


Note: ** Please read before posting **

BTW if you wish to contact me, send me an e-mail instead of a PM.

Offline

#5 2009-02-21 03:27:57

nabilalk
#! Die Hard
From: U.S.A.
Registered: 2009-01-28
Posts: 531

Re: Firefox beta shortcut and launch command & .desktop file? [Resolved]

anonymous wrote:

Move the .desktop file into /usr/share/applications and then see if appfinder sees it.

Way ahead of you on that one anonymous. See my last post. thanks.


#! 10 “Statler” r20110207 32-bit & Openbox

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo