Skip to content

Commit

Permalink
Assign the STATE_FILE var before it is accessed in arch-update-tray.p…
Browse files Browse the repository at this point in the history
  • Loading branch information
Antiz96 authored Jun 20, 2024
1 parent dc092f5 commit 3460538
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions po/arch-update.pot
Original file line number Diff line number Diff line change
Expand Up @@ -463,10 +463,10 @@ msgstr ""
msgid "The '${config_file}' configuration file has been generated"
msgstr ""

#: src/script/arch-update-tray.py:117
#: src/script/arch-update-tray.py:118
msgid "Run Arch-Update"
msgstr ""

#: src/script/arch-update-tray.py:118
#: src/script/arch-update-tray.py:119
msgid "Exit"
msgstr ""
4 changes: 2 additions & 2 deletions po/fr.po
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ msgstr ""
msgid "The '${config_file}' configuration file has been generated"
msgstr "Le fichier de configuration '${config_file}' a été généré"

#: src/script/arch-update-tray.py:117
#: src/script/arch-update-tray.py:118
msgid "Run Arch-Update"
msgstr "Lancer Arch-Update"

#: src/script/arch-update-tray.py:118
#: src/script/arch-update-tray.py:119
msgid "Exit"
msgstr "Quitter"
1 change: 1 addition & 0 deletions src/script/arch-update-tray.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
log = logging.getLogger(__name__)

# Find Statefile
STATE_FILE = None
if 'XDG_STATE_HOME' in os.environ:
STATE_FILE = os.path.join(
os.environ['XDG_STATE_HOME'], 'arch-update', 'current_state')
Expand Down

0 comments on commit 3460538

Please sign in to comment.