DEV Community

Calin Baenen
Calin Baenen

Posted on

Why won't my XFCE4 log-in script work?

Why doesn't my XFCE4 log-in script work?
To my knowledge, everything seems set-up correct.

Me showing the log-in script.

This is the actual script located in ~/Misc/CalinsStartUtils:

# Calin's start-up utilities.



# Remove recently used.
rm ~/.local/share/recently-used.xbel


# Clean trash.
rm -rf ~/.local/share/Trash/expunged
rm -rf ~/.local/share/Trash/info

rm ~/.local/share/gvfs-metadata/*.log


# Clear cache.
rm -rf ~/.cache/thumbnails/*/*
rm -rf ~/.cache/sessions/*
truncate -s 0 ~/.bash_history


# Connect to wifi.
iwctl station wlan0 scan
iwctl station wlan0 connect $HOME_WIFI
Enter fullscreen mode Exit fullscreen mode

Thanks!
Cheers!

Top comments (4)

Collapse
 
brandonwallace profile image
brandon_wallace • Edited

Did you make the script executable?

$ chmod +x ~/Misc/CalinsStartUtils
Enter fullscreen mode Exit fullscreen mode
Collapse
 
baenencalin profile image
Calin Baenen

It worked.
Thanks!

Collapse
 
brandonwallace profile image
brandon_wallace

I'm glad I was able to help you.

Collapse
 
baenencalin profile image
Calin Baenen

The script's name is CalinsStartUtils.
I'm guessing the same applies here.

I'll test to see if it works.