Does anyone know of a way to find out if *any* browser is already running, and
if so, which one?
Folderol wrote:
Does anyone know of a way to find out if *any* browser is already running, and
if so, which one?
if you know a full list of potential browsers you're interested in,
you could do
ps -a | grep -E 'firefox|chromium|kmeleon|vivaldi|palemoon'
etc, but winkywankybrowser could be running and you won't notice.
[…]
update-alternatives --list x-www-browser
Does anyone know of a way to find out if *any* browser is already running, and
if so, which one?
I'll just have to think of something else. Maybe just point the users to
the index file and have them load it into a browser manually.
Does anyone know of a way to find out if *any* browser is already running, and
if so, which one?
I'll just have to think of something else. Maybe just point the users to
the index file and have them load it into a browser manually.
Does anyone know of a way to find out if *any* browser is already running, and
if so, which one?
Does anyone know of a way to find out if *any* browser is already running, and
if so, which one?
On Thu, 05 Aug 2021 15:14:06 +0200, Folderol wrote:
Does this program/project have a configuration file?
I'll just have to think of something else. Maybe just point the users to
the index file and have them load it into a browser manually.
If so, define the browser to be used in it?.
Thats my usual approach for anything that may change from one
installation to another.
I usually assume that the configuration file will be manually edited and
so validate it fairly carefully and treat config items that don't match
the environment/runtime conditions as a fatal errors. However, depending
on what your intended users can be expected to deal with, you may want to
add an interactive configuration editor which pops up if the
configuration doesn't match the environment.
Thanks both of you for the answers. However, I need this to work in any distro. Otherwise it might have been usable - sort of, but that command reveals that a couple of lightweight ones don't appear in the list.
I'll just have to think of something else. Maybe just point the users to the index file and have them load it into a browser manually.
Folderol <general@musically.me.uk> wrote:
Thanks both of you for the answers. However, I need this to work in any
distro. Otherwise it might have been usable - sort of, but that command
reveals that a couple of lightweight ones don't appear in the list.
I'll just have to think of something else. Maybe just point the users to the >> index file and have them load it into a browser manually.
$ xdg-open example.html
will open the file in the user's default browser, however that may be >configured.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 171 |
Nodes: | 16 (1 / 15) |
Uptime: | 14:05:57 |
Calls: | 3,415 |
Files: | 10,837 |
Messages: | 3,216,211 |