-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
"More settings" doesn't work since last update #9
Comments
This is a permissions problem created by the Chocolatey package. Redshift Tray is portable by itself and needs to be able to write rstray.ini to its own folder. Currently, with a Chocolatey installation, it has no permissions to do that. This will render all settings of Redshift Tray useless (i.e. they will be reset on every start). Chocolatey is not supported by me, please contact the creator of the package. Also, this package removes redshift.exe, so Redshift Tray will do nothing. |
I (hope I) have notified the creator of the package. |
I don't see how the previous version (1.7.x) could have worked via Chocolatey, either: although it did include redshift.exe (so the gamma adjustments would have worked), none of the settings could have been saved. @dimqua are you still managing the Chocolatey package? |
Thanks, knowing it was a permission problem, I was able to resolve the issue by starting rstray as administrator. I do need to restart it as administrator every time I want to change settings, but it reads them fine without admin access (I could edit settings without admin access in 1.7.x). I do have a redshift.exe coming from the redshift chocolatey package, so the gamma adjustment works. |
Strange, It didn't work for me in a virtual machine. Either with or without the "Run as administrator" option set, no rstray.ini was created. |
No response from @dimqua so far... |
@dimqua I've sent you another message, please respond. You're breaking Redshift Tray with your Chocolatey package, I'd like to resolve this. |
@ltguillaume sorry for the delay. I can't reproduce:
When I change settings and restart the program, all my changes persist. |
@dimqua That's only the case if you run rstray.exe as Administrator. Run the command "rstray" from a non-elevated Command Prompt and you'll see what I mean. |
@ltguillaume not sure if this can be fixed, since Chocolatey rules do not allow to use admin rights for portable packages, at least this is what the support team told me. |
@dimqua That would be ridiculous. They keep talking about portable applications and how they should work as Chocolatey packages and in the end, it doesn't? Then please take RSTray off of Chocolatey, because it doesn't work properly and will only annoy people. |
@dimqua For clarification: RSTray does NOT need administrative rights to run. The only problem is that Chocolatey (or your packaging) places it in a folder that can only be written to if the program is run as administrator. If Chocolatey has some other folder RSTray can be put into that doesn't need these permissions, then it'll run fine. If it doesn't, then that's the strangest design fault I've seen in a while. |
It did work in 1.7.x... Did the rstray.ini use to be in the user folder before, but got moved to the rstray.exe folder? |
That's impossible unless Chocolatey has changed its behavior since. You probably just ran RSTray as administrator the first time, so it created rstray.ini. But it won't save any changed settings if you run RSTray without admin privileges, even after rstray.ini has been created. No settings-related behavior has changed in RSTray since 1.7.x |
It seems I've found a solution. Could you please test the latest version? |
No, that doesn't work:
|
|
Thought I fixed it, not true... Chocolatey is awful, both in architecture and documentation. Yuck. |
Yes, the shim from
Yes, for example, (I've re-uploaded the package to make it uninstall correctly.) |
Hmz, I didn't think that'd work (it shouldn't, really), but it's possible that I didn't get redshift.exe to run, simply because I tested in avirtual machine. Cool, then I guess it's fixed! I just tested it, seems to be working fine now, including uninstall. Thx! |
@dimqua Would you be so kind to update the Chocolatey repo to v1.9.3? A couple of versions ago I added your repo to README.md :-) |
I think this issue reappeared again? chocolatey installs |
|
@dimqua Can you help out? |
AM sorry if i missed anything in conversation but will give you default path of rstray.ini when installs it using chocolatey. |
@High-Flyer Yeah but this isn't how it's supposed to work, that's for sure. |
After update yesterday I get an error message "Failed attempt to launch program or document" rstray.ini every time I try to open "more settings".
Can you give me a default rstray.ini and tell me where to put it?
(I have installed rstray using chocolatey)
The text was updated successfully, but these errors were encountered: