As a problem found to open the filechooser on Chromium based browsers (and perhaps others too) running with run-as-spot, I 'd suggest the following change for BWpup in /usr/sbin/run-as-spot :
Change line 120 from exec '"$SANDBOX"' '"$CMD"'
to: dbus-launch '"$SANDBOX"' '"$CMD"'
and problem should be fixed from what I tested.
See also: viewtopic.php?p=136097#p136097 and viewtopic.php?p=136154#p136154
edit: perhaps @jamesbond , as you are the author of run-as-spot, you have opinion ?
Proposal for run-as-spot change
Moderator: Forum moderators
- fredx181
- Posts: 3250
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 408 times
- Been thanked: 1412 times
- Contact:
Proposal for run-as-spot change
- fredx181
- Posts: 3250
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 408 times
- Been thanked: 1412 times
- Contact:
- KevinTheGerbil
- Posts: 20
- Joined: Sat Apr 01, 2023 9:55 pm
- Has thanked: 6 times
- Been thanked: 9 times
Re: Proposal for run-as-spot change
I found that the solution proposed by @fredx181 for running UG Chromium (etc) causes a problem when running, for instance, @mikewalsh 's VLC-portable package which also runs as spot. If I run the LAUNCH script contained within the VLC-portable package in a terminal, it outputs the error:
"dbus-launch: /initrd/mnt/dev_save/Applications/VLC-portable64/vlc/usr/lib/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.14.10' not found (required by dbus-launch)"
After not much thought my current workaround for this is to have two different "run-as-spot" scripts in /usr/sbin - the original "run-as-spot", plus an alternative "run-as-spot1" script which has line 120 changed from "exec..." to "dbus-launch....". The UG-Chromium LAUNCH script is then modified to specify the alternative run-as-spot1 script, whilst the VLC LAUNCH script specifies the original run-as-spot.
This is a bit of a kludge of course, and it would be nice to have a more elegant / one-size-fits-all solution if at all possible.
- Kevin
- fredx181
- Posts: 3250
- Joined: Tue Dec 03, 2019 1:49 pm
- Location: holland
- Has thanked: 408 times
- Been thanked: 1412 times
- Contact:
Re: Proposal for run-as-spot change
KevinTheGerbil wrote: Tue Nov 26, 2024 3:47 amI found that the solution proposed by @fredx181 for running UG Chromium (etc) causes a problem when running, for instance, @mikewalsh 's VLC-portable package which also runs as spot. If I run the LAUNCH script contained within the VLC-portable package in a terminal, it outputs the error:
"dbus-launch: /initrd/mnt/dev_save/Applications/VLC-portable64/vlc/usr/lib/libdbus-1.so.3: version `LIBDBUS_PRIVATE_1.14.10' not found (required by dbus-launch)"
....- Kevin
Well, I see this as rather exceptional, the real problem IMO is that libs are included in VLC-portable (e.g ...vlc/usr/lib/libdbus-1.so.3) that are not matching with the currently running system.
But you did find a nice workaround though
edit: could be fixed perhaps by just removing ...vlc/usr/lib/libdbus-1.so.3 from VLC-portable