Error message: Could not create directory

Questions about Wine on Linux
Locked
esineath
Level 1
Level 1
Posts: 6
Joined: Sun Jan 13, 2013 9:58 am

Error message: Could not create directory

Post by esineath »

Attached is what I get when I try to install.
Attachments
Screenshot from 2018-05-10 09-27-20.png
Screenshot from 2018-05-10 09-27-20.png (6.74 KiB) Viewed 2196 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Error message: Could not create directory

Post by Bob Wya »

@esineath,

You're probably trying to launch the winzip self-extractor using your native Linux File Manager... This tends to be a bit unreliable.
You're better of installing applications using the command line...
See: Wine User's Guide: 3 Using Wine.

In your case it appears that Wine is not getting the correct working directory to launch the application in.
Wine is using a relative path - in a directory where your Linux (Wine) user probably doesn't have write permission.

Which is why it's best to do something like:

Code: Select all

cd "${WINEPREFIX:-${HOME}/.wine}/drive_c" # Change Directory to the root of your virtual Wine C:\ drive
ln -s ~/Downloads/dksports-setup.exe .          # Link your downloaded game / application installer to the virtual Wine C:\ drive
wine start dksports-setup.exe
This is just an example... So you can't just blindly copy-paste it!

See: WineHQ Wiki: Wine Start.
Using this is preferable - as it ensures Wine env is more complete and provides better path mangling.
All Wine's self-generated .desktop launcher files use:

Code: Select all

wine start ...
Bob
Locked