Skip to content

Commit

Permalink
QT_QPA_PLATFORMTHEME gnome
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed Dec 1, 2023
1 parent 3a41b9b commit 1003660
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 35 deletions.
17 changes: 12 additions & 5 deletions Nagstamon/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@
else:
DESKTOP_NEEDS_FIX = False

# use QT platform plugins if not set otherwise on GNOME desktop
# based on QGnomePlatform
if not os.environ.get('QT_QPA_PLATFORMTHEME'):
if os.environ.get('XDG_SESSION_DESKTOP'):
if os.environ['XDG_SESSION_DESKTOP'].lower() == 'gnome':
os.environ['QT_QPA_PLATFORMTHEME'] = 'gnome'

# queue.Queue() needs threading module which might be not such a good idea to be used
# because QThread is already in use
# maybe not the most logical place here to be defined but at least all
Expand Down Expand Up @@ -124,7 +131,7 @@ class AppInfo(object):
contains app information previously located in GUI.py
"""
NAME = 'Nagstamon'
VERSION = '3.13-20231130'
VERSION = '3.13-20231201'
WEBSITE = 'https://nagstamon.de'
COPYRIGHT = '©2008-2023 Henri Wahl et al.'
COMMENTS = 'Nagios status monitor for your desktop'
Expand Down Expand Up @@ -754,14 +761,14 @@ def _DefaultActions(self):
"""
if OS == OS_WINDOWS:
defaultactions = {"RDP": Action(name="RDP", description="Connect via RDP.",
type="command", string="C:\windows\system32\mstsc.exe /v:$ADDRESS$"),
type="command", string="C:/windows/system32/mstsc.exe /v:$ADDRESS$"),
"VNC": Action(name="VNC", description="Connect via VNC.",
type="command", string="C:\Program Files\TightVNC\vncviewer.exe $ADDRESS$"),
type="command", string="C:/Program Files/TightVNC/vncviewer.exe $ADDRESS$"),
"Telnet": Action(name="Telnet", description="Connect via Telnet.",
type="command", string="C:\Windows\System32\Telnet.exe root@$ADDRESS$"),
type="command", string="C:/Windows/System32\telnet.exe root@$ADDRESS$"),
"SSH": Action(name="SSH", description="Connect via SSH.",
type="command",
string="C:\Program Files\PuTTY\putty.exe -l root $ADDRESS$")}
string="C:/Program Files/PuTTY/putty.exe -l root $ADDRESS$")}
elif OS == OS_MACOS:
defaultactions = {"RDP": Action(name="RDP", description="Connect via RDP.",
type="command", string="open rdp://$ADDRESS$"),
Expand Down
4 changes: 2 additions & 2 deletions build/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nagstamon (3.13-20231130) unstable; urgency=low
nagstamon (3.13-20231201) unstable; urgency=low
* New upstream

-- Henri Wahl <[email protected]> Thu, Nov 30 2023 08:00:00 +0200
-- Henri Wahl <[email protected]> Fri, Dec 01 2023 08:00:00 +0200

nagstamon (3.12.0) stable; urgency=low
* New upstream
Expand Down
28 changes: 0 additions & 28 deletions build/docker/Dockerfile-fedora-35

This file was deleted.

2 changes: 2 additions & 0 deletions build/docker/Dockerfile-fedora-36
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM fedora:36
LABEL [email protected]

RUN dnf -y upgrade

RUN dnf -y install createrepo_c \
desktop-file-utils \
git \
Expand Down

0 comments on commit 1003660

Please sign in to comment.