Theme path has to be hardcoded
See original GitHub issueBug Report
Description
Affected module: core program Version used: 2.1.1
bumblebee-status crashes with theme not found :
Traceback (most recent call last):
File "/usr/bin/bumblebee-status", line 18, in <module>
import core.output
File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/output.py", line 134, in <module>
class i3(object):
File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/output.py", line 135, in i3
def __init__(self, theme=core.theme.Theme(), config=core.config.Config([])):
File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/theme.py", line 54, in __init__
self.__data = raw_data if raw_data else self.load(name)
File "/usr/lib64/python3.9/site-packages/bumblebee_status/core/theme.py", line 80, in load
raise RuntimeError("unable to find theme {}".format(name))
RuntimeError: unable to find theme default
How to reproduce
Packaging for slackware using
python3 setup.py install --root=$PKG
where evrything installs in tmp directory in $PKG/usr/{bin,doc,lib64,share}
And then
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
Fix for me is to code the full path for themes in /usr/lib64/python3.9/site-packages/bumblebee_status/core/theme.py
to /usr/share/bumblebee-status/themes
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
PowerPoint: applying built-in theme: path has to be hard-coded ...
I see currently in the Themes section 30 themes, but in template files folder there is only 8 thmx files. Why? I find...
Read more >Hardcoded path to theme images [#823986] | Drupal.org
I find a hardcoded path in page.tpl.php and node.tpl.php It should be changed like below: src="/images/PostHeaderIcon.png"> to work correct ...
Read more >9.0.2 Copied theme has hard-coded paths back to Sample theme
Copying a theme still leaves all elements in the copy pointing back to the sample theme. Assume you copy the Sample theme to...
Read more >46988 (Theme dir hardcode) - WordPress Trac
This is a problem when a user is using a custom theme directory and has deleted the themes directory in the content folder....
Read more >Theme File Path hardcoded in DB : r/Wordpress - Reddit
Yes, you'll need to find and replace the old path with the new path. It's annoying when themes/plugins do this, especially since there's...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you, it works as expected ! For know I’ve add the commit as a patch till next release.
Slackbuilds scripts tend to be very conservative and keep things as vanilla as possible, so no worry. I’ll let you know when it will be avaible at slackbuilds.org.
Thank you for your blazzing fast answer ! I’ll check that in a few hours !
I will then submit the SlackBuild to Slackbuilds.org 😃