-
Notifications
You must be signed in to change notification settings - Fork 431
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
Hooks not running #850
Comments
My guess is that it is related to #672 but I don't how how to check that. |
It was indeed related to #672. I inspected the files To solve my issue I first created the correct setup for the Now everything runs as expected. Writing this down in case anyone else runs into the issue. First I checked whether apparmor was indeed preventing redshift from working how I envisioned. So I searched for |
Did adding
to |
@Konfekt That is indeed what I did. Should've written something similar to your explanation instead of my cumbersome explanation 👍 |
For anyone else seeing this in the future, the above addition was still not enough - at least, not to The full contents of my
|
Thank you @NeatNit. Wouldn't it be for the better to promote this to a pull request? |
From my POV, you are more than welcome to do that (though maybe you shouldn't, see below). As I said, I never heard of AppArmor before today so I don't feel comfortable making a PR like that without fully understanding the repercussions. Specifically, there are several different 'execute' permissions available in AppArmor and I didn't fully understand the pros and cons of each. However, see PR #864 and @CameronNemo's comment:
I might migrate to it myself. Only reason I'm using Redshift is that (I think) it came pre-installed with Linux Mint. |
Yes unfortunately no Debian Developer has stepped up to update gammastep since the initial few uploads. So looks like another stable Debian will be missing some important fixes that I released upstream. |
Is there a procedure for getting them to update it? Or help them out with it somehow? I don't think making comments on PRs will get any Debian maintainer's attention. |
@NeatNit I dunno I don't use or contribute to Debian. Just thought I would mention it since you are on Mint and thus will be getting the 2.0.2 version that is a couple years out of date. edit: this appears to be relevant https://www.debian.org/doc/manuals/developers-reference/pkgs.html#adopting-a-package |
@NeatNit : Thank you, I wasn't aware of #864 that has been opened in the meanwhile. |
Looks like one of you grabbed a Debian maintainer's attention: https://metadata.ftp-master.debian.org/changelogs//main/g/gammastep/gammastep_2.0.9-1_changelog
Note that this is in the The package's page is here: https://packages.debian.org/sid/gammastep The top right section has navigation between the different repositories - bullseye is stable, bookworm is testing, and sid is unstable. I'm not familiar with Debian's versioning scheme, package update policies, and whatnot. Edit: this seems to be a good introduction for me, and perhaps for you: https://www.debian.org/distrib/packages |
Yeah unfortunately I think we are post-freeze for the next stable, but at least it will trickle through eventually. |
I am on Mint and I got the workaround for the hooks problem to work. However, I am unsure that I understand the discussion, above, about versions. Are matters as follows?
Presuming that all or at least most of 1-4 are true, here are some questions. Q1) Despite 4, could at least Q2) Does Ubuntu have redshift or does it have gammastep (or both)? Q3) Should we try to get Mint, which ships redshift, to switch to gammastep? |
Ubuntu has had gammastep since 22.04 (https://packages.ubuntu.com/jammy/gammastep), but you want the updated version that is in lunar (23.04) or later. Mint should probably switch to gammastep for future releases, yeah. Edit: also appears that the new gammastep made it into bookworm (current testing, planned to be stable next month AFAIK). |
Yup, just to reiterate your edit, Debian Bookworm will soon™ be stable, and it already includes gammastep v2.0.9 (the most recent version). After that, it will eventually trickle down to Ubuntu (and Mint) in future releases. If they put v2.0.9 on Bullseye as well - that is, the Debian release which is currently stable - then it would trickle down to current releases of Ubuntu as well. I have no idea if or when this would happen. |
Describe the bug
Redshift does not trigger any hooks.
According to #335 hooks are now also running on startup, but when I run
redshift
my hooks do not run (from what I can tell).To Reproduce
Create an executable file
~/.config/redshift/hooks/test.sh
with content:Next I start redshift using
redshift
and I don't see the file being created.Expected behavior
The hook should run and create the given file.
Software versions (please complete the following information):
The text was updated successfully, but these errors were encountered: