maoserr / redshiftgui

Monitor color temperature adjustment tool
http://maoserr.github.io/projects/redshiftgui/
GNU General Public License v3.0
232 stars 28 forks source link

Error on Launch: % 09:28 PM:[_parse_options] Invalid/empty config: /home/$USER/.redshiftgrc #18

Closed stef204 closed 1 year ago

stef204 commented 8 years ago

Just installed this package on Linux 4.7.2 x86_64.

When no $HOME/.redshiftgrc is present, I can start program and then configure it, as to location, etc., and then save. At that point, all is fine.

However, if I then kill it, next start gives following error, every time, no matter what IF there is a .redshiftgrc present:

% redshiftgui --min &!
% 09:47 PM:[opt_parse_map] Map empty.

The only way to temporarily fix is to delete .redshiftgrc and redshiftgui starts again.

Permissions on .redshiftgrc are 600, but I tried to loosen this up to 644, etc., no change.

Am I doing something wrong or is this a bug?

steanne commented 7 years ago

i figured this out a few years ago, but haven't the skill to do anything other than work around it. it's writing an rc file it can't read. generate it through the gui, then edit it manually to fix the wrong characters and never edit it through the gui again.

stef204 commented 7 years ago

Thanks for the info. I figured out back then I had to create and edit the rc file manually which I did. And it's been running fine ever since. This bug should be fixed though, it sounds like something trivial.

kmvan commented 3 years ago

how about chown root:root ./.redshiftgrc ?

steanne commented 3 years ago

no, this is not a permisisons error. it's a problem with the actual file content.

kmvan commented 3 years ago

no, this is not a permisisons error. it's a problem with the actual file content.

Change permissions after fixed content?

steanne commented 3 years ago

no. this is not a permissions error.

kmvan commented 3 years ago

I know, but this will prevent it from being written.

steanne commented 3 years ago

i would suggest making the file immutable with chattr if you want to keep it from being overwritten.