Quotegmusicbrowser can run system command when launched with -cmd RunSysCmdYes, seen that... but it still requires to modify each place in the system where GMB is launched, so from the logistics perspective it's no different from using a wrapper script.
QuoteI don't really understand how you would 'lose integration' - it shouldn't matter whether gmb is launchen 'manually' or from the script, as long as the script is exited after launch?
What I mean is that there are existing places in the system where GMB is launched (including the volume control applet). If I to use a wrapper script, I'd have to modify all these places to launch the wrapper script instead of GMB. Or, if I don't do that, these places will launch GMB without the script.
QuoteOne option that comes to mind is to rename /usr/bin/gmusicbrowser to something else and create symlink by that name, which would then run the script to mount music & launch gmb.Yes, but this approach is logistically the same as patching the GMB executable itself. It'll cause the same questions during package upgrade and the same need to re-apply after upgrade.