- Fix #234
This commit is contained in:
parent
e3a9d387c1
commit
0c165b31fc
2 changed files with 4 additions and 2 deletions
|
|
@ -27,6 +27,7 @@ from gi.repository import Gio, GdkPixbuf # nopep8
|
|||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class ImageGetter():
|
||||
"""Older attempt. Not advised as it can't manage anything but PNG. Loads to GDK Pixmap"""
|
||||
|
||||
|
|
@ -99,7 +100,7 @@ class SurfaceGetter():
|
|||
log.error("Unknown image type")
|
||||
|
||||
def get_file(self):
|
||||
locations = [os.path.expanduser('~/.local/'), '/usr/', '/']
|
||||
locations = [os.path.expanduser('~/.local/'), '/usr/', '/app']
|
||||
for prefix in locations:
|
||||
mixpath = os.path.join(prefix, self.url)
|
||||
image = None
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ from gi.repository import Pango, PangoCairo # nopep8
|
|||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class VoiceOverlayWindow(OverlayWindow):
|
||||
"""Overlay window for voice"""
|
||||
|
||||
|
|
@ -63,7 +64,7 @@ class VoiceOverlayWindow(OverlayWindow):
|
|||
self.guild_ids = tuple()
|
||||
self.force_location()
|
||||
get_surface(self.recv_avatar,
|
||||
"share/icons//hicolor/256x256/apps/discover-overlay-default.png",
|
||||
"share/icons/hicolor/256x256/apps/discover-overlay-default.png",
|
||||
'def', self.avatar_size)
|
||||
self.set_title("Discover Voice")
|
||||
self.redraw()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue