LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-11-2006, 11:32 AM   #1
fofire
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Rep: Reputation: 15
Firefox via the Desktop and Start menu icon on Suse 10.1


Im using firefox 1.5.0.3

Firefox wont startup when I click on the icons in the startup menu however if I go to the usr/lib/firefox and click on the firefox-bin I can get it to run . . . I ran the following command line in terminal

firefox %u

and this is what I got:

/usr/bin/firefox: line 35: /usr/bin/basename: Operation not permitted
/usr/bin/firefox: line 46: /usr/bin/file: Operation not permitted
/usr/bin/firefox: line 46: /usr/bin/awk: Operation not permitted
/usr/bin/firefox: line 61: /usr/bin/which: Operation not permitted
/usr/bin/firefox: line 159: /usr/lib/firefox/firefox-bin: Operation not permitted


to see what it is referencing I have copied the code below . . . please note this is not all of the code so I will put the referenced lines in bold and underline

Before getting lost in the code I also wanted to say i think I installed Macromedia Flashplayer 7 right before this problem occurred. . . . Im not sure because this problem occured a long time ago and I havent had much time lately to correct it.



##
## Usage:
##
## $ mozilla
##
## This script is meant to run a mozilla program from the mozilla
## rpm installation.
##
## The script will setup all the environment voodoo needed to make
## mozilla work.

cmdname=`basename $0`

##
## Variables
##
MOZ_DIST_BIN="/usr"
MOZ_DIST_LIB="/usr/lib/firefox"
MOZ_APPNAME="firefox"
MOZ_PROFILE=".mozilla/firefox"
MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME-bin"

mozilla_lib=`file $MOZ_PROGRAM | awk '{ print $3 }'`
case $mozilla_lib in
64-bit)
LIB=lib64
;;
*)
LIB=lib
;;
esac
BROWSER_PLUGIN_DIR=/usr/$LIB/browser-plugins
if [ ! -d $BROWSER_PLUGIN_DIR ]; then
BROWSER_PLUGIN_DIR=/opt/netscape/plugins
fi

# AOSS
AOSS=$(which aoss)

# Force use of GTK+ 2.0 for Flash player to get better performance
# (no impact when using mozilla gtk1 build
#
export FLASH_GTK_LIBRARY=libgtk-x11-2.0.so.0

# ignore composite extension
export XLIB_SKIP_ARGB_VISUALS=1

# Pango support
if [ -z "$MOZ_ENABLE_PANGO" -a -z "$MOZ_DISABLE_PANGO" ]; then
case "${LC_ALL-${LC_CTYPE-${LANG-en_US}}}" in
bn*|gu*|hi*|km*|kn*|ml*|mr*|pa*|ta*|te*) # list of languages which need pango
;;
*)
export MOZ_DISABLE_PANGO=1 # disable by default
;;
esac
fi

##
## Set MOZILLA_FIVE_HOME
##
MOZILLA_FIVE_HOME="$MOZ_DIST_LIB"
export MOZILLA_FIVE_HOME

##
## Set LD_LIBRARY_PATH
##
if [ "$LD_LIBRARY_PATH" ]
then
LD_LIBRARY_PATH=$MOZ_DIST_LIB/plugins:$MOZ_DIST_LIB:$LD_LIBRARY_PATH
else
LD_LIBRARY_PATH=$MOZ_DIST_LIB/plugins:$MOZ_DIST_LIB
fi
export LD_LIBRARY_PATH

## Make sure that we set the plugin path for backwards compatibility
## Set MOZ_PLUGIN_PATH to $HOME/.mozilla/plugins if not set
##
if [ -z "$MOZ_PLUGIN_PATH" ]; then
export MOZ_PLUGIN_PATH=$MOZILLA_FIVE_HOME/plugins:$BROWSER_PLUGIN_DIR
if [ "$HOME" ] ; then
export MOZ_PLUGIN_PATH=$HOME/$MOZ_PROFILE/plugins:$MOZ_PLUGIN_PATH
fi
else
# make sure that BROWSER_PLUGIN_DIR is in MOZ_PLUGIN_PATH
echo "$MOZ_PLUGIN_PATH" | grep "$BROWSER_PLUGIN_DIR" 2>&1 >/dev/null
_retval=$?
if [ ${_retval} -ne 0 ]; then
export MOZ_PLUGIN_PATH=$MOZ_PLUGIN_PATH:$BROWSER_PLUGIN_DIR
fi
fi

moz_pis_startstop_scripts()
{
MOZ_USER_DIR="$MOZ_PROFILE"
# MOZ_PIS_ is the name space for "Mozilla Plugable Init Scripts"
# These variables and there meaning are specified in
# mozilla/xpfe/bootstrap/init.d/README
MOZ_PIS_API=2
MOZ_PIS_MOZBINDIR="$MOZ_DIST_LIB"
MOZ_PIS_SESSION_PID="$$"
MOZ_PIS_USER_DIR="${MOZ_USER_DIR}"
export MOZ_PIS_API MOZ_PIS_MOZBINDIR MOZ_PIS_SESSION_PID MOZ_PIS_USER_DIR

case "${1}" in
"start")
for curr_pis in "$MOZ_DIST_LIB/init.d"/S* "${HOME}/${MOZ_USER_DIR}/init.d"/S* ; do
if [ -x "${curr_pis}" ] ; then
case "${curr_pis}" in
*.sh) . "${curr_pis}" ;;
*) "${curr_pis}" "start" ;;
esac
fi
done
;;
"stop")
for curr_pis in "${HOME}/${MOZ_USER_DIR}/init.d"/K* "$MOZ_DIST_LIB/init.d"/K* ; do
if [ -x "${curr_pis}" ] ; then
case "${curr_pis}" in
*.sh) . "${curr_pis}" ;;
*) "${curr_pis}" "stop" ;;
esac
fi
done
;;
*)
echo 1>&2 "$0: Internal error in moz_pis_startstop_scripts."
exit 1
;;
esac
}

## Start addon scripts
moz_pis_startstop_scripts "start"

$AOSS $MOZ_PROGRAM $@

## Stop addon scripts
moz_pis_startstop_scripts "stop"

exit 0


Thanks beforehand
 
Old 08-11-2006, 03:53 PM   #2
beezum88
Member
 
Registered: Aug 2006
Location: Texas
Distribution: Ubuntu Maverick Meerkat, openSUSE 11.4
Posts: 45

Rep: Reputation: 15
Possible Solution

I'm not quite sure I understand all of the question, especially all the code, but I think this might do it:

First, are the desktop icons links to the "firefox-bin"? If so, there might be another file in the same directory as "firefox-bin" called "firefox" that is a shell script. That's what I have my desktop shortcut icons linked to and they seem to work. But then, I have SUSE 9.2, so that may or may not work. If it doesn't, well [shrug] I dunno.

Last edited by beezum88; 08-11-2006 at 03:55 PM.
 
Old 08-11-2006, 05:06 PM   #3
fofire
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for the reply . . . Alright I can see that it may have been an info overload on the first try so I will try to keep it short an simple.

Basically when I click on the Firefox icon on the desktop nothing happens. the same thing happens when I click on the icon in under applications/internet/web browser. However the browser opens when I double click on the firefox-bin under usr/lib/firefox.

Anyhow to get to your question about there being another file called firefox there yes there is as U said except it has .sh as an extension. My icon might be linked to that because when I double click it it does the exact same thing as the other . . .nothing and it does the same thing when I run it in Terminal . . .Im not sure how to link it or to see how it is linked because it doesnt say under properties rather it has to the right of notes (when U click on properties) an option called launcher and there is the command line

firefox %u

I ran that in terminal and that is how I got those error messages I told U about.

That code I showed U is also the same as the firefox.sh when I open it in g-edit . . . show it may be linked as U say . . .


Well I guess it seems that the most logical workaround would be to see if I could link my desktop icons to the firefox-bin . . . how do I do that?

and once again thanks a million
 
Old 08-12-2006, 04:19 PM   #4
beezum88
Member
 
Registered: Aug 2006
Location: Texas
Distribution: Ubuntu Maverick Meerkat, openSUSE 11.4
Posts: 45

Rep: Reputation: 15
connect desktop icons to "firefox-bin"

Assuming SUSE 10.1 is the same as 9.2, if you right click on a blank part of the desktop, go to "Create New", choose "file", choose "Link to Application". In the window that opens, clicking the picture will allow you to choose a new icon, and the text box is the name that is displayed on the icon. choose the "Application" tab to specify the path. Click the "Browse" button to specify the path, then find the file and select it. Click "OK" and that should be it. From there, you can drag the icon to your application bar to put a copy there.

Hope that works for you...
 
Old 08-14-2006, 02:44 AM   #5
fofire
LQ Newbie
 
Registered: Aug 2006
Posts: 23

Original Poster
Rep: Reputation: 15
Sorry I couldnt reply earlier but I did see Ur reply and then as I was witing my internet went down and decided not to come back on unil now . . .

Anyhow thanks . . . Suse 10.1 works a bit differently but it was close enough for me to figure out my way around according to Ur reply and get the problem resolved.

I appreaciate you r help and sorry again for the late reply

Fofire
 
  


Reply


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
How to make desktop icon for FireFox? adds2one Linux - Newbie 4 08-30-2005 09:35 PM
running limewire from fluxbox menu or desktop icon tuneout Linux - Software 2 08-15-2005 07:58 AM
Firefox 1.0 desktop icon allanl Linux - Software 4 11-11-2004 07:48 PM
Changing KDE start menu icon? chup Linux - General 3 08-30-2003 03:08 PM
desktop icon or menu shortcut for phoenix? romcgill Linux - General 4 05-25-2003 08:28 PM


All times are GMT -5. The time now is 03:47 AM.

Main Menu
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