mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-22 22:31:43 +03:00
Avoid shell code injection in some disabled code
This commit is contained in:
parent
440fab6a53
commit
0193773928
@ -190,8 +190,8 @@ def set_wallpaper(file_loc: str, first_run: bool = True):
|
||||
args = ["wmsetbg", "-s", "-u", file_loc]
|
||||
subprocess.Popen(args)
|
||||
# elif desktop_env=="enlightenment": # I have not been able to make it work on e17. On e16 it would have been something in this direction
|
||||
# args = "enlightenment_remote -desktop-bg-add 0 0 0 0 %s" % file_loc
|
||||
# subprocess.Popen(args,shell=True)
|
||||
# args = ["enlightenment_remote", "-desktop-bg-add", "0", "0", "0", "0", file_loc]
|
||||
# subprocess.Popen(args)
|
||||
elif desktop_env=="windows":
|
||||
#From https://stackoverflow.com/questions/1977694/change-desktop-background
|
||||
# Tested on Windows 10. -- @1j01
|
||||
|
Loading…
Reference in New Issue
Block a user