RémyClaverie
RémyClaverie

Reputation: 47

Folder-color extension for nemo

I've just move from Ubuntu Budgie 22.04 to 24.04 and I try to install folder-color. It is an amazing extension, very useful. I use Nemo as file browser. I followed the installation procedure of the ppa repository with success. But I have the following error when using the nemo -q command:

Traceback (most recent call last):
  File "/usr/share/nemo-python/extensions/folder-color.py", line 16, in <module>
    gi.require_version("Gtk", "4.0")
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 113, in require_version
    raise ValueError('Namespace %s is already loaded with version %s' %
ValueError: Namespace Gtk is already loaded with version 3.0

folder-color requires Gtk and Gdk 4.0. But it seems that nemo is using gtk3. The command $ lsof -p 12556 | grep Gtk gives me the involved library used by nemo (12556 is the process number of nemo):

nemo    12556 claverie  mem       REG              259,2   679424  2247610 /usr/lib/x86_64-linux-gnu/girepository-1.0/Gtk-3.0.typelib

I don't see how to solve this problem. Can I switch to a new version of girepository or use a Gtk3 version of folder-color ?

Thanks a lot!!

Upvotes: 0

Views: 88

Answers (1)

Costales
Costales

Reputation: 2873

I think Ubuntu 24.04 is using GTK4, I didn't know Ubuntu Budgie is using GTK3, but it's an issue for me to distribute in different packages in the same repository for this difference (Maybe someone could help).

Could you check this? Sorry for Google Drive, I don't want to upload this kind of tests to Github.

Best regards and thank you for the feedback!

Update:

To recovery previous folders is because the package folder-color-common is not available anymore in the new version (deprecated), to recovery their icons copy from this archive the path: /common/icons/hicolor/ into /usr/share/icons/hicolor/ That should fix the issue.

Upvotes: 0

Related Questions