Giter VIP home page Giter VIP logo

Comments (9)

tronje avatar tronje commented on September 28, 2024

Is there a specific reason you're trying to run radshift as root? Does it not work when you run it as your normal user?

from radshift.

jerzybrzoska avatar jerzybrzoska commented on September 28, 2024

Is there a specific reason you're trying to run radshift as root? Does it not work when you run it as your normal user?

No specific reason but I have to do it because when I don't do it I get from Bash:

/usr/bin/radshift: Permission denied

from radshift.

tronje avatar tronje commented on September 28, 2024

Ah, perhaps the permissions on the file are incorrect. What does ls -lh /usr/bin/radshift output?

Did you use sudo make install to install it?

from radshift.

jerzybrzoska avatar jerzybrzoska commented on September 28, 2024

I did use sudo because it was advised so in your README.

from radshift.

tronje avatar tronje commented on September 28, 2024

Yeah, to install to a system path like /usr/bin you usually need root permissions. What does ls -lh /usr/bin/radshift say?

from radshift.

jerzybrzoska avatar jerzybrzoska commented on September 28, 2024

Yeah, to install to a system path like /usr/bin you usually need root permissions. What does ls -lh /usr/bin/radshift say?

-rwx------ 1 root root 22K Feb 27 14:19 /usr/bin/radshift - that's permissions. Without sudo or doas I get install: cannot create regular file '/usr/bin/radshift': Permission denied make: *** [Makefile:70: install] Error 1 But what about RANDR Query Version' returned error -1? Is it an independent issue?

from radshift.

tronje avatar tronje commented on September 28, 2024

Yeah so with sudo or doas you'll be getting weird issues because you really shouldn't be interacting with an X session as root. I think the following should fix it:

sudo chmod 0755 /usr/bin/radshift

(or you can use doas instead of sudo, I think either should work)

Then, just run radshift as your regular user, without doas or sudo. Let me know if that works :)

from radshift.

jerzybrzoska avatar jerzybrzoska commented on September 28, 2024

Yeah so with sudo or doas you'll be getting weird issues because you really shouldn't be interacting with an X session as root. I think the following should fix it:

sudo chmod 0755 /usr/bin/radshift

(or you can use doas instead of sudo, I think either should work)

Then, just run radshift as your regular user, without doas or sudo. Let me know if that works :)

Yeah, it works fine when I run it as a normal user.
P.S. I'm concerned because 2000K does nor seem warm at all. I don't even see any difference. And I remember that 2000K seemed quite red and warm with redshift. But that is another issue perhaps...

from radshift.

tronje avatar tronje commented on September 28, 2024

I wrote this thing ages ago, so I'm not sure about that. I do remember that color conversion was taken mostly from redshift itself, so weird...

But yeah, that might be another issue. I'm closing this for now.

from radshift.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.