started work on displaying local images in pure js

This commit is contained in:
Adrian Osterwind 2024-11-14 11:32:32 +01:00
parent ad8cd4339b
commit 9983220f89
2 changed files with 9 additions and 11 deletions

View file

@ -40,7 +40,7 @@ pub fn run() {
.setup(|app| {
// allowed the given directory
let scope = app.fs_scope();
scope.allow_directory("/home/toxotes", true);
scope.allow_directory(tauri::path::BaseDirectory::Home.variable(), true);
app.set_theme(Some(tauri::Theme::Dark));
Ok(())