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:
parent
ca5af0235a
commit
605f906371
4 changed files with 13 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue