System64fumo / syspower

Simple power menu/shutdown screen written in gtkmm 4
Do What The F*ck You Want To Public License
36 stars 1 forks source link

Failed to open display, what am I doing wrong? #4

Closed LoneWolf4713 closed 1 month ago

LoneWolf4713 commented 1 month ago

hey, so I did make install on syspower but without sudo it can't find libsyspower.so and with sudo it can't open a display image

what am I doing wrong? I'm on Arch Linux with Hyprland 0.43.0-1

System64fumo commented 1 month ago

Try re-logging in Or spawn another terminal instance Or LD_LIBRARY_PATH=/usr/local/lib syspower

LoneWolf4713 commented 1 month ago

hey, the LD_LIBRARY_PATH works and opens the menu but then again, on proceeding with any command, shutdown, reboot or logout, nothing really happens, it just closes the terminal in which I started syspower. that's it.

System64fumo commented 1 month ago

You have to detach the program so syspower & detach or bind it to a key in hyprland syspower closes all programs on shutdown/reboot/whatever so when it closes the terminal that it was started from it also closes itself Not really a bug more of a user error sorta thing, I could probably add a check for it to not kill the process it was started from but ehh...

LoneWolf4713 commented 1 month ago

yes man that works! thanks.