rharish101 / ReGreet

Clean and customizable greeter for greetd
GNU General Public License v3.0
433 stars 19 forks source link

ReGreet ignores config(or so it seems, at least) #29

Closed orest58008 closed 1 year ago

orest58008 commented 1 year ago

My config is

[background]
path = "/data/pictures/wallpapers/82072674_p0.png"

[env]
MOZ_ENABLE_WAYLAND=1

[GTK]
font_name = "Inter 16"
theme_name = "Catppuccin-Macchiato-Standard-Sapphire-Dark"
icon_theme_name = "Papirus-Dark"
cursor_theme_name = "posy-white"

[commands]
reboot = [ "systemctl", "reboot" ]
poweroff = [ "systemctl", "poweroff" ]

, but ReGreet seems to follow none of it. Logs show only this:

(regreet:371): Gtk-WARNING **: 21:32:36.877: Theme parser warning: <data>:6:17-18: Empty declaration
Failed to create //.cache for shader cache (Відмовлено у доступі)---disabling.

What could be the problem? The owner of /etc/greetd and all files inside is greeter and it has video permissions.

rharish101 commented 1 year ago

Can you upload the logs from /var/log/regreet/log after running ReGreet with regreet -l debug? It seems like you posted the console output, which is just GTK warnings.

kwossi commented 1 year ago

I have the same issue with regreet on Endeavor OS with hyprland. My config:

`[background] path = "/etc/greetd/nicepic.png" fit = "Contain"

[GTK] application_prefer_dark_theme = true cursor_theme_name = "Capitaine Cursors" font_name = "Cantarell 16" icon_theme_name = "oomox-Everforest-Dark" theme_name = "Everforest-Dark-B"

[commands] reboot = [ "systemctl", "reboot" ] poweroff = [ "systemctl", "poweroff" ]`

It seems like everything i have in [GTK] is ignored except for dark theme.

When i run the suggested command i get this in my terminal:

(process:3374): Gdk-WARNING **: 14:07:19.897: No such backend: * panicked at 'calledResult::unwrap()on anErrvalue: BoolError { message: "Failed to initialize GTK", filename: "/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk4-0.5.5/src/rt.rs", function: "gtk4::rt", line: 153 }', /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/relm4-0.5.0/src/lib.rs:110:17

and the logs in /var/log/regreet/log show this: 2023-08-13T14:07:19.897375149+02:00 ERROR regreet: panicked at 'calledResult::unwrap()on anErrvalue: BoolError { message: "Failed to initialize GTK", filename: "/build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gtk4-0.5.5/src/rt.rs", function: "gtk4::rt", line: 153 }', /build/.cargo/registry/src/index.crates.io-6f17d22bba15001f/relm4-0.5.0/src/lib.rs:110:17

orest58008 commented 1 year ago

https://pastebin.com/F0Pz7gXJ

Sorry for not responding for a long time. I just briefly switched to lightdm

orest58008 commented 1 year ago

I slightly changed my config but nothing too serious

[background]
path = "/data/pictures/wallpapers/110473958_p0.jpg"

[env]
GRIM_DEFAULT_DIR=$HOME/Картинки/grim
MOZ_ENABLE_WAYLAND=1
QT_STYLE_OVERRIDE=kvantum
QT_QPA_PLATFORMTHEME=gtk3

[GTK]
application_prefer_dark_theme = true
font_name = "Inter 16"
theme_name = "Catppuccin-Mocha-Standard-Sapphire-Dark"
icon_theme_name = "Papirus-Dark"
cursor_theme_name = "posy-white"

[commands]
reboot = [ "systemctl", "reboot" ]
poweroff = [ "systemctl", "poweroff" ]
rharish101 commented 1 year ago

@kwossi There seems to be a GTK error. Does it also happen with Sway?

@Orest58008 In the pastebin you posted, the third line says that ReGreet couldn't read your config file properly. As for the config, you should quote the values of the environment variables. After doing that, please post the logs again.

orest58008 commented 1 year ago

Thanks, that fixed it. I forgot to "" a 1 in MOZ_ENABLE_WAYLAND=1, thinking it would be fine because 1 is a number