HGL
rival-black
Trying to manually add a game using installer and I get "Setup was unable to create the directory"
Error 5: Access denied
6 Replies
rival-blackOP•4mo ago
when I've done this before outside of Heroic I've just run the the installer through Wine as sudo, and that works fine to create the new directories. But idk how to give Heroic proper permissions to create the directories it needs
deep-jade•4mo ago
never run wine as sudo
like-gold•4mo ago
you shouldn't run wine as sudo
this needs more info such as how you have Heroic installed and the folder to which you want to install
rival-blackOP•4mo ago
why not? it works...
how do I have heroic installed? idk... the normal way? i don't know how to answer that
i want to install the game to the default location (z:/games)
the process that works for me:
- run sudo wine setup.exe
- let the installer install it to z:/games in the default wine prefix
- move the installed game directory to the location i want it to be
- manually add the game in Heroic and point to the exe in the moved game directory
i would be very interested to hear why running wine as sudo is a bad idea though
deep-jade•4mo ago
first of all
you can do all of those steps in Heroic
just not directly on the Z: drive
wine is meant to run in userspace, it usually integrates apps you install into the wine prefix with your desktop
when you run it as root you lose that
not gonna mention obvious security risks related to that
imagine giving windows program permissions to do anything on your computer
on Linux
this is not just bad practice
it's asking for trouble
like-gold•4mo ago
z:/games
is not a folder available by default. this is outside of your home folder and in rootfs
. you really should not be mucking around in rootfs
if you aren't experienced in this
notably, z:/
is just a wine alias for /
by default, Heroic has access to /home/USER/Games/Heroic
which is in your user home folder, which means you have full read/write access to that folder
creating a new folder /games
is poor folder management and will only cause further troubles that seemingly make you think that you need sudo
to use Wine
/
is not user writable and requires elevated permissions. don't play in that space