Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path not writeable for paths that have single quotes ( ' ) #4340

Open
ArhumMK opened this issue Feb 17, 2025 · 0 comments
Open

Path not writeable for paths that have single quotes ( ' ) #4340

ArhumMK opened this issue Feb 17, 2025 · 0 comments
Labels
bug:unconfirmed Someone works on identifying the issue

Comments

@ArhumMK
Copy link

ArhumMK commented Feb 17, 2025

Describe the bug

Heroic shows a warning when selecting a path that has a single quote like on the screenshot below, if you continue on to install, it will create a new directory entirely without the single quote, for this example, the selected path is D:\Arhum's Files\Games\ but it creates a brand-new directory D:\Arhums Files\Games\ and installs the game there.

Add logs

(09:44:06) INFO:    [Legendary]:        Legendary location: C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\legendary
(09:44:06) INFO:    [Gog]:              GOGDL location: C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl
(09:44:06) INFO:    [Connection]:       Connectivity: check-online
(09:44:06) INFO:    [Connection]:       Pinging external endpoints
(09:44:07) INFO:    [Gog]:              Checking for existing gog manifests
(09:44:07) INFO:    [Nile]:             Refreshing library...
(09:44:07) INFO:    [Nile]:             Refreshing Amazon Games...
(09:44:07) INFO:    [Nile]:             Game list updated, got 132 games
(09:44:07) WARNING: [Backend]:          Protocol already registered.
(09:44:07) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\nile_config" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\nile`"" -Wait -NoNewWindow -ArgumentList "`"library`"","`"sync`""
(09:44:07) INFO:    [Connection]:       Connectivity: online
(09:44:07) INFO:    [Gog]:              Checking if login is valid
(09:44:07) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:07) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:07) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:07) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:09) DEBUG:   [Backend]:          Unable to load Steam Libraries, libraryfolders.vdf not found
(09:44:09) INFO:    [WineDownloader]:   Updating wine versions info
(09:44:09) INFO:    [WineDownloader]:   Fetching upstream information...
(09:44:10) INFO:    [Backend]:          VCRuntime is installed
(09:44:10) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\legendaryConfig\legendary" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\legendary`"" -Wait -NoNewWindow -ArgumentList "`"--version`""
(09:44:10) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"--version`""
(09:44:10) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\nile_config" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\nile`"" -Wait -NoNewWindow -ArgumentList "`"--version`""
(09:44:10) INFO:    [Nile]:             Saved user data to config file
(09:44:10) INFO:    [Frontend]:         Refreshing undefined Library
(09:44:10) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(09:44:10) INFO:    [Legendary]:        Refreshing library...
(09:44:10) INFO:    [Legendary]:        Refreshing Epic Games...
(09:44:10) INFO:    [Nile]:             Refreshing library...
(09:44:10) INFO:    [Nile]:             Refreshing Amazon Games...
(09:44:10) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\nile_config" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\nile`"" -Wait -NoNewWindow -ArgumentList "`"library`"","`"sync`""
(09:44:10) INFO:    [Nile]:             Game list updated, got 132 games
(09:44:10) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:10) INFO:    [Backend]:          Frontend Ready
(09:44:10) INFO:    [WineDownloader]:   wine versions updated
(09:44:10) ERROR:   [Backend]:          Could not find default wine version
(09:44:10) INFO:    [Gog]:              Getting game metadata: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"info`"","`"gog-redist`"","`"--os`"","`"windows`""
(09:44:10) INFO:    [Gog]:              Getting GOG library
(09:44:10) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:10) INFO:    [Gog]:              GOG presence set
(09:44:10) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\legendaryConfig\legendary" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\legendary`"" -Wait -NoNewWindow -ArgumentList "`"list`"","`"--third-party`""
(09:44:11) INFO:    [Gog]:              Saved username to config file
(09:44:11) INFO:    [Backend]:          Checking for new Heroic Updates
(09:44:11) INFO:    [Backend]:          Checking for current version changelog
(09:44:15) INFO:    [Backend]:          Starting the Download Queue
(09:44:17) ERROR:   [Gog]:              stdout = false and res.abort = false in getInstallInfo
(09:44:17) INFO:    [DownloadManager]:  Galaxy Common Redistributables  was added to the download queue.
(09:44:17) INFO:    [Gog]:              Updating GOG redistributables
(09:44:17) INFO:    [Gog]:              GOG REDIST:: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"redist`"","`"--ids`"","`"ISI`"","`"--path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\tools\\redist\\gog`""
(09:44:17) DEBUG:   [Gog]:              Logging to file "C:\Users\Arhum MK\AppData\Roaming\heroic\GamesConfig\gog-redist.log"
(09:44:17) INFO:    [Backend]:          
System Information:
CPU: 8x Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
Memory: 17.06 GB (used: 7.47 GB)
GPUs:
  GPU 0:
    Name: NVIDIA Corporation GM108M [GeForce MX110]
    IDs: D=174e V=10de SD=85f0 SV=103c
    Driver: 572.16
  GPU 1:
    Name: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620]
    IDs: D=3ea0 V=8086 SD=85f0 SV=103c
    Driver: 30.0.101.2079
OS: Microsoft Windows 10 Home 10.0.19045 (win32)

The current system is not a Steam Deck
We are not running inside a Flatpak container

Software Versions:
  Heroic: 2.15.2 Emeth
  Legendary: 0.20.36 Urban Flight (Heroic)
  gogdl: 1.1.2
  comet: comet 0.1.2

  Nile: 1.1.2 Will A. Zeppeli

(09:44:17) INFO:    [Backend]:          Preventing machine to sleep
(09:44:17) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:17) INFO:    [Legendary]:        Getting more details with 'legendary info'
(09:44:18) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\legendaryConfig\legendary" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\legendary`"" -Wait -NoNewWindow -ArgumentList "`"info`"","`"f4e0c1dff48749fa9145c1585699e276`"","`"--json`"","`"--platform`"","`"Windows`""
(09:44:21) INFO:    [Legendary]:        Game list updated, got 379 games & DLCs
(09:44:23) INFO:    [Gog]:              Saved games data
(09:44:23) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(09:44:23) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:44:23) INFO:    [Gog]:              Progress for Galaxy Common Redistributables: 100%/0.00MB/00:00:00 Down: 0.99MB/s / Disk: 0.79MB/s
(09:44:24) INFO:    [DownloadManager]:  gog-redist added to download manager finished.
(09:44:24) INFO:    [DownloadManager]:  gog-redist removed from download manager.
(09:44:24) INFO:    [Gog]:              Updating GOG redistributables
(09:44:24) INFO:    [Gog]:              GOG REDIST:: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"redist`"","`"--ids`"","`"ISI`"","`"--path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\tools\\redist\\gog`""
(09:44:24) DEBUG:   [Gog]:              Logging to file "C:\Users\Arhum MK\AppData\Roaming\heroic\GamesConfig\gog-redist.log"
(09:44:24) INFO:    [Backend]:          operation interrupted
(09:44:25) INFO:    [Backend]:          Preventing machine to sleep
(09:44:26) INFO:    [Gog]:              Found 0 game(s) to update
(09:44:26) INFO:    [Legendary]:        Checking for game updates: LEGENDARY_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\legendaryConfig\legendary" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\legendary`"" -Wait -NoNewWindow -ArgumentList "`"list`"","`"--third-party`""
(09:44:27) INFO:    [DownloadManager]:  gog-redist added to download manager finished.
(09:44:27) INFO:    [DownloadManager]:  gog-redist removed from download manager.
(09:44:28) INFO:    [Backend]:          operation interrupted
(09:44:28) INFO:    [Backend]:          Stopping Power Saver Blocker
(09:44:32) INFO:    [Legendary]:        Found 0 games to update
(09:44:32) INFO:    [Nile]:             Looking for updates...
(09:44:32) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\nile_config" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\nile`"" -Wait -NoNewWindow -ArgumentList "`"list-updates`"","`"--json`""
(09:44:36) INFO:    [Frontend]:         Force Update
(09:48:07) DEBUG:   [Nile]:             Using cached install info
(09:48:22) DEBUG:   [Nile]:             Using cached install info
(09:48:22) INFO:    [DownloadManager]:  3 Count Bout  was added to the download queue.
(09:48:22) INFO:    [Nile]:             Installing amzn1.adg.product.6463784a-5716-481d-b006-e19c26e9214c: NILE_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\nile_config" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\nile`"" -Wait -NoNewWindow -ArgumentList "`"install`"","`"--base-path`"","`"D:\\Arhums Files\\Games`"","`"amzn1.adg.product.6463784a-5716-481d-b006-e19c26e9214c`""
(09:48:22) DEBUG:   [Nile]:             Logging to file "C:\Users\Arhum MK\AppData\Roaming\heroic\GamesConfig\amzn1.adg.product.6463784a-5716-481d-b006-e19c26e9214c.log"
(09:48:22) INFO:    [Backend]:          Preventing machine to sleep
(09:48:25) INFO:    [Nile]:             Progress for 3 Count Bout: 0%/0.00MB/00:00:00 Down: 0MB/s / Disk: 0MB/s
(09:48:26) INFO:    [Nile]:             Progress for 3 Count Bout: 0%/1.46MB/00:00:00 Down: 1.44MB/s / Disk: 1.44MB/s
(09:48:27) INFO:    [Nile]:             Progress for 3 Count Bout: 4.77%/1.83MB/00:00:40 Down: 0.36MB/s / Disk: 0.36MB/s
(09:48:28) INFO:    [Nile]:             Progress for 3 Count Bout: 5.97%/7.75MB/00:00:48 Down: 5.83MB/s / Disk: 5.83MB/s
(09:48:29) INFO:    [Nile]:             Progress for 3 Count Bout: 25.26%/11.14MB/00:00:12 Down: 3.35MB/s / Disk: 3.35MB/s
(09:48:30) INFO:    [Nile]:             Progress for 3 Count Bout: 36.28%/24.27MB/00:00:08 Down: 12.94MB/s / Disk: 12.94MB/s
(09:48:31) INFO:    [Nile]:             Progress for 3 Count Bout: 79.06%/30.70MB/00:00:01 Down: 6.39MB/s / Disk: 6.39MB/s
(09:48:34) INFO:    [Backend]:          Adding shortcuts for 3 Count Bout
(09:48:34) DEBUG:   [Nile]:             fuel.json path: D:\Arhums Files\Games\3 Count Bout\fuel.json
(09:48:34) INFO:    [Nile]:             No PostInstall instructions for 3 Count Bout
(09:48:34) INFO:    [DownloadManager]:  Finished Installation of amzn1.adg.product.6463784a-5716-481d-b006-e19c26e9214c
(09:48:34) INFO:    [DownloadManager]:  amzn1.adg.product.6463784a-5716-481d-b006-e19c26e9214c added to download manager finished.
(09:48:34) INFO:    [DownloadManager]:  amzn1.adg.product.6463784a-5716-481d-b006-e19c26e9214c removed from download manager.
(09:48:34) INFO:    [Frontend]:         Refreshing nile Library
(09:48:34) INFO:    [Nile]:             Refreshing library...
(09:48:34) INFO:    [Nile]:             Refreshing Amazon Games...
(09:48:34) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\nile_config" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\nile`"" -Wait -NoNewWindow -ArgumentList "`"library`"","`"sync`""
(09:48:34) INFO:    [Nile]:             Game list updated, got 132 games
(09:48:34) INFO:    [Backend]:          operation interrupted
(09:48:34) INFO:    [Backend]:          Stopping Power Saver Blocker
(09:48:39) INFO:    [ExtraGameInfo]:    Using cached ExtraGameInfo data for 3 Count Bout
(09:48:39) INFO:    [ExtraGameInfo]:    Using cached ExtraGameInfo data for 3 Count Bout
(09:48:39) DEBUG:   [Nile]:             Using cached install info
(09:48:39) DEBUG:   [Nile]:             Using cached install info
(09:49:10) INFO:    [Gog]:              Running command: GOGDL_CONFIG_PATH="C:\Users\Arhum MK\AppData\Roaming\heroic\gogdlConfig" powershell Start-Process "`"C:\Users\Arhum MK\AppData\Local\Programs\heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Arhum MK\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(09:49:13) INFO:    [Gog]:              GOG presence set

Steps to reproduce

  1. Create a directory with a single quote in its name
  2. Select said path when installing game
  3. Observe described behaviour

Expected behavior

Heroic would install games in the selected path as expected instead of creating a new directory path without the single quote.

Screenshots

Image

Heroic Version

Latest Stable

System Information

  • OS Windows 10

Additional information

No response

@ArhumMK ArhumMK added the bug:unconfirmed Someone works on identifying the issue label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:unconfirmed Someone works on identifying the issue
Projects
None yet
Development

No branches or pull requests

1 participant