Page 1 of 1

Add capability of loading themes from user locations

Posted: March 13th, 2013, 8:17 pm
by Cpuroast
Sab should have the possibility of loading custom themes from user locations as in something like:

Mac OSX: ~/Library/Application Support/Sabnzbd/Interfaces
Windows Vista or 7: %userprofile%\AppData\Local\sabnzbd\Interfaces
Windows XP/2003: %userprofile%\local settings\application data\sabnzbd\Interfaces
Unix: ~/.sabnzbd/Interfaces

That way when deleting/uninstalling/re-installing sab, custom interfaces wouldn't be affected.
They would simply become extra program data like ini, logs, queue, rss etc.

A nice side effect of this enhancement specifically on recent versions of OSX, is that it will keep the bundle seal/signature intact.
Tested this using codesign -v /Applications/SABnzbd.app

Currently if one decides to put a custom theme in SABnzbd.app/Contents/Resources/interfaces/, OSX will consider the seal broken and for example will ask the user to allow sab through the firewall every single time it is launched.

Re: Add capability of loading themes from user locations

Posted: March 14th, 2013, 2:42 pm
by shypike
We're actually not encouraging new skins, because it's a hell of job to make one.
And worse to maintain it.
One problem is that what we current call a skin isn't really a skin but a full-blown UI.
When (if ever) we support true skinning (stylesheets and icons only),
it would be a good idea to use your suggestions.

The commandline -t option used to support a full path, but that got dropped somehow.