Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: dnkl on 05 February 2020, 12:03:14

Title: swayidle 1.6 - no "before-sleep" support
Post by: dnkl on 05 February 2020, 12:03:14
With swayidle-1.6 I'm now getting: "before-sleep not supported: swayidle was compiled with neither systemd not elogind support".

I'm guessing this isn't intentional?
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: ndowens on 05 February 2020, 13:15:01
I am using it and I don’t get no error. You can look at my sway config and see how mine is. https://GitHub.com/ndowens/sway_wm I am also using that version
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: dnkl on 05 February 2020, 13:31:01
Are you using the artix package from Galaxy, or the one from the arch 'community' (or compiled from source)?
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: ndowens on 05 February 2020, 16:53:45
Are you using the artix package from Galaxy, or the one from the arch 'community' (or compiled from source)?
Hmm I believe I installed galaxy
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: dnkl on 05 February 2020, 17:04:17
Well, I checked the sources, and this particular error message is only emitted inside an #ifdef: https://github.com/swaywm/swayidle/blob/d423eed84f5a62c6d82a7013a37810045fd35314/main.c#L464

I.e there's an issue with how the latest version of swayidle (1.6-1) in galaxy was compiled.
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: ndowens on 05 February 2020, 17:10:22
Funny thing for me it says both are installed galaxy and community
Well, I checked the sources, and this particular error message is only emitted inside an #ifdef: https://github.com/swaywm/swayidle/blob/d423eed84f5a62c6d82a7013a37810045fd35314/main.c#L464

I.e there's an issue with how the latest version of swayidle (1.6-1) in galaxy was compiled.
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: dnkl on 05 February 2020, 17:27:50
Pacman -Ss will tag both variants as installed. Pacman -Qi should tell you which one it really is.
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: Dudemanguy on 05 February 2020, 17:48:34
I see the issue. This needs to have elogind as a make dependency. Thanks for reporting this.
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: dnkl on 05 February 2020, 17:54:55
I see the issue. This needs to have elogind as a make dependency. Thanks for reporting this.
Great! Thanks!
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: Dudemanguy on 05 February 2020, 18:05:33
Just pushed a new version to galaxy, so you should be able to get it on the next mirror sync.
Title: Re: swayidle 1.6 - no "before-sleep" support
Post by: dnkl on 06 February 2020, 09:13:24
Works great. Thanks for the super quick fix!