Ability to define file permissions for Unix systems
When Bliss modifies files on a Unix system it sets default file permissions of 644 using whatever owner and group that Bliss is running as. I would like to be able to define what permissions get applied to files, so I don't have to manually alter permissions if I want other users to be able to modify my music files.
I posted a way of automatically setting file ownership using inotify: https://www.blisshq.com/music-library-management-blog/2017/06/06/changing-permissions/
Timo Kosig commented
Thanks for looking into this Dan.
I'm facing the same issue (running Bliss on a Synology NAS).
As for the move to Java 7: this would surely make it possible to facilitate setting different default file permissions. I'm not sure though how widely available Java 7 is - I think Synology has just made their own Java package available for users to install this month - I had to install a package from a community source to make it work, so maybe it would be good to look into a way how to make this work with the existing Java 6 version.
As I said in my email:
It might be possible to solve this issue (and do quite a lot of other things) if there was some kind of post-treatment hook that executes a user defined command after Bliss fixes an album. The directory of the treated album could be passed as an argument. That way it would be possible to e.g. chmod/chown the directory back to a predefined permission scheme.
Took me a while to notice this one but here I am...
As bliss is written on Java 6, which has poor support for file permissions, this is difficult to do. If/when I move to Java 7, this will become much easier.