Page 1 of 1
Proposal for run-as-spot change
Posted: Wed Nov 20, 2024 3:36 pm
by fredx181
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 ?
Re: Proposal for run-as-spot change
Posted: Thu Nov 21, 2024 2:16 pm
by fredx181
Re: Proposal for run-as-spot change
Posted: Tue Nov 26, 2024 3:47 am
by KevinTheGerbil
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
Re: Proposal for run-as-spot change
Posted: Tue Nov 26, 2024 10:31 am
by fredx181
KevinTheGerbil wrote: Tue Nov 26, 2024 3:47 am
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)"
....
- 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 ![Thumbup :thumbup:](./images/smilies/thumbup.gif)
edit: could be fixed perhaps by just removing ...vlc/usr/lib/libdbus-1.so.3 from VLC-portable
![Idea :idea:](./images/smilies/icon_idea.gif)