Skip to content
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

Regressions with de/wm and theme #18

Closed
IndrekHaav opened this issue Nov 22, 2021 · 10 comments
Closed

Regressions with de/wm and theme #18

IndrekHaav opened this issue Nov 22, 2021 · 10 comments

Comments

@IndrekHaav
Copy link
Contributor

IndrekHaav commented Nov 22, 2021

Some recent commit introduced an error under WSL2:

de/wm ~ de/wm ~ xprop:  unable to open display ''

Presumably the same can happen on other headless systems.

The label is also shown twice, because of line 47.

On a RPi4 running Ubuntu 20.04, xprop isn't found:

de/wm ~ de/wm ~ ./fetch.sh: line 48: xprop: command not found

Also, the "theme" label is indented, and under WSL2 also prints the path to gsettings:

 theme ~ /usr/bin/gsettings
'Adwaita'

Maybe instead of command -v gsettings, run which gsettings and test its return code?

@IndrekHaav
Copy link
Contributor Author

Some of these might be duplicates of #16 and #17, sorry, didn't see those before posting this.

@wick3dr0se
Copy link
Owner

wick3dr0se commented Nov 22, 2021

Can you run it again? I'm working on that right now and just made 3 commits. Post full output so I can see whats going on easier

@IndrekHaav
Copy link
Contributor Author

Now under WSL2 getting this:

de/wm ~ /usr/bin/xprop
xprop:  unable to open display ''

Same suggestion as with gsettings - test with which instead of command?

@wick3dr0se
Copy link
Owner

wick3dr0se commented Nov 22, 2021

It should work now. I accidentally left out the square brackets surrounding xprop and gsettings, if not I will attempt with which next

wick3dr0se added a commit that referenced this issue Nov 24, 2021
@wick3dr0se
Copy link
Owner

This should be fixed with -z $DISPLAY on commit 433c555. Please pull latest commit and test so we can get this issue closed!

@IndrekHaav
Copy link
Contributor Author

On a RPi4 running Ubuntu 20.04, I get:

theme ~ ./components/de-wm_theme.sh: line 20: gsettings: command not found

In Debian 10 under WSL2, I get:

theme ~ No schemas installed

Not sure if this is a bug or intended.

Also, the "theme" row is still indented.

@wick3dr0se
Copy link
Owner

That should have fixed your issue with gsettings output. The issue is likely that you have no theme at all but the path shouldn't output at all because it's irrelevant info. No schemas installed likely prints from xprop and I would consider it a good output to keep, if that fails next it will echo not found. Theme row is hard indented on purpose, de/wm should output not found or your theme name and theme should be in same row indented to the side

@wick3dr0se wick3dr0se reopened this Nov 24, 2021
@IndrekHaav
Copy link
Contributor Author

I'll make a PR for the newline/indendation issue, seems like a really simple fix.

@wick3dr0se
Copy link
Owner

I'll close this as solved then! Thanks alot!

@GavinRay97
Copy link

Just as a random note + thank-you, your comment @IndrekHaav was the only Google result when searching for an error that broke my WSL2 distro after trying to do-release-upgrade.

If it wasn't for this issue pointing towards gsettings, I don't think I would have been able to fix it. So thank you 😃

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants