MeanEYE / Sunflower

Small and highly customizable twin-panel file manager for Linux with support for plugins.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showing a main.css error on Void Linux

reback00 opened this issue · comments

Continuation from #453 . There is a message showing when I start sunflower on Void Linux:

$ sunflower
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sunflower/__main__.py", line 163, in do_activate
    self.window = MainWindow(
  File "/usr/lib/python3.8/site-packages/sunflower/gui/main_window.py", line 85, in __init__
    self._load_styles()
  File "/usr/lib/python3.8/site-packages/sunflower/gui/main_window.py", line 928, in _load_styles
    provider.load_from_file(Gio.File.new_for_path(file_name))
gi.repository.GLib.Error: gtk-css-provider-error-quark: <broken file>:1:0Failed to import: Error opening file /bin/styles/main.css: No such file or directory (2)

I'm trying with this template:

# Template file for 'sunflower'
pkgname=sunflower
version=0.4
revision=1
_version_append_revision="-62"
wrksrc="Sunflower-${version}${_version_append_revision}"
build_style=python3-module
make_install_args="--optimize=1 --skip-build"
hostmakedepends="libnotify python3-setuptools python3-gobject gtk+3-devel python3-chardet"
makedepends="vte3-devel"
depends="gtk+3 vte3 python3-gobject python3-chardet librsvg"
short_desc="Small, customizable dual-panel file manager with support for plugins"
maintainer="reback00 <reback00@protonmail.com>"
license="GPL-3.0-or-later"
homepage="https://sunflower-fm.org"
distfiles="https://github.com/MeanEYE/Sunflower/archive/${version}${_version_append_revision}.tar.gz"
checksum=76f6e16a8e2761a13cfde56c5ee3625afd7e7286942ef75d67eca65384214b14
python_version=3

It builds through setup.py using this file. But the path to main.css seems not be detected correctly on Void Linux.

EDIT: @tuxliban has confirmed that the issue exists. He has buildlog attached if that helps.

I tried the template today. And surprizingly enough the main.css error message is gone! Well, I've got no idea (as before) how the main.css error is not showing anymore. It has changed into this message now (please ignore the Gtk-WARNING message, it's related to the icon theme I'm using):

$ sunflower

(Sunflower:5585): Gtk-WARNING **: 03:29:38.365: Theme directory 48/mimetypes of theme Qogir has no size field

Warning: Unknown plugin class "FileList". Tab skipped!
Warning: Unknown plugin class "FileList". Tab skipped!
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/sunflower/__main__.py", line 169, in do_activate
    self.window.create_tabs(self.arguments)
  File "/usr/lib/python3.8/site-packages/sunflower/gui/main_window.py", line 1420, in create_tabs
    DefaultList = self.plugin_classes['file_list']
KeyError: 'file_list'

The template is using 0.4-62 release archive. Also seeing empty panels and empty menu:

sunflower-01

Empty panels are a result of an error occurring inside of file_list plugin. Hence unknown plugin class message.

I see. Is there any way this can be patched/fixed on 0.4-62?

We need to see what the error is first. Whatever caused issue for FileList not to load needs to be fixed first. It's not a CSS issue.