Files
nixpkgs/pkgs/by-name/ha/hardinfo2/default-no-theme.patch
06kellyjac ee52555ca7 hardinfo2: 2.2.10 -> 2.2.13
* Provide newly required wayland dependencies
* Move to finalAttrs pattern
* Remove update menu item
* Default to no-theme
* Fix access to xdg-open
* Provide runtime tooling for various benchmarks
* Make cups available for printer support
* Fix path on service file
* Added passthru.updateScript accounting for release- to get auto-updates
* Added meta.downloadPage
* Added meta.changelog
* Add myself as a maintainer
2025-06-20 19:40:34 +02:00

14 lines
658 B
Diff

diff --git a/shell/shell.c b/shell/shell.c
index 76523e9a..dbfe2d16 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -620,7 +620,7 @@ static void create_window(void)
gchar *conf_path = g_build_filename(g_get_user_config_dir(), "hardinfo2","settings.ini", NULL);
g_key_file_load_from_file(key_file, conf_path, G_KEY_FILE_KEEP_COMMENTS | G_KEY_FILE_KEEP_TRANSLATIONS, NULL);
params.theme = g_key_file_get_integer(key_file, "Theme", "ThemeNumber", NULL);
- if(params.theme==0) params.theme=1;
+ if(params.theme==0) params.theme=-1; //default to no theme
if(params.theme<-1) params.theme=-1;
if(params.theme>6) params.theme=-1;