Skip to content
\n

But I have two problem, the first one is that to use switch-to-configuration, I need sudo access, and ags doesn't have them. I call the widget with a hyprland binding and thus the command ags -t widget and it's impossible to put a sudo there due to hyprland system.
\nMy second problem is that the call hyprpanel which is a wrapper for ags widget, is attached to the environment and thus the widget freeze because of non returning call.
\nDo you know how I can solve both issue ?

","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"
    \n
  1. maybe you could use polkit? pkexec
  2. \n
  3. don't use exec, it will block the eventloop until it returns, use execAsync
  4. \n
","upvoteCount":1,"url":"https://github.com/Aylur/ags/discussions/608#discussioncomment-11192869"}}}

Command with root permission #608

Answered by Aylur
noahfraiture asked this question in Q&A
Discussion options

You must be logged in to vote
  1. maybe you could use polkit? pkexec
  2. don't use exec, it will block the eventloop until it returns, use execAsync

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@noahfraiture
Comment options

@Aylur
Comment options

Aylur Nov 8, 2024
Maintainer

@noahfraiture
Comment options

@Jas-SinghFSU
Comment options

@noahfraiture
Comment options

Answer selected by noahfraiture
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants