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

App fails to start if only a config file is present #536

Open
raddessi opened this issue Aug 24, 2023 · 2 comments
Open

App fails to start if only a config file is present #536

raddessi opened this issue Aug 24, 2023 · 2 comments
Labels

Comments

@raddessi
Copy link

Describe the bug
I'm not sure if you want to support this, but I manage my config file between hosts and have safeeyes installed and the config dropped even before I log in for the first time. Would be useful for me if it started up with only the config file present but I understand if it's an edge case. Thank you for the great app I and my eyes love it!

To Reproduce
Steps to reproduce the behavior:

  1. rm -Rf ~/.config/safeeyes
  2. touch ~/.config/safeeyes/safeeyes.json
  3. python -m safeeyes from git

Expected behavior
The app should load and provide the rest of the css, etc

Desktop (please complete the following information):

  • OS: Fedora-38
  • Desktop Env: Cinnamon
  • Version: master

Debug Log
I do believe this is all you need

zsh ❯ python -m safeeyes
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/raddessi/dev/SafeEyes/safeeyes/__main__.py", line 158, in <module>
    main()
  File "/home/raddessi/dev/SafeEyes/safeeyes/__main__.py", line 150, in main
    safe_eyes = SafeEyes(system_locale, config)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/raddessi/dev/SafeEyes/safeeyes/safeeyes.py", line 84, in __init__
    self.break_screen = BreakScreen(
                        ^^^^^^^^^^^^
  File "/home/raddessi/dev/SafeEyes/safeeyes/ui/break_screen.py", line 61, in __init__
    css_provider.load_from_path(style_sheet_path)
gi.repository.GLib.GError: gtk-css-provider-error-quark: <broken file>:1:0Failed to import: Error opening file /home/raddessi/.config/safeeyes/style/safeeyes_style.css: No such file or directory (2)

Screenshots
If applicable, add screenshots to help explain your problem.

@raddessi raddessi added the bug label Aug 24, 2023
@AdamPS AdamPS added feature and removed bug labels Nov 29, 2023
@AdamPS
Copy link
Collaborator

AdamPS commented Nov 29, 2023

Sure, it's something we could add support for however not really a bug

@raddessi
Copy link
Author

Fair enough! I'll try to send up a PR at some point. Thank you

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

No branches or pull requests

2 participants