Closed popey closed 5 months ago
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...
@kenvandine I think that this patch should fix it... https://github.com/snapcore/snapcraft-desktop-integration/pull/25
I'll try to test it in a VM...
@kenvandine I think that this patch should fix it... snapcore/snapcraft-desktop-integration#25
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. :innocent:
I tested this via the following method:
snap refresh gnome-42-2204 --candidate
snap install dosbox-staging
snap run dosbox-staging
snap remove --purge dosbox-staging
rm -rf ~/snap/dosbox-staging
snap refresh gnome-42-2204 --stable
snap install dosbox-staging
snap run dosbox-staging
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