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

HOME and StartMenu? #235

Open
newville opened this issue Oct 15, 2023 · 2 comments
Open

HOME and StartMenu? #235

newville opened this issue Oct 15, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@newville
Copy link

Thanks very much for this work.

I am wondering why a few locations that might be generally useful and not included.

First, there is no value for the HOME directory, perhaps akin to or even equivalent to pathlib.Path().home() or os.path.expanduser(). I get that this can be found in other ways most of the time, but isn't that implied "but maybe not always in s a consistent manner" sort of the point here?

Second, there is no value for user entries to the Start Menu (roughly $HOME/.local/share/applications on Linux, or CSIDL_PROGRAMS on Windows, but non-existent for macOS, and I don't know about others).

These would both be very useful for a project of mine: https://github.com/newville/pyshortcuts. There, we sort of solve for these on Linux/macOS/Windows, but maybe those would be better supported here.

Are these omissions intentional? I didn't see a clear list of "yes, these, not those", but maybe I missed that.
Would these be welcome additions or seen as distractions or perhaps difficult to support?
Apologies if these have been discussed and decided on before, or if this is the wrong forum for such a discussion.

Thanks.

@gaborbernat
Copy link
Member

First, there is no value for the HOME directory, perhaps akin to or even equivalent to pathlib.Path().home() or os.path.expanduser(). I get that this can be found in other ways most of the time, but isn't that implied "but maybe not always in s a consistent manner" sort of the point here?

There's a stdlib for this, so not needed a 3rd party.

Second, there is no value for user entries to the Start Menu (roughly $HOME/.local/share/applications on Linux, or CSIDL_PROGRAMS on Windows, but non-existent for macOS, and I don't know about others).

PR welcome for this.

@gaborbernat gaborbernat added enhancement New feature or request help wanted Extra attention is needed labels Oct 20, 2023
@jhenriquelc
Copy link

(Begginer here, sorry if this is a bad comment, I'd like to help.)

Second, there is no value for user entries to the Start Menu (roughly $HOME/.local/share/applications on Linux, or CSIDL_PROGRAMS on Windows, but non-existent for macOS, and I don't know about others).

Is there a way to allow certain functions of the library to only be used by some OSs? I don't think there is an equivalent folder in Android either.

From what I can read about this project, all functions it provides should return an equivalent directory in multiple different platforms. Since some platforms don't have an equivalent, this may be out of scope?

It seems to me this is beyond what's possible with the library without changing the APIs to allow None as a return value. I woudn't assume changing it this much is feasible, this would be a breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants