thpatch / thcrap

Touhou Community Reliant Automatic Patcher
https://www.thpatch.net
The Unlicense
551 stars 41 forks source link

Directory name invalid lutris #206

Closed kimikazZZ closed 1 year ago

kimikazZZ commented 1 year ago

A few days ago i used to run touhou with thcrap patcher through the lutris and all was fine until i install debian 11. I had the same problem with mint but on lubuntu all was perfect. Is that any other way to run touhou on my native language? Touhou works if i run directly vpatch.exe but without language support. image

kimikazZZ commented 1 year ago

damn..... if someone has the same problem just run thcrap.exe as root. Seems like it can't find the right path without permission

32th-System commented 1 year ago

you shouldn't run Wine as root. If permissions are the issue you should fix the permissions for your new user account on your new Linux installation instead

Fishaphrodite commented 1 year ago

Where is the game actually located, the prefix too, and does lutris have permissions to both folders? (I believe there is a flatpak for lutris, which will have by default a pretty limited scope as a result, moving the game to a place where it has permissions would for exemple fix this issue).

DankRank commented 1 year ago

here are some potentially helpful one-liners

how to find files with wrong ownership: find your_directory ! -user your_user_name -exec stat -c '%U %n' -- {} + how to fix the ownership: find your_directory ! -user your_user_name -exec chown your_user_name: -- {} +

kimikazZZ commented 1 year ago

The point was that thcrap creates .ink file with wrong path. For example as you can see on screenshot the .ink file i've created without root permission for some reason recognizes touhou folder as "C:\" disk when it actually on "Z:\"

Fishaphrodite commented 1 year ago

The folder targeted by C:\users\[name]\Desktop is typically a symlink to your actual desktop, if your game is located somewhere there, thcrap finding it shouldn't be an issue, and on mint here, I tried making it search for games on the C drive, with one i nthe desktop, and it worked.

I'd say check the wineprefix "desktop" targets the correct folder, that the path exists, or select directly a folder relative to the Z drive if this really is enough to fix it (the Z drive targets / and all that is in it).