From 03a6e58ff8754567fc8b6daca10fe241935572ba Mon Sep 17 00:00:00 2001 From: B Stack Date: Fri, 3 Apr 2020 08:43:52 -0400 Subject: fix #4 fix rest of frontends for py3.8 distro --- src/usr/bin/logout-manager-gtk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/usr/bin/logout-manager-gtk') diff --git a/src/usr/bin/logout-manager-gtk b/src/usr/bin/logout-manager-gtk index 389ad70..400594d 100755 --- a/src/usr/bin/logout-manager-gtk +++ b/src/usr/bin/logout-manager-gtk @@ -25,10 +25,11 @@ # support global conf file, and user conf file # far future: provide graphical way to change commands run # Dependencies: -# Devuan: python3-dotenv +# dep-devuan: python3-dotenv # Documentation: import gi, os, platform, sys +from distro import linux_distribution gi.require_version("Gtk", "3.0") from gi.repository import Gtk from gi.repository import Gdk @@ -39,7 +40,7 @@ from dotenv import load_dotenv # all this to load the libpath try: defaultdir="/etc/sysconfig" - thisplatform = platform.platform().lower() + thisplatform = linux_distribution()[0].lower() if 'debian' in thisplatform or 'devuan' in thisplatform: defaultdir="/etc/default" # load_dotenv keeps existing environment variables as higher precedent @@ -49,6 +50,7 @@ except: if 'LOGOUT_MANAGER_LIBPATH' in os.environ: for i in os.environ['LOGOUT_MANAGER_LIBPATH'].split(":"): sys.path.append(i) +sys.path.append("/usr/share/logout-manager") import lmlib # graphical classes and functions -- cgit