fixing settings to point to the correct config file
This commit is contained in:
parent
e5a7360f0b
commit
ec6119eb57
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ mod settings {
|
||||||
#[qinvokable]
|
#[qinvokable]
|
||||||
pub fn print_sound(self: Pin<&mut Self>) {
|
pub fn print_sound(self: Pin<&mut Self>) {
|
||||||
let mut config = Ini::new();
|
let mut config = Ini::new();
|
||||||
let _map = config.load("~/.config/librepresenter/Libre Presenter.conf");
|
let _map = config.load("~/.config/lumina/lumina.conf");
|
||||||
|
|
||||||
println!("{}", self.sound_effect());
|
println!("{}", self.sound_effect());
|
||||||
}
|
}
|
||||||
|
@ -47,8 +47,8 @@ mod settings {
|
||||||
let home = dirs::config_dir();
|
let home = dirs::config_dir();
|
||||||
println!("{:?}", home);
|
println!("{:?}", home);
|
||||||
if let Some(mut conf) = home {
|
if let Some(mut conf) = home {
|
||||||
conf.push("librepresenter");
|
conf.push("lumina");
|
||||||
conf.push("Libre Presenter.conf");
|
conf.push("lumina.conf");
|
||||||
let _map = config.load(conf);
|
let _map = config.load(conf);
|
||||||
|
|
||||||
println!("{:?}", config);
|
println!("{:?}", config);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue