You are not logged in.

#1 2021-02-19 09:34:13

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Arch creates in a home directory folder named $HOME every time.

Hi there!
I have a problem after install Arch Linux and DE.
Arch creates in my home directory folder named $HOME and there is .config directory.
System only get config from ~/\$HOME/.config, but doesn't from ~/.config.

 ~  ls -la ~/\$HOME/                                   
total 12
drwx------  3 user users 4096 Feb 19 11:18 .
drwx------ 28 user users 4096 Feb 19 11:29 ..
drwx------ 10 user users 4096 Feb 19 11:22 .config

Anyone can help me?
Thanks.

Last edited by KR1470R (2021-02-19 09:38:19)


ping 127.0.0.1

Offline

#2 2021-02-19 09:35:47

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,627

Re: Arch creates in a home directory folder named $HOME every time.

"Arch" doesn't do anything, what DE did you install and how are you starting it and what are the contents of this .config folder?

Online

#3 2021-02-19 09:39:35

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,964
Website

Re: Arch creates in a home directory folder named $HOME every time.

What's the output of

$ tail -n +1 /etc/skel/.[^.]*

Online

#4 2021-02-19 09:45:12

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

V1del wrote:

"Arch" doesn't do anything, what DE did you install and how are you starting it and what are the contents of this .config folder?

Now i installed a LXDE, but before i used an i3wm, and in all these WM and DE i have this problem. Also i use a Slim.
Here is contents of ~/\$HOME/.config:

 ~  ls ~/\$HOME/.config 
gtk-2.0  lxpanel    openbox  pulse           user-dirs.locale
gtk-3.0  lxsession  pcmanfm  user-dirs.dirs  xfce4

ping 127.0.0.1

Offline

#5 2021-02-19 09:46:13

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

schard wrote:

What's the output of

$ tail -n +1 /etc/skel/.[^.]*
==> /etc/skel/.bash_logout <==
#
# ~/.bash_logout
#

==> /etc/skel/.bash_profile <==
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

==> /etc/skel/.bashrc <==
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

ping 127.0.0.1

Offline

#6 2021-02-19 09:51:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,627

Re: Arch creates in a home directory folder named $HOME every time.

Don't use slim, it's broken, note the warning in: https://wiki.archlinux.org/index.php/SLiM

Online

#7 2021-02-19 09:53:57

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,964
Website

Re: Arch creates in a home directory folder named $HOME every time.

Okay, so there's nothing weird in the skel, so it's only your current user's problem.

$ env
$ tail -n +1 ~/.bashrc ~/.bash_profile

Online

#8 2021-02-19 10:09:09

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

V1del wrote:

Don't use slim, it's broken, note the warning in: https://wiki.archlinux.org/index.php/SLiM

Okay, then i switched to xinit


ping 127.0.0.1

Offline

#9 2021-02-19 10:10:33

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

schard wrote:

Okay, so there's nothing weird in the skel, so it's only your current user's problem.

$ env
$ tail -n +1 ~/.bashrc ~/.bash_profile
 ~  env                                         
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=LXDE
XDG_DATA_HOME=/home/kript/.local/share
USER=kript
XDG_MENU_PREFIX=lxde-
HOME=/home/kript
XDG_CONFIG_HOME=/home/kript/.config
OLDPWD=/home/kript
DESKTOP_SESSION=LXDE
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_VTNR=1
XDG_SEAT=seat0
GTK_MODULES=canberra-gtk-module
XDG_DATA_DIRS=/usr/share/gdm:/var/lib/menu-xdg:/usr/local/share:/usr/share:/var/lib/snapd/desktop
WINDOWPATH=1
JOURNAL_STREAM=8:17531
_LXSESSION_PID=467
VTE_VERSION=6201
XDG_CONFIG_DIRS=/etc/xdg
MAIL=/var/spool/mail/kript
LOGNAME=kript
PATH=/home/kript/.sdkman/candidates/java/current/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/var/lib/snapd/snap/bin
SAL_USE_VCLPLUGIN=gtk
XDG_RUNTIME_DIR=/run/user/1000
XDG_SESSION_ID=1
SHELL=/usr/bin/zsh
XDG_SESSION_TYPE=tty
WINDOWID=35651587
MOTD_SHOWN=pam
INVOCATION_ID=8773b8845c534d5288e5b8c9ec99fad4
PWD=/home/kript
SHLVL=2
XAUTHORITY=/home/kript/.Xauthority
COLORTERM=truecolor
XDG_SESSION_CLASS=user
TERM=xterm-256color
DISPLAY=:0.0
P9K_TTY=old
_P9K_TTY=/dev/pts/0
ZSH=/home/kript/.oh-my-zsh
PAGER=less
LESS=-R
LSCOLORS=Gxfxcxdxbxegedabagacad
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
P9K_SSH=0
SDKMAN_DIR=/home/kript/.sdkman
SDKMAN_VERSION=5.10.0+617
SDKMAN_CANDIDATES_API=https://api.sdkman.io/2
SDKMAN_PLATFORM=LinuxX64
SDKMAN_CANDIDATES_DIR=/home/kript/.sdkman/candidates
JAVA_HOME=/home/kript/.sdkman/candidates/java/current
_=/usr/bin/env

 ~  tail -n +1 ~/.bashrc ~/.bash_profile                       
==> /home/kript/.bashrc <==
#
# ~/.bashrc
#

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '
XDG_CONFIG_HOME=~/.config

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/kript/.sdkman"
[[ -s "/home/kript/.sdkman/bin/sdkman-init.sh" ]] && source "/home/kript/.sdkman/bin/sdkman-init.sh"

==> /home/kript/.bash_profile <==
#
# ~/.bash_profile
#

[[ -f ~/.bashrc ]] && . ~/.bashrc

#feh --bg-kill ~/Pictures/wallpaper.jpg
exec startx
export DESKTOP_SESSION=LXDE

ping 127.0.0.1

Offline

#10 2021-02-19 10:20:13

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Arch creates in a home directory folder named $HOME every time.

exec startx
export DESKTOP_SESSION=LXDE

Unrelated and irrelevant, but the export isn't reached.

If the issue remains w/o sllim, it's likely either sdkman-init.sh or snap.
Or oh-my-zsh

XDG_CONFIG_HOME=/home/kript/.config

System only get config from ~/\$HOME/.config

What exactly is "system"?

Offline

#11 2021-02-19 10:58:51

progandy
Member
Registered: 2012-05-17
Posts: 5,190

Re: Arch creates in a home directory folder named $HOME every time.

Might that wrong value be set in the systemd environment.d?
Or possibly with pam_env (in ~/.pam_environment or /etc/environment)?

Last edited by progandy (2021-02-19 11:00:15)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Online

#12 2021-02-19 11:08:41

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

seth wrote:
exec startx
export DESKTOP_SESSION=LXDE

Unrelated and irrelevant, but the export isn't reached.

If the issue remains w/o sllim, it's likely either sdkman-init.sh or snap.
Or oh-my-zsh

XDG_CONFIG_HOME=/home/kript/.config

System only get config from ~/\$HOME/.config

What exactly is "system"?

What exactly is "system"?

I mean, DE and something similar else.

So, i removed snap, sdkman, but a problem doesn't fix yet... Maybe is have an any suggests yet?


ping 127.0.0.1

Offline

#13 2021-02-19 11:30:14

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Arch creates in a home directory folder named $HOME every time.

"DE and something similar else" … Aha. Something™. Everything clear.

Do you get this if you only boot the multi-user.target, https://wiki.archlinux.org/index.php/Sy … _boot_into (but basically don't startx)
And remove omz. Is your bashrc actually relevant or do you use zsh?

Offline

#14 2021-02-22 11:28:52

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

seth wrote:

"DE and something similar else" … Aha. Something™. Everything clear.

Do you get this if you only boot the multi-user.target, https://wiki.archlinux.org/index.php/Sy … _boot_into (but basically don't startx)
And remove omz. Is your bashrc actually relevant or do you use zsh?

I removed omz, that didn't helped. I use zsh


ping 127.0.0.1

Offline

#15 2021-02-22 11:47:33

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

KR1470R wrote:
seth wrote:

"DE and something similar else" … Aha. Something™. Everything clear.

Do you get this if you only boot the multi-user.target, https://wiki.archlinux.org/index.php/Sy … _boot_into (but basically don't startx)
And remove omz. Is your bashrc actually relevant or do you use zsh?

I removed omz, that didn't helped. I use zsh

It seems like i fixed it by change default target to boot into from a default.target to multi-user.target, i will test it again and reply here later. Thanks so much

Last edited by KR1470R (2021-02-22 12:02:31)


ping 127.0.0.1

Offline

#16 2021-02-22 13:20:27

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Arch creates in a home directory folder named $HOME every time.

That's not a fix - it's either created by something lxde autostarts or it was indeed OMZ…
btw. why were you posting your bashrc when you're actually using zsh as login shell?

Offline

#17 2021-02-22 15:12:05

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

seth wrote:

That's not a fix - it's either created by something lxde autostarts or it was indeed OMZ…
btw. why were you posting your bashrc when you're actually using zsh as login shell?

hmm, also i removed zsh and use bash


ping 127.0.0.1

Offline

#18 2021-02-22 15:19:41

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Arch creates in a home directory folder named $HOME every time.

The question is whether after switching to bash the folder is still created when running LXDE?

Offline

#19 2021-02-22 18:50:15

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

seth wrote:

The question is whether after switching to bash the folder is still created when running LXDE?

Nope, i explored deeper and problem has been in a zsh, when i removed that i fixed a problem.


ping 127.0.0.1

Offline

#20 2021-02-22 20:03:05

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Arch creates in a home directory folder named $HOME every time.

Post your zshrc and maybe double-check that the problem wasn't indeed OMZ.

Offline

#21 2021-02-23 08:56:12

KR1470R
Member
From: Ukraine
Registered: 2020-08-25
Posts: 12

Re: Arch creates in a home directory folder named $HOME every time.

seth wrote:

Post your zshrc and maybe double-check that the problem wasn't indeed OMZ.

# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH="/home/kript/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"

# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)

source $ZSH/oh-my-zsh.sh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
XDG_CONFIG_HOME=~/.config

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
#export SDKMAN_DIR="/home/kript/.sdkman"
#[[ -s "/home/kript/.sdkman/bin/sdkman-init.sh" ]] && source "/home/kript/.sdkman/bin/sdkman-init.sh"

ping 127.0.0.1

Offline

#22 2021-02-23 13:00:08

seth
Member
Registered: 2012-09-03
Posts: 50,929

Re: Arch creates in a home directory folder named $HOME every time.

comment-free strip:

if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

export ZSH="/home/kript/.oh-my-zsh"

ZSH_THEME="powerlevel10k/powerlevel10k"

plugins=(git)

source $ZSH/oh-my-zsh.sh

[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
XDG_CONFIG_HOME=~/.config

How did you remove OMZ? That's basically an OMZ-only zshrc?
Remove the omz references (essentially have an empty zshrc, because that's all that's left) and see whther the issue remains.

fwwi, you do NOT need OMZ for a powerline promt. At all.
https://wiki.archlinux.org/index.php/Powerline

Offline

Board footer

Powered by FluxBB