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

Rofi error when trying to save object or style: None.rasi theme not found #22

Closed
dalbandea opened this issue Nov 17, 2020 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@dalbandea
Copy link

dalbandea commented Nov 17, 2020

Hi,

Thank you for your amazing project. I'm trying to save an object using the shortcut Shift+a, but when I select the object I want to save and press the shortcut, this message pops up:

The following errors were encountered when starting rofi:

Failed to open theme: /home/path/where/I'm/working/None.rasi

Error: **No such file or directory**

Edit: I just figured out that if I copy my .config/rofi/config.rasi file into the folder I'm working in and rename it to None.rasi it works, but it's a bit annoying if I have to do the same every time. Do you think I did something wrong? Or if there is some line I can tweak to work it around?

@dalbandea dalbandea changed the title Rofi error when trying to save object or style Rofi error when trying to save object or style: None.rasi theme not found Nov 17, 2020
@gillescastel gillescastel added the bug Something isn't working label Nov 18, 2020
@gillescastel
Copy link
Owner

Hi,

This is a bug. The default config sets 'rofi_theme' to None,

config = {
    # For example '~/.config/rofi/ribbon.rasi' or None
    'rofi_theme': None,
    # Font that's used to add text in inkscape
    'font': 'monospace',
    'font_size': 10,
    'open_editor': open_editor,
    'latex_document': latex_document,
}

but then later, instead of checking if rofi_theme is None, the script checks if rofi_theme exists. So the script thinks you've specified a rofi theme with name None.

You can fix this by specifying a path to a rofi theme in your ~/.config/inkscape-shortcut-manager/config.py:

config = {
    'rofi_theme': '~/.config/rofi/ribbon.rasi'
}

I will also fix the bug, but this should fix things right know. Let me know if it works!

@dalbandea
Copy link
Author

It works. Thank you a lot!

myh2910 pushed a commit to myh2910/inkscape-shortcut-manager that referenced this issue May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants