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

keyboard-colors.json not found #23

Closed
grantfreese opened this issue Dec 4, 2019 · 2 comments · Fixed by #24
Closed

keyboard-colors.json not found #23

grantfreese opened this issue Dec 4, 2019 · 2 comments · Fixed by #24

Comments

@grantfreese
Copy link

Description:
The deb installer creates /etc/keyboard-color.json ('color' without an s), but the application appears to look for /etc/keyboard-colors.json ('color' with an s)

Environment:

  • PopOS 19.04
  • Cinnamon desktop
  • Deb install of 1.1.0-beta5

Error message:

gfreese@pop-os:~$ which keyboard-color
/usr/bin/keyboard-color
gfreese@pop-os:~$ sudo keyboard-color run
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'libX11' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibX11: cannot open shared object file: No such file or directory
   at keyboards.Installer.XOpenDisplay(String displayName)
   at keyboards.Installer.RootHasPermission()
   at keyboards.Program.GetFilters(IConfiguration configuration, Boolean dim, IControlContainer container)
   at keyboards.Program.GetKeyboard(IControlContainer container, IConfiguration configuration)
   at keyboards.Program.RunOrInstall(Options options)
   at keyboards.Program.<>c.<Main>b__7_2(RunOptions o)
   at CommandLine.ParserResultExtensions.MapResult[T1,T2,TResult](ParserResult`1 result, Func`2 parsedFunc1, Func`2 parsedFunc2, Func`2 notParsedFunc)
   at keyboards.Program.Main(String[] args)
Aborted
gfreese@pop-os:~$ 

Other notes:

  • Haven't tried building/running from source yet
  • Renaming keyboard-color.json to keyboard-colors.json results in a different error about being unable to load libX11 or one of its dependencies. (Probably a different issue, but that's a problem for tomorrow's me.)
@withinboredom
Copy link
Owner

libX11

Thanks, I probably need to add libX11 as a dependency to the .deb and ensure it's only needed when the setting is set to true.

creates /etc/keyboard-color.json ('color' without an s)

🤦‍♂️

@withinboredom
Copy link
Owner

I'm not sure the dim when screen off will work on Cinnamon, but you can find out with the following command:

for i in {1..100}; do xset q; date ; sleep 5; done

Then try turning off the screen by locking it. You're looking for

Monitor is Off

to be in the output.

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

Successfully merging a pull request may close this issue.

2 participants