Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

betterlockscreen: make dunst optional #231714

Merged
merged 1 commit into from
May 17, 2023

Conversation

NobbZ
Copy link
Contributor

@NobbZ NobbZ commented May 13, 2023

Description of changes

When dunst is detected and awesomeWM is used (its internal notification system to be exact)
then betterlockscreen waits for dunst to reply on the DBus. Due to dunstctl being in PATH
through the wrapper, dunst will always be tried to reach.

None of the workarounds mentioned in the awesome and betterlockscreen repos do not work with
this version, as dunstctl is always called and has to time out first.

In the current master of BLS there is a change that makes BLS check and env-var first, and
would ignore any dunstctl in PATH.

Once the new release happened this could still be used to reduce the closure size.

Things done
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.05 Release Notes (or backporting 22.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

When dunst is detected *and* awesomeWM is used (its internal notification system to be exact)
then betterlockscreen waits for dunst to reply on the DBus. Due to dunstctl being in PATH
through the wrapper, dunst will always be tried to reach.

None of the workarounds mentioned in the awesome and betterlockscreen repos do not work with
this version, as dunstctl is always called and has to time out first.

In the current master of BLS there is a change that makes BLS check and env-var first, and
would ignore any dunstctl in PATH.

Once the new release happened this could still be used to reduce the closure size.
@ofborg ofborg bot requested review from eyJhb and SebTM May 13, 2023 19:11
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1 labels May 13, 2023
@NobbZ
Copy link
Contributor Author

NobbZ commented May 13, 2023

Result of nixpkgs-review pr 231714 run on x86_64-linux 1

1 package built:
  • betterlockscreen

@NobbZ
Copy link
Contributor Author

NobbZ commented May 13, 2023

Result of nixpkgs-review pr 231714 run on aarch64-linux 1

1 package built:
  • betterlockscreen

@geri1701
Copy link
Member

Result of nixpkgs-review pr 231714 run on x86_64-linux 1

1 package built:
  • betterlockscreen

Copy link
Member

@tomodachi94 tomodachi94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm.

@eyJhb
Copy link
Member

eyJhb commented May 15, 2023

lgtm :) Feel free to merge

@SebTM
Copy link
Contributor

SebTM commented May 16, 2023

If I find time, I will do a new release for Betterlockscreen soon but I'm also searching for a new maintainer as I'm fully switched to sway so I need to run a VM/install X-server to test.

@NobbZ
Copy link
Contributor Author

NobbZ commented May 16, 2023

I will probably not stay with BLS for long either.

I have found quicker solutions für blurring but I can't find a way to tell BLS to just use the image unchanged.

So I will probably end up implementing my own little wrapper for i3lock in the long term.

@NobbZ NobbZ merged commit 2981e3c into NixOS:master May 17, 2023
@NobbZ NobbZ deleted the betterlockscreen-without-dunst branch May 17, 2023 05:08
@NobbZ NobbZ restored the betterlockscreen-without-dunst branch May 21, 2023 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 1-10 10.rebuild-linux: 1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants