Skip to content

Commit

Permalink
'Attribute error' bug has been fixed.
Browse files Browse the repository at this point in the history
 Changes to be committed:
	modified:   persepolis/scripts/useful_tools.py
  • Loading branch information
alireza-amirsamimi committed Sep 27, 2024
1 parent f16bc8b commit 1e46168
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions persepolis/scripts/useful_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ def osAndDesktopEnvironment():
desktop_env = None
if os_type in OS.UNIX_LIKE:
# find desktop environment('KDE', 'GNOME', ...)
desktop_env = os.environ.get('XDG_CURRENT_DESKTOP')
desktop_env = os.environ.get('XDG_CURRENT_DESKTOP').lower()

return os_type, desktop_env.lower()
return os_type, desktop_env


# this function converts file_size to KiB or MiB or GiB
Expand Down

0 comments on commit 1e46168

Please sign in to comment.