The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Debian
.
google unix.com



Debian Debian GNU/Linux is a free distribution of the GNU/Linux operating system.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
running localhost:8080 on firefox gives error . madhumathikv Shell Programming and Scripting 2 08-08-2009 12:51 AM
error running sqlplus from shell file mmunir Shell Programming and Scripting 3 02-06-2009 04:52 AM
Firefox 3.03 posting a newthread.php error metallica1973 Post Here to Contact Site Administrators and Moderators 11 11-12-2008 03:54 AM
Error while running C++ make file hram High Level Programming 1 10-18-2007 06:28 PM
Running Applications on my desktop?..... adamcb OS X (Apple) 8 02-01-2004 05:28 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-10-2009
JonesD1 JonesD1 is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 8
Talking error running firefox.desktop file

Hi,

I installed the FF3 on my new Debian, and part of the installation guidance is to save a file named firefox.desktop on the desktop, which should act like a shortcut to the FF. The file content is:
[Desktop Entry]
Name=Mozilla Firefox Browser
Comment=lightweight browser based on mozilla
Exec=firefox
Icon=firefox.png
Terminal=0
Type=Application
Encoding=UTF-8
Categories=Application;Network;X-Red-Hat-Base;X-Red-Hat-Base-Only;
I have done all of this.

My questions are:
1) what kind of file is this? is it a script?
2) do I have to change the file mode attributes before running it?
  #2 (permalink)  
Old 08-10-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 71
is this a personal or system wide installation?

if this is a system wide install, did you create a symlink to your firefox installation?
create one with the following command:
Code:
ln -s /opt/firefox/firefox /usr/local/bin/firefox
/opt/firefox/ is a default choice of directory to install firefox into for system wide installations, if you chose another directory amend that part accordingly.

if you did a personal install, the directory should be something like /home/userid/*/firefox/ which you need to include into the Exec= option.

hope this helps
  #3 (permalink)  
Old 08-10-2009
JonesD1 JonesD1 is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 8
ln -s was done, thank you

and I can run the firefox from any directory via a terminal. This is not an issue.

The issue is to be able to activate firefox with the firefox.terminal file being showed in my original post.

My main object is to learn and understand, so I will much appreciate an answer to my 2 questions in my original post.

Thank you for the answer so far.

Also - I hope I am in the correct sub-forum (which I am not sure I am)
  #4 (permalink)  
Old 08-10-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 71
Quote:
Originally Posted by JonesD1 View Post
and I can run the firefox from any directory via a terminal. This is not an issue.

The issue is to be able to activate firefox with the firefox.terminal file being showed in my original post.
is this about firefox.terminal or firefox.desktop???

Quote:
Originally Posted by JonesD1 View Post
My main object is to learn and understand, so I will much appreciate an answer to my 2 questions in my original post.
1 - a .desktop file is like a windoze shortcut, so not really a script
2 - if this is a system wide install, you may have to change permissions. if this is a personal install, this should not be an issue.

Quote:
Originally Posted by JonesD1 View Post
Also - I hope I am in the correct sub-forum (which I am not sure I am)
if this is an issue in Debian, this is the correct sub-forum

if you want a quick way to create shortcuts, try drag and drop from the main menu to the desktop.

Last edited by Leppie; 08-10-2009 at 12:53 PM..
  #5 (permalink)  
Old 08-10-2009
JonesD1 JonesD1 is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 8
This is a personal/private system

And I mean that the Linux machine is for one user only. hope you meant this.

About the file name, my mistake, sorry, the name is as in the original post "firefox.desktop".

Thank you for the clarification, now I know what is a *.desktop is.

But still when I am double clicking on it, I'm getting a nice small window saying "Do you want to run"Firefox.desktop", or display its contents?"
and asking me to select between:
1) Run in Terminal
2) Display
3) Cancel
4) Run
Non of the above works (only 'cancel' works of course)

The "firefox.desktop" file attributes are: 0775

Does anyone knows what do I miss here?
  #6 (permalink)  
Old 08-10-2009
Leppie's Avatar
Leppie Leppie is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 71
in what directory did you install firefox?

filepermissions are ok for launching the shortcut.
1 = execute, 2 = write, 4 = read, these are summed up.
so 775 means read, write and execute permissions for the owner and the group that the file is owned by and read and execute permissions for others.

have you tried to drag and drop the shortcut from the main menu to your desktop?
this might give you some insight in what info you are missing or is incorrect in your current shortcut.
  #7 (permalink)  
Old 08-10-2009
JonesD1 JonesD1 is offline
Registered User
  
 

Join Date: Aug 2009
Posts: 8
The firefox is installed under /usr/bin/firefox/

The symlink done was:
ln -s /usr/lib/firefox/firefox /usr/bin/firefox

Do you mean to drag and drop any other SW application to learn from it, because the FF is not shown in the menus, which BTW I will be happy to solve as well.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:45 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0