-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: accent color support for the progress bar #34
Conversation
a5a2009
to
b2e9c49
Compare
…ractive progress mode
3d04f4d
to
fd526ee
Compare
Everything should be rebased now, I believe you can just merge this one and BAM its all merged at once. - We should just close the other issues and thats it |
@@ -107,12 +67,27 @@ func NewProgressWriter() progress.Writer { | |||
} | |||
|
|||
if targetUser != 0 { | |||
cli := []string{"gsettings", "get", "org.gnome.desktop.interface", "accent-color"} | |||
cli := []string{"busctl", "--user", "--json=short", "call", "org.freedesktop.portal.Desktop", "/org/freedesktop/portal/desktop", "org.freedesktop.portal.Settings", "ReadOne", "ss", "org.freedesktop.appearance", "accent-color"} | |||
out, err := RunUID(targetUser, cli, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should check the error of the cmd before unmarshalling no? Either way it works but I might just check the error here to be sure. Better safe than sorry
Depends: #33
Adds the BLINGEST bling you've ever seen. WITH fallbacks, so it should be completely fine!