Skip to content

Commit

Permalink
Minor extract desktop entry file name to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalo-bulnes committed Oct 15, 2021
1 parent 27a063e commit 256cac6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion securedrop_client/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 256cac6

Please sign in to comment.