Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should be able to save MyData.cfg somewhere accessible to all users. #105

Open
wettenhj opened this issue Mar 3, 2017 · 0 comments
Open

Comments

@wettenhj
Copy link
Contributor

wettenhj commented Mar 3, 2017

It is common for facilities to use a shared login e.g. "imageuser" for all users, in which case MyData's configuration would currently be saved to somewhere like:

C:\Users\imageuser\AppData\Local\Monash University\MyData\MyData.cfg

However some facilities want each user to be able to log in with their individual account but be able to access the same MyData configuration as other users.

MyData should support saving its configuration to a central location like:

C:\ProgramData\Monash University\MyData\MyData.cfg

on Windows. The "C:\ProgramData" location can be determined using the appdirs Python module as appdirs.site_config_dir()

MyData's Windows setup wizard can ensure that all users have permission to access the "C:\ProgramData\Monash University\MyData\ folder.

Since we currently don't use a PKG installer on Mac OS X, just a drag-and-drop DMG, we would need to consider how to create the MyData config folder inside appdirs.site_config_dir() which for Mac OS X is:

/Library/Application Support

On Linux, appdirs.site_config_dir() is:

/etc/xdg

The only Linux distro we create packages for currently is RHEL / CentOS. We could add a postinstall scriptlet to the RPM spec to create /etc/xdg/MyData

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant