Hi,
I updated Firefox to version 49, and now I can run it clicking on the program name from a "nautilus" window.
But It is difficult for me, now, to create a symbolic link in order to run firefox using the graphical environment of gnome.
This is because it *(already) **exists **a file "/ usr / bin / firefox" file that is not' a link, but instead it is '**a scrip*t:
- - - - - - - - - - - - -- - - - - - - - - - - - -- - - - - - - - - - - - -- - - - - - - - - - - - -
#!/bin/bash
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
##
## Usage:
##
## $ firefox
##
## 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.
…..................
…..................
- - - - - - - - - - - - -- - - - - - - - - - - - -- - - - - - - - - - - - -- - - - - - - - - - - - -
probably (indeed it is sure) in my case it need to modify this script, in order to run graphically firefox by gnome
But I have not idea how to do this.
Any help to solve my problem will be 'appreciated.
Thank you
Angelo
On Sun, 2016-10-02 at 18:57 +0300, Angelo Moreschini wrote:
I updated Firefox to version 49, and now I can run it clicking on the program name from a "nautilus" window.
But It is difficult for me, now, to create a symbolic link in order to run firefox using the graphical environment of gnome.
This is because it *(already) **exists **a file "/ usr / bin / firefox" file that is not' a link, but instead it is '**a scrip*t:
Put it in your own bin directory and adjust your $PATH accordingly.
poc
do you mean to change the location (the directory) of the script ?
On Sun, Oct 2, 2016 at 7:57 PM, Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Sun, 2016-10-02 at 18:57 +0300, Angelo Moreschini wrote:
I updated Firefox to version 49, and now I can run it clicking on the program name from a "nautilus" window.
But It is difficult for me, now, to create a symbolic link in order to
run
firefox using the graphical environment of gnome.
This is because it *(already) **exists **a file "/ usr / bin / firefox" file that is not' a link, but instead it is '**a scrip*t:
Put it in your own bin directory and adjust your $PATH accordingly.
poc _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On Mon, 2016-10-03 at 08:00 +0300, Angelo Moreschini wrote:
do you mean to change the location (the directory) of the script ?
[Please don't top-post, see the list Guidelines]
No, I mean create your own small script that calls the supplied one, and put it in your own bin directory. Edit your .profile (or .bash_profile or .login or whatever) to insert that directory in your $PATH ahead of the standard system directories, then log out and in again. Make sure that your script is executable.
(None of this has anything to do with Nautilus, as I'm not a Gnome user. It's simply a way to get your own variants of system commands which has worked on Unix-like systems for decades and most users probably already know about).
poc
Hi Patrick,
practically you say me to create my own script to realize the connection to the file (script) locate in /usr/ bin (as an alternative to the creation of a link). I understand your idea: this can 'be just an alternative -More "COMPLEX than to use a link- to get the same result.
However even before writing the script, I did an experiment
the file /usr/bin/firefox exists and has execute permission: [angelo_dev@localhost ~]$ ls -l /usr/bin/firefox -rwxr-xr-x. 1 root root 6995 Nov 2 2015 /usr/bin/firefox
*but is is not run :* [angelo_dev@localhost ~]$ sudo /usr/bin/firefox [sudo] password for angelo_dev: Error: /usr/lib64/firefox/firefox not found /usr/lib/firefox/firefox not found
I made this test is to try the feasibility of the realization of the work before you do it, and also to enter into the implementation of this mechanism ...
I would like to understand more concerning this incident.
On Mon, Oct 3, 2016 at 12:14 PM, Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Mon, 2016-10-03 at 08:00 +0300, Angelo Moreschini wrote:
do you mean to change the location (the directory) of the script ?
[Please don't top-post, see the list Guidelines]
No, I mean create your own small script that calls the supplied one, and put it in your own bin directory. Edit your .profile (or .bash_profile or .login or whatever) to insert that directory in your $PATH ahead of the standard system directories, then log out and in again. Make sure that your script is executable.
(None of this has anything to do with Nautilus, as I'm not a Gnome user. It's simply a way to get your own variants of system commands which has worked on Unix-like systems for decades and most users probably already know about).
poc _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org
On Tue, 2016-10-04 at 10:32 +0300, Angelo Moreschini wrote:
practically you say me to create my own script to realize the connection to the file (script) locate in /usr/ bin (as an alternative to the creation of a link).
[You're still top-posting. Please stop doing that. It makes the thread much harder to follow]
I understand your idea: this can 'be just an alternative -More "COMPLEX than to use a link- to get the same result.
Not necessarily. A script can do more than a link because it can set up environment variables before calling the target program.
However even before writing the script, I did an experiment
the file /usr/bin/firefox exists and has execute permission: [angelo_dev@localhost ~]$ ls -l /usr/bin/firefox -rwxr-xr-x. 1 root root 6995 Nov 2 2015 /usr/bin/firefox
*but is is not run :* [angelo_dev@localhost ~]$ sudo /usr/bin/firefox [sudo] password for angelo_dev: Error: /usr/lib64/firefox/firefox not found /usr/lib/firefox/firefox not found
Why do you need to call firefox using sudo? I presume the errors are caused by sudo's environment not being what Firefox needs. However I still don't understand what your problem actually is so maybe I should just shut up. As I said before I don't use Gnome, so creating a desktop shortcut for that environment is outside my comfort zone. All I meant to say is that if your target binary is for some reason in the wrong place, you can get round it using a script. That's all.
poc
OK Patrick,
my is not really a problem...I can run frefox both both from command line both using Gnome.
Other time yet I understood "by chance", after some time, how to do better something that was not what I really would like it
thank you
Angelo
On Tue, Oct 4, 2016 at 1:03 PM, Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Tue, 2016-10-04 at 10:32 +0300, Angelo Moreschini wrote:
practically you say me to create my own script to realize the connection
to
the file (script) locate in /usr/ bin (as an alternative to the creation
of
a link).
[You're still top-posting. Please stop doing that. It makes the thread much harder to follow]
I understand your idea: this can 'be just an alternative -More "COMPLEX than to use a link- to get the same result.
Not necessarily. A script can do more than a link because it can set up environment variables before calling the target program.
However even before writing the script, I did an experiment
the file /usr/bin/firefox exists and has execute permission: [angelo_dev@localhost ~]$ ls -l /usr/bin/firefox -rwxr-xr-x. 1 root root 6995 Nov 2 2015 /usr/bin/firefox
*but is is not run :* [angelo_dev@localhost ~]$ sudo /usr/bin/firefox [sudo] password for angelo_dev: Error: /usr/lib64/firefox/firefox not found /usr/lib/firefox/firefox not found
Why do you need to call firefox using sudo? I presume the errors are caused by sudo's environment not being what Firefox needs. However I still don't understand what your problem actually is so maybe I should just shut up. As I said before I don't use Gnome, so creating a desktop shortcut for that environment is outside my comfort zone. All I meant to say is that if your target binary is for some reason in the wrong place, you can get round it using a script. That's all.
poc _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org