-
Notifications
You must be signed in to change notification settings - Fork 61
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
File open/save dialogs show $SNAP_USER_DATA instead of $HOME when selecting the home shortcut #167
Comments
I've spent some time investigating this. I don't think it's a bookmark, it's literally using $HOME. In the snap's context, $HOME is $SNAP_USER_DATA. Maybe @oSoMoN can figure something out. |
To be exact, the Reading the actual implementation of We need to be careful with this approach though, because this means any code that calls |
I tested setting However there are a number of places in gtk that call So at best this trick could be used with selected applications, carefully tested to ensure this doesn't introduce subtle side effects. The LibreOffice snap might be a good candidate. |
That's only for snaps getting access to the real userdir right? (so we would have to make that variable conditional on the interface to be connected) |
oh, also ~/. are not allowed by default, changing what the glib function returns might lead to have apps trying to write their config in a location they are not allowed to use |
I think that's rather specific to desktop applications (connected to the home interface), and only for user-generated files (where to save them by default, or where to open previously saved files). |
Exactly, as Seb wrote, this is the tricky part. I think snaps using the gtk filechooser portal won't be impacted, as the portal can expose the real user home directory and be aware of that, while still have the HOME set to the SNAP_HOME directory, and thus, not having the permission issue we talked about. |
(initially reported on launchpad: https://launchpad.net/bugs/1798450)
The text was updated successfully, but these errors were encountered: