Updated settings.setup.py
This commit is contained in:
parent
b83f2b0c5f
commit
576cb29281
1 changed files with 22 additions and 8 deletions
|
|
@ -1,13 +1,19 @@
|
||||||
# Wizard Kit: Settings - Setup
|
'''Wizard Kit: Settings - Setup'''
|
||||||
|
# pylint: disable=bad-continuation,line-too-long
|
||||||
|
# vim: sts=2 sw=2 ts=2
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
try:
|
||||||
import winreg
|
import winreg
|
||||||
|
|
||||||
# General
|
|
||||||
HKU = winreg.HKEY_USERS
|
HKU = winreg.HKEY_USERS
|
||||||
HKCR = winreg.HKEY_CLASSES_ROOT
|
HKCR = winreg.HKEY_CLASSES_ROOT
|
||||||
HKCU = winreg.HKEY_CURRENT_USER
|
HKCU = winreg.HKEY_CURRENT_USER
|
||||||
HKLM = winreg.HKEY_LOCAL_MACHINE
|
HKLM = winreg.HKEY_LOCAL_MACHINE
|
||||||
|
except ImportError:
|
||||||
|
if os.name != 'posix':
|
||||||
|
raise
|
||||||
|
|
||||||
|
# General
|
||||||
OTHER_RESULTS = {
|
OTHER_RESULTS = {
|
||||||
'Error': {
|
'Error': {
|
||||||
'CalledProcessError': 'Unknown Error',
|
'CalledProcessError': 'Unknown Error',
|
||||||
|
|
@ -92,6 +98,15 @@ SETTINGS_EXPLORER_SYSTEM = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
SETTINGS_EXPLORER_USER = {
|
SETTINGS_EXPLORER_USER = {
|
||||||
|
# Desktop theme
|
||||||
|
r'Software\Microsoft\Windows\CurrentVersion\Themes\Personalize': {
|
||||||
|
'Invalid modes': ['Cur'],
|
||||||
|
'DWORD Items': {
|
||||||
|
# <= v1809 default
|
||||||
|
'AppsUseLightTheme': 1,
|
||||||
|
'SystemUsesLightTheme': 0,
|
||||||
|
},
|
||||||
|
},
|
||||||
# Disable features
|
# Disable features
|
||||||
r'Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager': {
|
r'Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager': {
|
||||||
'DWORD Items': {
|
'DWORD Items': {
|
||||||
|
|
@ -104,6 +119,7 @@ SETTINGS_EXPLORER_USER = {
|
||||||
},
|
},
|
||||||
# File Explorer
|
# File Explorer
|
||||||
r'Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced': {
|
r'Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced': {
|
||||||
|
'Invalid modes': ['Cur'],
|
||||||
'DWORD Items': {
|
'DWORD Items': {
|
||||||
# Change default Explorer view to "Computer"
|
# Change default Explorer view to "Computer"
|
||||||
'LaunchTo': 1,
|
'LaunchTo': 1,
|
||||||
|
|
@ -157,5 +173,3 @@ SETTINGS_WINDOWS_UPDATES = {
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
||||||
# vim: sts=2 sw=2 ts=2
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue