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

[3.6] cinnamon-settings: themes doesn't function if ~/.themes/ isn't present #6972

Closed
leigh123linux opened this issue Nov 2, 2017 · 3 comments

Comments

@leigh123linux
Copy link
Contributor

 * Cinnamon version = 3.6.0
 * Distribution - Fedora 28
 * Graphics hardware *and* driver used

Graphics:  Card: NVIDIA GK106 [GeForce GTX 660]
           Display Server: x11 (X.org 119.5 )
           drivers: nvidia (unloaded: modesetting,fbdev,vesa,nouveau)
           Resolution: 3840x2160@60.00hz
           OpenGL: renderer: GeForce GTX 660/PCIe/SSE2
           version: 4.5.0 NVIDIA 387.22

 * 64 bit

Issue

cinnamon-settings theme fails to run if ~/.themes/ isn't present

Loading Themes module
Traceback (most recent call last):
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 553, in button_press
    self.side_view_nav(widget, None, category)
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 114, in side_view_nav
    self.go_to_sidepage(cat, filtered_path)
  File "/usr/share/cinnamon/cinnamon-settings/cinnamon-settings.py", line 128, in go_to_sidepage
    sidePage.build()
  File "/usr/share/cinnamon/cinnamon-settings/bin/SettingsWidgets.py", line 123, in build
    self.module.on_module_selected()
  File "/usr/share/cinnamon/cinnamon-settings/modules/cs_themes.py", line 31, in on_module_selected
    self.spices = Spice_Harvester('theme', self.window)
  File "/usr/share/cinnamon/cinnamon-settings/bin/Spices.py", line 163, in __init__
    self._load_metadata()
  File "/usr/share/cinnamon/cinnamon-settings/bin/Spices.py", line 371, in _load_metadata
    extensions = os.listdir(directory)
OSError: [Errno 2] No such file or directory: '/home/leigh/.themes/'

creating ~/.themes/ fixes the issue

Steps to reproduce

  1. rm -rf ~/.themes/
  2. cinnamon-settings themes
  3. crash

Expected behaviour

It shouldn't fail if ~/.themes/ isn't present

Other information

Life sucks.

@leigh123linux leigh123linux changed the title cinnamon-settings: theme doesn't function if ~/.themes/ isn't present cinnamon-settings: themes doesn't function if ~/.themes/ isn't present Nov 2, 2017
@leigh123linux leigh123linux changed the title cinnamon-settings: themes doesn't function if ~/.themes/ isn't present [3.6] cinnamon-settings: themes doesn't function if ~/.themes/ isn't present Nov 2, 2017
@shawnfromnh1
Copy link

Well the themes folder is present and my cinnamon desktop in Suse and Antergos both do NOT have working theme setting when the button is clicked. This is an active problem and needs a patch. You can easily verify it by installing the new cinnamon in anything but mint, Antergos is a quick install to try it out on. I opened the theme folder in etc/share/theme and all the themes were present in their folders so someone missed something during the upgrade or it may be a part in gnome that was upgraded that is causing the problem.

@NikoKrause
Copy link
Member

What's the output, when you try to open cinnamon-settings in the terminal?

@JosephMcc
Copy link
Contributor

This should have been fixed by 60faa20#diff-bf163328c4714f377ee4f92191154ccc

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

No branches or pull requests

4 participants