Hi,
I'm trying to narrow this down to either my script or Firefox itself.
I have a rudimentary shell launcher:
$ cat opt/bin/ff-accel
#!/bin/sh
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox
I have a rudimentary shell launcher:
$ cat opt/bin/ff-accel
#!/bin/sh
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox
If I launch Firefox normally:
$ /home/oc/opt/firefox/firefox www.google.com
I get the Google homepage as expected.
If I launch it this way:
$ opt/bin/ff-accel www.google.com
I just get a new instance of FF with a blank page.
On 2023-04-03, Ottavio Caruso <[email protected]> wrote:
I have a rudimentary shell launcher:
$ cat opt/bin/ff-accel
#!/bin/sh
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox
If I launch Firefox normally:
$ /home/oc/opt/firefox/firefox www.google.com
I get the Google homepage as expected.
If I launch it this way:
$ opt/bin/ff-accel www.google.com
I just get a new instance of FF with a blank page.
You're ignoring any arguments you pass to your script.
Cheers,
Tom
In article <u0erqc$30uas$[email protected]>,
Ottavio Caruso <[email protected]> wrote:
Hi,
I'm trying to narrow this down to either my script or Firefox itself.
I have a rudimentary shell launcher:
$ cat opt/bin/ff-accel
#!/bin/sh
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox
This needs to be:
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox "$@"
BTW, why do you use "env"? Is that necessary, or is that just your general practice?
Am 03/04/2023 um 16:05 schrieb Kenny McCormack:
In article <u0erqc$30uas$[email protected]>,
Ottavio Caruso <[email protected]> wrote:
Hi,
I'm trying to narrow this down to either my script or Firefox itself.
I have a rudimentary shell launcher:
$ cat opt/bin/ff-accel
#!/bin/sh
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox
This needs to be:
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox "$@"
Thanks. I just realised that yesterday night on my way home. But are the >quotes around $@ necessary?
BTW, why do you use "env"? Is that necessary, or is that just your general >> practice?
I copied that from here: >https://wiki.debian.org/Firefox#Hardware_Video_Acceleration
Desktop shortcuts require "env" to work. Do shell scripts not require
"env" too?
Am 03/04/2023 um 16:05 schrieb Kenny McCormack:
In article <u0erqc$30uas$[email protected]>,
Ottavio Caruso <[email protected]> wrote:
I'm trying to narrow this down to either my script or Firefox
itself.
I have a rudimentary shell launcher:
$ cat opt/bin/ff-accel
#!/bin/sh
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox
This needs to be:
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox "$@"
Thanks. I just realised that yesterday night on my way home. But
are the quotes around $@ necessary?
Using quotes is the "normal way" of passing values of shellparameters into commands. (That it is the more complicated
BTW, why do you use "env"? Is that necessary, or is that just
your general practice?
I copied that from here: https://wiki.debian.org/Firefox#Hardware_Video_Acceleration
Desktop shortcuts require "env" to work. Do shell scripts not
require "env" too?
Am 03/04/2023 um 16:05 schrieb Kenny McCormack:
In article <u0erqc$30uas$[email protected]>,
Ottavio Caruso <[email protected]> wrote:
Hi,
I'm trying to narrow this down to either my script or Firefox itself.
I have a rudimentary shell launcher:
$ cat opt/bin/ff-accel
#!/bin/sh
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox
This needs to be:
env MOZ_X11_EGL=1 /home/oc/opt/firefox/firefox "$@"
Thanks. I just realised that yesterday night on my way home. But are the quotes around $@ necessary?
See https://mywiki.wooledge.org/Quotes for more info.
On 05.04.2023 00:43, Ed Morton wrote:
See https://mywiki.wooledge.org/Quotes for more info.I wonder why that link lists
Backticks: `...` is the legacy command substitution syntax;
under "Quoting"; effectively it's no quoting and has (per se)
nothing to do with quoting (see also the POSIX reference).
And why it says
$"..." : This is a Bash extension.
(and not "a Ksh extension"); didn't Kornshell introduce that?
And why
$'...'
isn't declared as "extension" at all; isn't that a non-standard
(also Ksh-?) extension (that's as well borrowed by other shells)?
But otherwise the link provides some good information.
As a hint for the OP; if studying large texts behind links isddddvvvddvvd
cumbersome I suggest to set the argument list to, say,
set a b "c d" e "f g h" i # here 6 arguments
and just inspect the output of
printf "'%s'\n" "$@"
printf "'%s'\n" "$*"
printf "'%s'\n" $@
printf "'%s'\n" $*
to quickly grasp to what these syntaxes will expand the data;
observe the number or arguments, its grouping, and preservation
of spaces.
Janis
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 153:31:28 |
| Calls: | 12,091 |
| Calls today: | 4 |
| Files: | 15,000 |
| Messages: | 6,517,669 |