-
-
Notifications
You must be signed in to change notification settings - Fork 81
Add site_applications_dir counterpart for user_applications_dir #435
Copy link
Copy link
Closed
Description
The user_applications_dir method currently lacks a site_applications_dir counterpart.
Some suggestions:
- Unix:
/usr/share/applications?- Or a
/usr/local/share/applications:/usr/share/applicationsmultipath? As withsite_log_dir(Addsite_state_dir()counterpart foruser_state_dir()#214) andsite_bin_dir(Addsite_bin_dircounterpart foruser_bin_dir#434),platformdirsmight choose not to use a multipath for consistency reasons. - Or maybe even use
$XDG_DATA_DIRSwith appended…/applicationsas multipath? However, note that this env variable often includes paths of other software, e.g.$HOME/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/sharefrom Flatpak, soplatformdirswould need to filter that somehow… That's rather inconvenient.
- Android:
user_applications_diralias (which is an alias foruser_data_dir)? As with any othersite_*_dircounterpart… - Windows:
%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs - Mac OS:
/Applications? Sounds about right, but I have no Mac, so no idea…
Note that user_applications_dir currently doesn't accept $appauthor, $appname, $version.
If implemented, user_applications_dir should support the use_site_for_root option and redirect calls to site_applications_dir if enabled.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels