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:
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:
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:
``` setup_homedir) ;
src = g_file_new_for_path (initial_
if (!g_file_ query_exists (src, NULL) ||
!file_is_ours (src))
exit (EXIT_SUCCESS);
```
They are all owned by the gnome-initial-setup user:
``` pc-q35- 8-0:/run/ gnome-initial- setup# ls -ld . pc-q35- 8-0:/run/ gnome-initial- setup# ls -la .
root@matt-
drwx------ 6 gnome-initial-setup nogroup 120 Mar 27 16:49 .
root@matt-
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