-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Patched bsync-gui to tell libappindicator to look for the icon inside the appimage and not only in the system theme directories - This closes #4 - Hopefully the patch can be removed when btsync-gui upstream adopts the related pull request - Readme file had been updated to indicate Ubuntu 14.10 is now considered to be fully tested
- Loading branch information
Showing
3 changed files
with
48 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
diff --git a/btsync-gui/trayindicator.py b/btsync-gui/trayindicator.py | ||
index a205cee..e29a0bd 100644 | ||
--- a/btsync-gui/trayindicator.py | ||
+++ b/btsync-gui/trayindicator.py | ||
@@ -22,6 +22,9 @@ | ||
# | ||
|
||
import logging | ||
+from os import environ | ||
+from os.path import join as path_join | ||
+from os.path import isdir | ||
|
||
from gi.repository import Gtk, GObject | ||
|
||
@@ -47,6 +50,15 @@ class TrayIndicator: | ||
icon_name, | ||
AppIndicator.IndicatorCategory.APPLICATION_STATUS | ||
) | ||
+ # Try to make AppIndicator respect weird paths in XDG_DATA_DIRS | ||
+ for p in environ.get('XDG_DATA_DIRS','').split(':'): | ||
+ if p in ('/usr/share', '/usr/local/share'): | ||
+ continue | ||
+ ip = path_join(p, 'icons') | ||
+ if not isdir(ip): | ||
+ continue | ||
+ self.indicator.set_icon_theme_path(ip) | ||
+ break | ||
if attention_icon_name is None: | ||
self.indicator.set_attention_icon(icon_name) | ||
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters