Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - atzz

Pages: [1]
Questions / execute shell script on startup
« on: March 07, 2012, 03:06:15 »
Hello Quentin, hello everybody!

First of all, let me say that gmusicbrowser is awesome (you already heard that, but still). It doesn't get in your face, and it does what it promises to do. This quality becomes a rarity these days, sigh...

Now, to my question.
Is there a way to make gmusicbrowser execute some system commands (e.g. run a shell script) when it's starting?

I needed this functionality to mount my music collection volume if it's available. Having failed to find an official way to do it, I've made a "quick and dirty" hack by plugging a system() call in the main perl executable (/usr/bin/gmusicbrowser). The patch, if it deserves such name, is attached (I have gmusicbrowser 1.1.7). When the patched GMB starts, it will run ~/.config/gmusicbrowser/, if that file exists and executable.

Did I miss a better way to accomplish what I need?

If such functionality does not exist, do you think it may be useful to add it?

Best regards,

Pages: [1]