Giter Club home page Giter Club logo

Comments (6)

jeromerobert avatar jeromerobert commented on June 7, 2024

Where did you installed ? /usr/local ? $HOME/.local ? virtualenv ?

Meld is also using the share/appname/icons folder (see https://gitlab.gnome.org/GNOME/meld/blob/master/setup.py) so I would assume this is correct. Where does other GTK apps install icons on Fedora 28 (when using yum or rpm) ?

from pdfarranger.

jeromerobert avatar jeromerobert commented on June 7, 2024

Arch Linux install to share/icons as you suggest (see https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=pdfshuffler-git#n36. https://sourceforge.net/p/pdfshuffler/bugs/37 and https://developer.gnome.org/integration-guide/stable also says that it should go to share/icons.

But as far as I understand the current code should work. This patch should help to understand why it does not.

--- a/pdfarranger/pdfarranger.py
+++ b/pdfarranger/pdfarranger.py
@@ -126,7 +126,9 @@ class PdfShuffler:
         iconsdir = os.path.join(sharedir, DOMAIN, 'icons')
         if not os.path.exists(iconsdir):
             iconsdir = os.path.join(sharedir, 'data')
+        print("Search path before: ", Gtk.IconTheme.get_default().get_search_path())
         Gtk.IconTheme.get_default().append_search_path(iconsdir)
+        print("Search path after: ", Gtk.IconTheme.get_default().get_search_path())
         Gtk.Window.set_default_icon_name(DOMAIN)
 
         # Import the user interface file, trying different possible locations

Once we'll have understood what's going I'll apply your patch.

from pdfarranger.

dreua avatar dreua commented on June 7, 2024

I installed to $HOME/.local via pip3 install --user . from within the pdfarranger root directory. I can try your patch but the icon is also missing in Gnome's Applications menu, which can not be affected by this python code.

from pdfarranger.

dreua avatar dreua commented on June 7, 2024
Search path before: 
['/home/da/.local/share/icons',
 '/home/da/.icons',
 '/home/da/.local/share/flatpak/exports/share/icons',
 '/var/lib/flatpak/exports/share/icons',
 '/usr/local/share/icons',
 '/usr/share/icons',
 '/home/da/.local/share/flatpak/exports/share/pixmaps',
 '/var/lib/flatpak/exports/share/pixmaps',
 '/usr/local/share/pixmaps',
 '/usr/share/pixmaps']
Search path after: 
['/home/da/.local/share/icons',
 '/home/da/.icons',
 '/home/da/.local/share/flatpak/exports/share/icons',
 '/var/lib/flatpak/exports/share/icons',
 '/usr/local/share/icons',
 '/usr/share/icons',
 '/home/da/.local/share/flatpak/exports/share/pixmaps',
 '/var/lib/flatpak/exports/share/pixmaps',
 '/usr/local/share/pixmaps',
 '/usr/share/pixmaps',
 '/home/da/.local/share/pdfarranger/icons']

from pdfarranger.

jeromerobert avatar jeromerobert commented on June 7, 2024

I can try your patch but the icon is also missing in Gnome's Applications menu

Ok, it's missing on Debian / XFCE too ! I though you were talking about the window icon, not the menu icon. I'm going to fix this.

from pdfarranger.

dreua avatar dreua commented on June 7, 2024

Actually I was talking about both, the Window and the Menu icon. But for me both are fixed with the path changes in my branch.

from pdfarranger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.