You are not logged in.

#1 2023-04-13 17:48:48

SlothSpunky77
Member
Registered: 2023-03-03
Posts: 47

applications don't run/retain previous configuration after backup

I had to restore my system files from a timeshift backup after a reinstall of arch, but the applications don't have the same configuration anymore and applications like visual studio code don't even run anymore.
A little backstory, transferring all files from the previous home directory (before reinstall) to the new home directory breaks everything. So, I've transferred only specific files/directories just for the WM (awesomeWM) to work. I also have .config transferred from my old home dir. What other files/directories must I transfer for the applications to run/restore coniguration?
This is my old directory, /home/ArchSloth/

.              Downloads               sloth
..             .elementary             snapshot
1.txt          .gnupg                  .ssh
.asoundrc      go                      .ssr
autorotate.py  hda-analyzer.py         testxournal.pdf
.bash_history  .java                   testxournal.xopp
.bash_logout   .lesshst                timeshift
.bash_profile  L_Flex                  .vim
.bashrc        libinput-gestures.conf  .viminfo
build          .local                  .vscode
C              .mozilla                .wine
.cargo         pacgraph.png            .Xauthority
.config        pacgraph.svg            .xinitrc
copy.txt       Pictures                xournaldoodle.pdf
Doom2          .pki                    xournaldoodle.xopp
doom-2.zip     .python_history         .Xresources
.dosbox        rtw89-dkms-git          yay-git

This is my new directory, /home/sloth/

.              .bashrc    libinput-gestures.conf  .viminfo
..             .cache     .local                  .vscode
.bash_history  .config    .mozilla                .Xauthority
.bash_logout   Downloads  .pki                    .xinitrc
.bash_profile  L_Flex     rtw89-dkms-git          .Xresources

Offline

#2 2023-04-13 18:59:44

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: applications don't run/retain previous configuration after backup

Do the UID/GIDs between the two differ? The number not the name is what's relevant for all logical considerations, consider chowning stuff to your new user/group if they are different. Also to what kind of drive/filesystem did you back up to? If it was ntfs or something other not aware of POSIX permissions they will be shot and mismatch.

As for which you "need" probably most of them except .Xauthorithy, that is a transient runtime file with which you will break the connection to the xorg server if you carry that over.

Last edited by V1del (2023-04-13 19:01:11)

Offline

#3 2023-04-15 16:01:49

SlothSpunky77
Member
Registered: 2023-03-03
Posts: 47

Re: applications don't run/retain previous configuration after backup

Excuse my lack of understanding of your statement, but UID/GID difference between what two?
I'm pretty sure that I backed it up to a fat filesystem.
Are you giving me the thumbs up to transfer everything to my new directory except .Xauthority? Is there a safer way to do that in case it breaks again?

Last edited by SlothSpunky77 (2023-04-15 16:02:00)

Offline

#4 2023-04-15 17:34:56

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: applications don't run/retain previous configuration after backup

The two home directories. You presumably created a new user with a new /home. Your permissions are going to be off if the numerical user id and group id differ, and that might cause issues. Check/post e.g. an ls -l from the two dirs. From the symptoms you described i think it likely you copied Xauthority which will break connections to the xorg server

Offline

#5 2023-04-17 03:15:13

SlothSpunky77
Member
Registered: 2023-03-03
Posts: 47

Re: applications don't run/retain previous configuration after backup

Old home directory:

total 17744
drwx------ 28 sloth sloth      4096 Apr 14 18:18 .
drwxr-xr-x  6 root  root       4096 Apr 12 23:38 ..
-rw-r--r--  1 root  root          3 Apr 10 15:52 1.txt
-rw-r--r--  1 root  root        105 Apr 10 15:52 .asoundrc
-rw-r--r--  1 root  root       2300 Apr 10 15:52 autorotate.py
-rw-------  1 root  root       7535 Apr 10 15:52 .bash_history
-rw-r--r--  1 root  root         21 Apr 10 15:52 .bash_logout
-rw-r--r--  1 root  root        116 Apr 10 15:52 .bash_profile
-rw-r--r--  1 root  root        205 Apr 10 15:52 .bashrc
drwxr-xr-x  2 root  root       4096 Apr 10 15:52 build
drwxr-xr-x  2 root  root       4096 Apr 10 15:52 C
drwxr-xr-x  3 root  root       4096 Apr 10 15:52 .cargo
drwxr-xr-x 35 root  root       4096 Apr 10 15:52 .config
-rw-r--r--  1 root  root        845 Apr 10 15:52 copy.txt
drwxr-xr-x  3 root  root       4096 Apr 10 15:52 Doom2
-rw-r--r--  1 root  root    7278230 Apr 10 15:52 doom-2.zip
drwx------  2 root  root       4096 Apr 10 15:52 .dosbox
drwxr-xr-x  3 root  root       4096 Apr 10 15:52 Downloads
drwxr-xr-x  4 root  root       4096 Apr 10 15:52 .elementary
drwx------  4 root  root       4096 Apr 10 15:52 .gnupg
drwxr-xr-x  3 root  root       4096 Apr 10 15:52 go
-rw-r--r--  1 root  root          0 Apr 10 15:52 hda-analyzer.py
drwxr-xr-x  4 root  root       4096 Apr 10 15:52 .java
-rw-------  1 root  root         20 Apr 10 15:52 .lesshst
drwxr-xr-x  2 root  root       4096 Apr 10 15:52 L_Flex
-rw-r--r--  1 root  root       8819 Apr 10 15:52 libinput-gestures.conf
drwxr-xr-x  4 root  root       4096 Apr 10 15:52 .local
drwx------  4 root  root       4096 Apr 10 15:52 .mozilla
-rw-r--r--  1 root  root     521878 Apr 10 15:52 pacgraph.png
-rw-r--r--  1 root  root     153274 Apr 10 15:52 pacgraph.svg
drwxr-xr-x  4 root  root       4096 Apr 10 15:52 Pictures
drwx------  3 root  root       4096 Apr 10 15:52 .pki
-rw-------  1 root  root          0 Apr 10 15:52 .python_history
drwxr-xr-x  6 root  root       4096 Apr 10 15:52 rtw89-dkms-git
drwxrwx--- 29 root  homedir    4096 Apr 12 17:53 sloth
drwxr-xr-x  3 root  root       4096 Apr 10 15:52 snapshot
drwx------  2 root  root       4096 Apr 10 15:52 .ssh
drwxr-xr-x  4 root  root       4096 Apr 10 15:52 .ssr
-rw-r--r--  1 root  root    2354382 Apr 10 15:52 testxournal.pdf
-rw-r--r--  1 root  root    2729413 Apr 10 15:52 testxournal.xopp
drwxr-xr-x  6 root  root       4096 Apr 10 15:52 timeshift
drwxr-xr-x  2 root  root       4096 Apr 10 15:52 .vim
-rw-------  1 root  root      26585 Apr 10 15:52 .viminfo
drwxr-xr-x  3 root  root       4096 Apr 10 15:52 .vscode
drwxr-xr-x  4 root  root       4096 Apr 10 15:52 .wine
-rw-r--r--  1 root  root        726 Apr 10 15:52 .xinitrc
-rw-r--r--  1 root  root    2275682 Apr 10 15:52 xournaldoodle.pdf
-rw-r--r--  1 root  root    2640958 Apr 10 15:52 xournaldoodle.xopp
-rw-r--r--  1 root  root         13 Apr 10 15:52 .Xresources
drwxr-xr-x  6 root  root       4096 Apr 10 15:52 yay-git

New home directory:

total 96
drwx------ 11 sloth sloth 4096 Apr 17 08:34 .
drwxr-xr-x  6 root  root  4096 Apr 12 23:38 ..
-rw-------  1 sloth sloth 4226 Apr 17 08:30 .bash_history
-rw-r--r--  1 sloth sloth   21 Apr 10 15:52 .bash_logout
-rw-r--r--  1 sloth sloth  116 Apr 13 08:49 .bash_profile
-rw-r--r--  1 sloth sloth  172 Apr 10 15:52 .bashrc
drwxr-xr-x 11 sloth sloth 4096 Apr 16 13:47 .cache
drwxr-xr-x 35 sloth sloth 4096 Apr 13 23:20 .config
drwxr-xr-x  2 sloth sloth 4096 Apr 13 11:01 Downloads
drwxr-xr-x  2 root  root  4096 Apr 12 23:58 L_Flex
-rw-r--r--  1 root  root  8819 Apr 12 23:57 libinput-gestures.conf
drwxr-xr-x  4 sloth sloth 4096 Apr 12 23:51 .local
drwx------  4 sloth sloth 4096 Apr 13 11:00 .mozilla
drwx------  3 sloth sloth 4096 Apr 12 23:51 .pki
drwxr-xr-x  6 sloth sloth 4096 Apr 13 09:18 rtw89-dkms-git
-rw-------  1 sloth sloth 4571 Apr 17 08:34 .viminfo
drwxr-xr-x  3 sloth sloth 4096 Apr 12 23:51 .vscode
-rw-------  1 sloth sloth   50 Apr 14 23:32 .Xauthority
-rw-r--r--  1 sloth sloth  726 Apr 13 08:28 .xinitrc
-rw-r--r--  1 sloth sloth   13 Apr 13 09:01 .Xresources

Offline

#6 2023-04-17 13:17:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: applications don't run/retain previous configuration after backup

Yeah, all of those need to be owned by sloth:sloth at the end of the copy. make sure stuff in .config and .local is not owned by root but your user, use

chown -R sloth:sloth /home/sloth

in doubt

Offline

Board footer

Powered by FluxBB