qgis_deployment_toolbelt.utils.os_mac module¶
Utilities specific for macOS.
For now, Desktop and applications folders follow the same conventions as on Linux.
- qgis_deployment_toolbelt.utils.os_mac.get_user_desktop_folder() Path¶
Return the user Desktop folder, as set in the XDG user directories configuration file (~/.config/user-dirs.dirs), else ~/Desktop.
Partly inspired from https://stackoverflow.com/a/13742626/2556577.
- Returns:
path to the current user Desktop folder.
- Return type:
Path
- qgis_deployment_toolbelt.utils.os_mac.get_user_home_folder() Path¶
Return the user home folder.
- Returns:
path to the user home
- Return type:
Path
Return the folder where FreeDesktop applications launchers are stored for the user, i.e. the equivalent of the Windows Start Menu: $XDG_DATA_HOME/applications.
See: https://specifications.freedesktop.org/desktop-entry-spec/latest/
- Returns:
path to the user applications folder
- Return type:
Path