Skip to content

Commit

Permalink
Add correct icon for notifications on Linux. By @Hofer-Julian
Browse files Browse the repository at this point in the history
  • Loading branch information
Hofer-Julian authored Aug 11, 2020
1 parent 3d7d97f commit 6c7e338
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 22 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ flatpak-install: translations-to-qm
pip3 install --prefix=/app --no-deps .
install -D src/vorta/assets/metadata/com.borgbase.Vorta.appdata.xml /app/share/metainfo/com.borgbase.Vorta.appdata.xml
install -D package/icon.svg /app/share/icons/hicolor/scalable/apps/com.borgbase.Vorta.svg
install -D package/icon-symbolic.svg /app/share/icons/hicolor/symbolic/apps/com.borgbase.Vorta-symbolic.svg
install -D src/vorta/assets/metadata/com.borgbase.Vorta.desktop /app/share/applications/com.borgbase.Vorta.desktop

help:
Expand Down
54 changes: 54 additions & 0 deletions package/icon-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 5 additions & 21 deletions package/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/vorta/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _dbus_notify(self, header, msg, level='info'):
v = QtCore.QVariant(12321) # random int to identify all notifications
if v.convert(QtCore.QVariant.UInt):
id_replace = v
icon = ""
icon = "com.borgbase.Vorta-symbolic"
title = header
text = msg
actions_list = QtDBus.QDBusArgument([], QtCore.QMetaType.QStringList)
Expand Down

0 comments on commit 6c7e338

Please sign in to comment.