Skip to content

Commit

Permalink
Fix generic window icon on Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Parnassius authored and m3nu committed Sep 6, 2024
1 parent 55822ab commit 00fa34a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vorta/views/main_window.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import sys
from pathlib import Path

from PyQt6 import QtCore, uic
Expand Down Expand Up @@ -47,6 +48,8 @@ def __init__(self, parent=None):
self.setWindowTitle('Vorta for Borg Backup')
self.app = parent
self.setWindowIcon(get_colored_icon("icon"))
if sys.platform.startswith('linux'):
self.app.setDesktopFileName('com.borgbase.Vorta')
self.setWindowFlags(QtCore.Qt.WindowType.WindowCloseButtonHint | QtCore.Qt.WindowType.WindowMinimizeButtonHint)
self.createStartBtn = LoadingButton(self.tr("Start Backup"))
self.gridLayout.addWidget(self.createStartBtn, 0, 0, 1, 1)
Expand Down

0 comments on commit 00fa34a

Please sign in to comment.