1
0
Fork 0
mirror of https://github.com/kbumsik/VirtScreen.git synced 2025-03-09 15:40:18 +00:00

Setup.py: Fixed wrong desktop entry path

This commit is contained in:
Bumsik Kim 2018-05-23 23:30:25 -04:00
parent ca5af0235a
commit 605f906371
No known key found for this signature in database
GPG key ID: E31041C8EC5B01C6
4 changed files with 13 additions and 11 deletions

View file

@ -20,8 +20,11 @@ from netifaces import interfaces, ifaddresses, AF_INET
# -------------------------------------------------------------------------------
# Sanitize environment variables
# https://wiki.sei.cmu.edu/confluence/display/c/ENV03-C.+Sanitize+the+environment+when+invoking+external+programs
del os.environ['HOME'] # Delete $HOME env for security reason. This will make
# Delete $HOME env for security reason. This will make
# Path.home() to look up in the password directory (pwd module)
if 'HOME' in os.environ:
del os.environ['HOME']
os.environ['PATH'] = os.confstr("CS_PATH") # Sanitize $PATH
# Setting home path and base path