Better default path
This commit is contained in:
parent
ba5a48dae1
commit
77824176f6
@ -6,10 +6,12 @@ use enums::WallpaperHandler;
|
||||
use files::*;
|
||||
mod handlers;
|
||||
|
||||
use untildify::untildify;
|
||||
|
||||
fn main() {
|
||||
// Load the config file from the default path
|
||||
// TODO: Have this load from the users home directory
|
||||
let config = Config::from_config("/home/ben/.config/wallpaperctl/wallpaperctl.ini".to_owned());
|
||||
let path = untildify("~/.config/wallpaperctl/wallpaperctl.ini");
|
||||
let config = Config::from_config(path);
|
||||
|
||||
// Initialise the `Wallpapers` struct with a clone of the config
|
||||
let mut wallpapers = Wallpapers::new(config.clone());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user