File: 02-icon-search-path.patch

package info (click to toggle)
tryton-client 7.0.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,464 kB
  • sloc: python: 26,992; sh: 37; makefile: 18
file content (14 lines) | stat: -rw-r--r-- 535 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Daniel Baumann <daniel@debian.org>, Mathias Behrle <mathiasb@m9s.biz>
Description: Adjust icon search path to policy conforming place.

--- a/tryton/config.py
+++ b/tryton/config.py
@@ -222,7 +222,7 @@
 if not isinstance(CURRENT_DIR, str):
     CURRENT_DIR = str(CURRENT_DIR, sys.getfilesystemencoding())
 
-PIXMAPS_DIR = os.path.join(CURRENT_DIR, 'data', 'pixmaps', 'tryton')
+PIXMAPS_DIR = os.path.join(sys.prefix, 'share', 'icons', 'tryton')
 if not os.path.isdir(PIXMAPS_DIR):
     try:
         import importlib.resources