Hi Nathan :)
Sorry, I meant folder, not file.
The code is checking the ownership of the home directory of gnome-
initial-setup which is /run/gnome-initial-setup, which is where the
files we are trying to copy live:
```
src = g_file_new_for_path (initial_setup_homedir);
if (!g_file_query_exists (src, NULL) ||
!file_is_ours (src))
exit (EXIT_SUCCESS);
```
They are all owned by the gnome-initial-setup user:
```
root@matt-pc-q35-8-0:/run/gnome-initial-setup# ls -ld .
drwx------ 6 gnome-initial-setup nogroup 120 Mar 27 16:49 .
root@matt-pc-q35-8-0:/run/gnome-initial-setup# ls -la .
total 0
drwx------ 6 gnome-initial-setup nogroup 120 Mar 27 16:49 .
drwxr-xr-x 36 root root 920 Mar 27 16:49 ..
drwx------ 6 gnome-initial-setup nogroup 120 Mar 27 16:49 .cache
drwx------ 6 gnome-initial-setup nogroup 140 Mar 27 16:49 .config
drwx------ 4 gnome-initial-setup nogroup 80 Mar 27 16:49 .local
drwx------ 3 gnome-initial-setup nogroup 60 Mar 27 16:49 snap
```
If I have understood the problem correctly:
The gnome-intial-setup-copy-worker is started in a user session, so it
will be running as that user, not as the gnome-initial-setup user, and
fail that check, preventing those files from being copied:
https://salsa.debian.org/gnome-team/gnome-initial-
setup/-/blob/debian/latest/data/gnome-initial-setup-copy-
worker.service.in?ref_type=heads
https://salsa.debian.org/gnome-team/gnome-initial-
setup/-/blob/debian/latest/data/gnome-initial-setup-copy-
worker.desktop.in.in?ref_type=heads
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2059121
Title:
The gnome-initial-setup-copy-worker never seems to have the correct
permissions to copy from /run/gnome-initial-setup go a users ~/.config
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-initial-setup/+bug/2059121/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs