Skip to content
Snippets Groups Projects
Commit 2f89ddc3 authored by Recolic's avatar Recolic :house_with_garden:
Browse files

.bugfix

parent 2ac8cb4f
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ function lci_init_if_needed () {
function lci_startup_if_needed () {
local uname="$(whoami)"
local state_file=/tmp/.linuxconf-startup-state
local state_file="/tmp/.linuxconf-state-$uname"
if [[ ! -f $state_file ]]; then
touch $state_file && chmod ugo+rw $state_file || die "failed to create tmp file $state_file"
fi
......@@ -213,7 +213,7 @@ function lci_install_login_hook () {
echo "$desktop_file" | base64 -d > "$XDG_CONFIG_DIRS/autostart/lc-hook.desktop" || return $?
for uconfig in /home/*/.config/autostart/lc-hook.desktop "$XDG_CONFIG_HOME/autostart/lc-hook.desktop"; do
[ -f "$uconfig" ] && rm -f "$uconfig"
[ -f "$uconfig" ] && rm -f "$uconfig" || true
done
else
[ -f "$XDG_CONFIG_DIRS/autostart/lc-hook.desktop" ] && return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment