I'm writing an installer for a Python app I'm making, and needed to have paths for different file locations. These are what I have so far, and so wondered if these were correct of if I should change any of them (particularly the Linux/macOS ones)
I have a path for:
- the actual binary
- for the config file
- the README
- the start menu, should the user want to add a shortcut (this will create the
.desktopfile on Linux/macOS, a shortcut on Windows) - the desktop, should the user want to add a shortcut
Can anyone let me know if there should be changes to these to make them work on all devices etc
Windows
binary = '%ProgramFiles%'
configs = '%AppData%'
README = '%ProgramFiles%'
start menu = '%AppData%\Microsoft\Windows\Start Menu'
desktop = os.path.expanduser('~\Desktop')
Linux
binary = '/usr/local/bin'
config = os.path.expanduser('~/.config')
README = '/usr/local/share/doc/packages'
start menu = os.path.expanduser('~/.local/share/applications')
desktop = os.path.expanduser('~/Desktop')
macOS
binary = '/usr/local/bin'
config = os.path.expanduser('~/.config')
README = '/usr/local/share/doc/packages'
start menu = os.path.expanduser('~/.local/share/applications')
desktop = os.path.expanduser('~/Desktop')
Thanks in advance
EDIT: I have added the option for the user to change the paths anyway so it doesn't have to be perfect but I would like the best 'normal' paths