From 256cac690865c0bc9be1877af6af7081aecdd30a Mon Sep 17 00:00:00 2001 From: Gonzalo Bulnes Guilpain Date: Fri, 15 Oct 2021 13:10:18 +1100 Subject: [PATCH] Minor extract desktop entry file name to constant See https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s02.html --- securedrop_client/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/securedrop_client/app.py b/securedrop_client/app.py index d94db58fd2..f977111646 100644 --- a/securedrop_client/app.py +++ b/securedrop_client/app.py @@ -43,6 +43,7 @@ DEFAULT_LANGUAGE = LanguageCode("en") DEFAULT_SDC_HOME = "~/.securedrop_client" +DESKTOP_FILE_NAME = "org.freedomofthepress.securedrop.client" ENCODING = "utf-8" GETTEXT_DOMAIN = "messages" LOGLEVEL = os.environ.get("LOGLEVEL", "info").upper() @@ -206,7 +207,7 @@ def start_app(args, qt_args) -> None: app = QApplication(qt_args) app.setApplicationName(SDC_NAME) - app.setDesktopFileName("org.freedomofthepress.securedrop.client") + app.setDesktopFileName(DESKTOP_FILE_NAME) app.setApplicationVersion(__version__) app.setAttribute(Qt.AA_UseHighDpiPixmaps)