diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-28 21:28:52 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-01-29 00:00:40 +0900 | 
| commit | cf571297f52ad4a5e5843555d9c016d526f03c43 (patch) | |
| tree | 7e9eb123a08b935d382ac194a9a1f9e666ee09ee /wineconfig/winewrite.py | |
| parent | 00acd92ff96bd6d3bb3136aa6d6b37314b3ad623 (diff) | |
| download | tde-guidance-cf571297.tar.gz tde-guidance-cf571297.zip | |
Fix functionality with python 3.r14.1.0
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'wineconfig/winewrite.py')
| -rw-r--r-- | wineconfig/winewrite.py | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/wineconfig/winewrite.py b/wineconfig/winewrite.py index b208e66..39f1ce3 100644 --- a/wineconfig/winewrite.py +++ b/wineconfig/winewrite.py @@ -60,14 +60,14 @@ def SetDriveMappings(drives):      SetShellLinks(drives[26:])  def SetShellLinks(shelllinks): -    existingshelllinks = os.listdir(wineread.winepath + "/dosdevices/c:/windows/profiles/" + os.environ['USER']) +    existingshelllinks = os.listdir(wineread.winepath + "/dosdevices/c:/users/" + os.environ['USER'])      set(existingshelllinks)      shellregistry = wineread.GetShellRegistry()      for link in shelllinks:          createLink = False          if link[1] in existingshelllinks:	# The link exists -            linkpath = wineread.winepath + "/dosdevices/c:/windows/profiles/" + os.environ['USER'] + "/" + link[1] +            linkpath = wineread.winepath + "/dosdevices/c:/users/" + os.environ['USER'] + "/" + link[1]              if link[2]:    # The folder is mapped                  # Compare for changes                  changed = False @@ -98,7 +98,7 @@ def SetShellLinks(shelllinks):                  continue          if createLink: -            os.symlink(link[2], wineread.winepath + "/dosdevices/c:/windows/profiles/" + os.environ['USER'] + "/" + link[1]) +            os.symlink(link[2], wineread.winepath + "/dosdevices/c:/users/" + os.environ['USER'] + "/" + link[1])              if link[1] in shellregistry:                  SetShellRegistry(link) @@ -426,7 +426,7 @@ def CreateWineDrive(path = None):      if not path:          path = wineread.default_winepath -    os.system("WINEPREFIX=" + path + " wineprefixcreate --wait") +    os.system("WINEPREFIX=" + path + " winepath --wait")  # ----- Theming ----- @@ -486,4 +486,4 @@ def CreatePorts(ports = None):          winport = ports_translation[port.rstrip("012345678")] +\              str(int(port.lstrip("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")) + 1)          os.symlink("/dev/" + port, wineread.winepath + "/dosdevices/" + winport) -    
\ No newline at end of file +     | 
