[opensuse] Firefox not starting
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 About a week ago, following a zypper patch, Firefox stopped starting from the launcher menu icon. Please don't ask which patch or exactly when. My system is 64bit openSUSE 13.2 with KDE 4.14.9. :~> which firefox /usr/bin/firefox :~> firefox /usr/bin/firefox: line 52: /usr/bin/basename: Permission denied /usr/bin/firefox: line 73: /usr/bin/file: Permission denied /usr/bin/firefox: line 75: /usr/bin/grep: Permission denied /usr/bin/firefox: line 139: /usr/lib64/firefox/firefox: Permission denied /usr/bin/firefox: line 139: /usr/lib64/firefox/firefox: Success So, if I edit the launcher to point directly to /usr/lib64/firefox/firefox it works. /usr/bin/firefox is a link to a shell script, /usr/lib64/firefox/firefox.sh, which contains the following code: - --- code --- ## 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/lib64/firefox" MOZ_APPNAME="firefox" MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME" MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh" if [ "$0" = "$MOZ_APP_LAUNCHER" ]; then [ -h "/usr/bin/$MOZ_APPNAME" ] && \ _link=$(readlink -f "/usr/bin/$MOZ_APPNAME") if [ "$_link" = "$MOZ_APP_LAUNCHER" ]; then export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME" fi else export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME" fi - --- /code --- There is other stuff, but ISTM the code quoted above should find the binaries and launch firefox when I just type 'firefox' on the command line. What's gone wrong? Thanks Bob - -- Bob Williams System: Linux 3.16.7-7-desktop Distro: openSUSE 13.2 (x86_64) with KDE Development Platform: 4.14.3 Uptime: 06:00am up 7:55, 3 users, load average: 0.16, 0.05, 0.06 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlYgwbwACgkQ0Sr7eZJrmU5d1wCfSMY+gHuwdM3F/xJn9yViek06 bJgAoIt2GMc1c57Cvh1tPMGjntMNUuK0 =tGCQ -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, Oct 16, 2015 at 10:22:06AM +0100, Bob Williams wrote:
About a week ago, following a zypper patch, Firefox stopped starting from the launcher menu icon. Please don't ask which patch or exactly when.
My system is 64bit openSUSE 13.2 with KDE 4.14.9.
:~> which firefox /usr/bin/firefox
:~> firefox /usr/bin/firefox: line 52: /usr/bin/basename: Permission denied /usr/bin/firefox: line 73: /usr/bin/file: Permission denied /usr/bin/firefox: line 75: /usr/bin/grep: Permission denied /usr/bin/firefox: line 139: /usr/lib64/firefox/firefox: Permission denied /usr/bin/firefox: line 139: /usr/lib64/firefox/firefox: Success
So, if I edit the launcher to point directly to /usr/lib64/firefox/firefox it works.
/usr/bin/firefox is a link to a shell script, /usr/lib64/firefox/firefox.sh, which contains the following code:
--- code --- ## 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/lib64/firefox" MOZ_APPNAME="firefox" MOZ_PROGRAM="$MOZ_DIST_LIB/$MOZ_APPNAME"
MOZ_APP_LAUNCHER="$MOZ_DIST_LIB/$MOZ_APPNAME.sh" if [ "$0" = "$MOZ_APP_LAUNCHER" ]; then [ -h "/usr/bin/$MOZ_APPNAME" ] && \ _link=$(readlink -f "/usr/bin/$MOZ_APPNAME") if [ "$_link" = "$MOZ_APP_LAUNCHER" ]; then export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME" fi else export MOZ_APP_LAUNCHER="/usr/bin/$MOZ_APPNAME" fi --- /code ---
There is other stuff, but ISTM the code quoted above should find the binaries and launch firefox when I just type 'firefox' on the command line.
What's gone wrong?
You have very likely tried to confine /usr/bin/firefox with AppArmor. Is logprof showing events? Ciao, Marcus -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/10/15 10:24, Marcus Meissner wrote:
On Fri, Oct 16, 2015 at 10:22:06AM +0100, Bob Williams wrote:
About a week ago, following a zypper patch, Firefox stopped starting from the launcher menu icon. Please don't ask which patch or exactly when.
My system is 64bit openSUSE 13.2 with KDE 4.14.9.
[snip]
What's gone wrong?
You have very likely tried to confine /usr/bin/firefox with AppArmor.
Is logprof showing events?
Ciao, Marcus
Hi Marcus, You're right: :~> sudo logprof root's password: Reading log entries from /var/log/audit/audit.log. Updating AppArmor profiles in /etc/apparmor.d. Profile: /usr/lib64/firefox/firefox.sh Execute: /usr/lib64/firefox/firefox Severity: unknown (I)nherit / (C)hild / (P)rofile / (N)amed / (U)nconfined / (X) ix On / (D)eny / Abo(r)t / (F)inish Thank you. I need to read more before meddling in things I don't understand ;-) Bob - -- Bob Williams System: Linux 3.16.7-7-desktop Distro: openSUSE 13.2 (x86_64) with KDE Development Platform: 4.14.3 Uptime: 06:00am up 7:55, 3 users, load average: 0.16, 0.05, 0.06 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlYgyZcACgkQ0Sr7eZJrmU4Y0gCfTkkSo8IPIvZmaLYgx6DsvBrc nw8AnR4PdUxA2zkVnXjF8Qc7Hdet+tum =y4bg -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Bob Williams
-
Marcus Meissner