diced / dlauncher

An application launcher for Linux that is based on Ulauncher
GNU General Public License v3.0
83 stars 5 forks source link

Crash - theme - No such file or directory #20

Closed dougg0k closed 1 month ago

dougg0k commented 1 month ago

Hi,

If I change the color_theme to anything rather than light while having added a theme in the themes folder, it crashes.

nu ✗ dlauncher
[2024-10-11T02:04:51Z INFO  dlauncher] Started dlauncher
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/launcher/util/theme.rs:70:8
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
nu ✗ ll ~/.config/dlauncher/themes/
Octal Permissions Links Size User    Date Modified Name
0775  drwxrwxr-x      1    - user 15 mai  2022   adwaita-gtk4-dark/
0755  drwxr-xr-x      1    - user 10 out 22:52   light/
0775  drwxrwxr-x      1    - user  5 mar  2022   zorinBlueDark/
{
  "manifest_version": "1",
  "name": "adwaita-gtk4-dark",
  "display_name": "Adwaita-Gtk4-Dark",
  "extend_theme": "dark",
  "css_file": "theme.css",
  "css_file_gtk_3.20+": "theme-gtk-3.20.css",
  "matched_text_hl_colors": {
    "when_selected": "#e6e6e6",
    "when_not_selected": "#e6e6e6"
  }
}
[main]
daemon = true
least_score = 60
extensions = []

[launcher]
color_theme = "adwaita-gtk4-dark"
frequent_apps = 20
clear_input = true
hide_on_focus_lost = true

Not sure, but maybe it's due to these themes extending dark theme, and dark theme were not made available by this tool.

dougg0k commented 1 month ago

By adding the dark theme found here, it has helped.

https://github.com/Ulauncher/Ulauncher/tree/v5/data/themes/dark