Comments (6)
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.
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.
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.
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.
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.
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)
- Can't open page context menu via keyboard
- Refactor Page and LayerPage
- [Snap] Cannot open files HOT 3
- Fix appstream metadata HOT 5
- Copy text, copy image to clipboard HOT 2
- Add White Borders HOT 2
- Python 3.8 installation instruction HOT 4
- Multiple file import - Order reversed HOT 9
- Image format is not supported by img2pdf for jpg HOT 23
- Panel where to see the selected page HOT 4
- Allow auto-reload of PDF file HOT 6
- shortcut for cutting white space HOT 3
- Allow drag n drop of pages into file manager HOT 3
- Continuous integration suggestions
- Github Action rpmbuild image need to be rebuild HOT 1
- Webp support on Windows
- Cannot install on ubuntu 22.04 HOT 2
- Wrong drop locations in a right-to-left locale HOT 8
- Export pages and save and delete pages HOT 1
- `--files_out` command line argument
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfarranger.