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
Extension deletes user personal files from Music, Templates, Public, Desktop #188
Extension deletes user personal files from Music, Templates, Public, Desktop #188
Comments
https://forum.snapcraft.io/t/snap-real-home-is-kinda-buggy/34463 similar issue, I posted in the forum sometimes ago |
@sergio-costas @jhenstridge any thoughts on how to deal with this? |
I'll check the scripts in gnome extension... |
Some snaps set $HOME equal to $SNAP_REAL_HOME, which breaks the HOME folder because the extensions scripts presumes that $HOME points to the snap HOME. This can result in replacing some XDG folders with a soft link to themselves, or config data being deleted. This patch tries to fix this. Fix ubuntu/gnome-sdk#188
@kenvandine I think that this patch should fix it... snapcore/snapcraft-desktop-integration#25 |
I'll try to test it in a VM... |
I think that would fix it. My initial reaction to this approach was that it would not create the necessary bookmarks, but actually in this use case we don't need to create those at all. |
Tested, and it works. |
This fix is in the candidate channel of gnome-42-2204 now |
(I'm not convinced this should be "closed" until it's in stable, but that's your decision. 😇 I tested this via the following method:
I believe this confirms the issue is fixed in the candidate channel, and certainly still broken in the stable channel. |
Not sure, if it adds anything, seeing the issue is closed, but I can also confirm that running dosbox-staging in combination with gnome-42-2204 from candidate channel resolves the problem. |
The gnome extension deleted all my ~/Music ~/Public ~/Templates ~/Desktop.
I was prototyping a snap which tries to store files in
$SNAP_USER_DATA/Appname
, but the user expects the files to be$HOME/Appname
. So I set an environment variable in theapps
section ofsnapcraft.yaml
.Steps to reproduce
Backup your ~/Music, ~/Public, ~/Templates and ~/Desktop folders
Build a snap which has the following:
Install and run the snap.
Your ~/Music folder will be replaced with a recursive symlink to itself, deleting all the previous contents.
Expected outcome
The gnome extension should:
a) Do better checks before arbitrarily replacing files in the $HOME folder
b) Not delete user files
The text was updated successfully, but these errors were encountered: