Skip to content

Commit

Permalink
attempting to fix #64 by unsetting the PYTHONHOME env var
Browse files Browse the repository at this point in the history
  • Loading branch information
maltfield committed May 31, 2023
1 parent 3e3a378 commit c47d236
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/packages/buskill/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,12 @@ def trigger_lockscreen_lin_xscreensaver(self):
def trigger_lockscreen_lin_cinnamon(self):

try:
# unset PYTHONHOME to fix AppImage fs encoding error
# ModuleNotFoundError: No module named 'encodings'
# * https://github.com/BusKill/buskill-app/issues/64#issuecomment-1537221491
if 'PYTHONHOME' in os.environ:
del os.environ['PYTHONHOME']

# try to lock the screen with cinnamon-screensaver command
msg = "INFO: Attempting to execute `cinnamon-screensaver-command --lock`"
print( msg ); logger.debug( msg )
Expand Down

0 comments on commit c47d236

Please sign in to comment.