Closed henry-hsieh closed 2 months ago
Which operating system are you using? I'm asking because I use dirs and on Linux dirs should be defaulting to $HOME/.local/share
if XDG is missing.
I'm using Ubuntu 20.04. It has nothing to do with Rust implementation. I want to make this change because bash doesn't swap empty $XDG_DATA_HOME to $HOME/.local/share
. Please see this page.
I think this can be simplified to tinty_data_dir="${XDG_DATA_HOME:-$HOME/.local/share}/tinted-theming/tinty"
. I'll make another commit after I have access to a computer.
The original scripts finds themes in
/tinted-theming/tinty
if$XDG_DATA_HOME
doesn't exist. This didn't match XDG base directory specification.