finding or creating ~/.wine folder (Snow Leopard problem)

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
hobbsilla
Level 2
Level 2
Posts: 21
Joined: Sun Mar 28, 2010 5:25 am

Post by hobbsilla »

@James

I have restored file permissions on my harddrive at least three times today and even rebooted my computer but still no luck. Google searches do not come up with results on how to restore file permissions to the home directory unless it has something to do with moving/cloning your home directory to a new computer (which does not apply to me).

Their isn't any type of terminal command line I can use that forcibly creates a directory anywhere in my UNIX system that isn't $sudo mkdir ./wine? The wine directory won't make itself on its own in a Guest account as well.

@doh123

I promise you /.wine does not exist on my computer. I searched how to look for hidden files and .wine simply does not exist anywhere on my computer especially in the home directory.

Again the error message I get whenever I try to run a Wine app (after closing out of the terminal and reopening it using the method James described) is the following:

Code: Select all

wine ~/path/$appname.exe
wine: chdir to /Users/elixir/.wine 
: No such file or directory 
I installed Wine using the Macports. I installed the Macports using a .dmg file that puts it in the default location of /opt/local/etc etc etc.

When I use the terminal to chdir to /usr/bin, a directory named wine isn't present, but even more interesting when I type in $which wine in the terminal it tells me its in /opt/local/bin/wine but when I chdir to that it also says its [the wine folder] not an existing directory. Does this help at all for you guys?

I am not using sudo for any of these commands (with the exception of $sudo port install wine-devel back when I was building Wine). I only was using $sudo mkdir thinking it would forcibly make /.wine in hopes that Wine would finally work but again, it didn't.
rwoodsmall
Level 2
Level 2
Posts: 20
Joined: Tue Feb 24, 2009 9:50 pm

Post by rwoodsmall »

Somehow you lost permissions to write to your own home directory. Start Terminal.app (from Finder: Applications -> Utilities -> Terminal), and fix ownship and perms on the top-level directory by running this

Code: Select all

MYHOME=${HOME}
MYUSER=${USER}
MYGROUP=$(groups | cut -f 1 -d' ')
sudo chown -R ${MYUSER}:${MYGROUP} ${MYHOME}
chmod 755 ${MYHOME}
Then attempt to create and remove a couple of test directories:

Code: Select all

mkdir ~/testdir
mkdir ~/.winetest
rmdir ~/testdir
rmdir ~/.winetest
hobbsilla
Level 2
Level 2
Posts: 21
Joined: Sun Mar 28, 2010 5:25 am

Post by hobbsilla »

Clarifying questions.
I'm assuming I replace ${MYUSER} with my home directory name/username but do I need to keep the $ and brackets when I use my username?
Also should ${MYGROUP} be admin (also my first question applies again to this as well)? I really appreciate all the help I've been getting today.
ryan woodsmall

finding or creating ~/.wine folder (Snow Leopard problem)

Post by ryan woodsmall »

Copy and paste the code blocks verbatim. They're valid Bash syntax.


-ryan

On Mar 28, 2010, at 23:42, hobbsilla <[email protected]> wrote:
Clarifying questions.
I'm assuming I replace ${MYUSER} with my home directory name/
username but do I need to keep the $ and brackets when I use my
username?
Also should ${MYGROUP} be admin (also my first question applies
again to this as well)? I really appreciate all the help I've been
getting today.



hobbsilla
Level 2
Level 2
Posts: 21
Joined: Sun Mar 28, 2010 5:25 am

Post by hobbsilla »

So I copied and pasted just like you said and it keeps telling me the operation is not permitted.
ryan woodsmall

finding or creating ~/.wine folder (Snow Leopard problem)

Post by ryan woodsmall »

If the following doesn't work, you may have a screwy ACL causing the
issue:

sudo chown -R $USER $HOME

That should fix the owner to your user. Fix your group:

sudo chgrp -R $GROUPS $HOME

Finally fix the directory perms on ~:

sudo chmod 755 $HOME

You should be able to create a subdirectory in your homedir. If
you're still having trouble, post the output of:

ls -lade@ ~

That should list extended attributes and ACLs (if any) for your home
directory.


-ryan

On Mar 29, 2010, at 0:42, hobbsilla <[email protected]> wrote:
So I copied and pasted just like you said and it keeps telling me
the operation is not permitted.



hobbsilla
Level 2
Level 2
Posts: 21
Joined: Sun Mar 28, 2010 5:25 am

Post by hobbsilla »

You have to be kidding me that is so a problem people that upgrade from 10.5 to 10.6 get. My laptop is brand new came straight from Apple no less than 90 days ago. Well I'll get MacPilot and work on repairing my ACLs then.
James Mckenzie

finding or creating ~/.wine folder (Snow Leopard problem)

Post by James Mckenzie »

hobbsilla <[email protected]> wrote:
You have to be kidding me that is so a problem people that upgrade from 10.5 to 10.6 get.
Maybe, maybe not. Some folks actually 'lost' access to the Documents folder.
My laptop is brand new came straight from Apple no less than 90 days ago.
With respect to Ryan, take your Apple to the Genuis Bar and let them fix it. Your system is still under warranty (if you bought/use it in the United States) and they should fix it. Your system may have a bad Operating System install. This happens to Apples as well as other systems.
Well I'll get MacPilot and work on repairing my ACLs then.
This will void your warranty. Again, let Apple fix this if your system is still under warranty.

This may also indicate a failing hard drive, although I would be highly suspect that this is happening. They usually fail immediately or after many years of use (I have the original hard drive for my Thinkpad and it has been dropped a few times and it is still working after 12+ years.) A good example of failing hard drives where the Hitachi 20GB drives used in many computers about 10 to 12 years ago that would 'death spiral' after about three or four months of use. They were replaced in many cases after the problem was discovered to be bad manufacturing.

Ryan:

Thank you for the suggestions. I'm going to run them tonight to see what I get out of my system and record them. This way if my system starts acting wonky, I can fix it.

James McKenzie
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

hobbsilla wrote: Their isn't any type of terminal command line I can use that forcibly creates a directory anywhere in my UNIX system that isn't $sudo mkdir ./wine? The wine directory won't make itself on its own in a Guest account as well.
if you use sudo, it will never make anything with your current user being the owner, the owner will always be root, and you will not have access to it.

if you want to make a folder (aka directory) you could just mkdir with no sudo. If you open terminal (it should show you in your home folder by default on a new open) and type 'mkdir testfolder' then a new folder should be created you have access to.

sudo mkdir ./wine will make a root owned folder from the current folder named wine, not .wine
hobbsilla wrote: I promise you /.wine does not exist on my computer. I searched how to look for hidden files and .wine simply does not exist anywhere on my computer especially in the home directory.
I was more interested in what trying to open it said, since searching for hidden files in finder via spotlight doesn't always find them... it would either fail saying it doesn't exist, or it would open, and you'd know for sure really fast.
hobbsilla wrote: Again the error message I get whenever I try to run a Wine app (after closing out of the terminal and reopening it using the method James described) is the following:

Code: Select all

wine ~/path/$appname.exe
wine: chdir to /Users/elixir/.wine 
: No such file or directory 
which leads me to believe you have a wine launcher file thats trying to change folders.. since normal running of wine should never even try to change the directory to that
hobbsilla wrote: I installed Wine using the Macports. I installed the Macports using a .dmg file that puts it in the default location of /opt/local/etc etc etc.

When I use the terminal to chdir to /usr/bin, a directory named wine isn't present, but even more interesting when I type in $which wine in the terminal it tells me its in /opt/local/bin/wine but when I chdir to that it also says its [the wine folder] not an existing directory. Does this help at all for you guys?
you are either not understanding how Wine installs, or your mixing up directories and files.
/opt/local/bin/wine is a program, its not a directory, you cannot change directory to it, of course it will fail.
you can change directory to /opt/local/bin as thats a directory (aka folder), then type ls and see everything thats in there, one of which is the wine program.
hobbsilla wrote: I am not using sudo for any of these commands (with the exception of $sudo port install wine-devel back when I was building Wine). I only was using $sudo mkdir thinking it would forcibly make /.wine in hopes that Wine would finally work but again, it didn't.
it would make a wine folder sure, but it would be owned by root.


you really need to try to open the wine program with textedit like I said, and if its a standard text file without gibberish, let us know what it says inside.

Code: Select all

open -e /opt/local/bin/wine
should open the file in TextEdit.app ... if its gibberish (weird symbols and stuff), just close it without changing or saving anything... if it looks like a normal bash script.. with probably less than 10 shorter lines of stuff, its a Wine launcher file, and not the true Wine executable. I'm pretty sure Macports still makes a launcher file like that, with probably some lines in there about DYLD_FALLBACK_LIBRARY_PATH being set to /usr/X11/lib and other things. Just let us know what it says in there, because it sounds like its trying to change to the .wine folder, which it shouldn't do...

overall if its real Wine being launched, it shouldn't be able to give that error message... Wine isn't even getting launched to try to create it.
hobbsilla
Level 2
Level 2
Posts: 21
Joined: Sun Mar 28, 2010 5:25 am

Post by hobbsilla »

So I reset the ACLs using my Install DVD in the Password Reset section as directed by an Apple employee over the phone and still no luck. Are you saying that I shouldn't use sudo to forcibly create the .wine folder? I tried just using mkdir .wine and I still don't have the permissions to do it.
After typing in the code that you recommend here is the output:

Code: Select all

#!/bin/sh
# $Id: wine.in 50572 2009-05-04 19:19:09Z [email protected] $

DYLD_FALLBACK_LIBRARY_PATH="/opt/local/lib" \
"/opt/local/libexec/wine/wine" "$@"
It seems different then what you suggested. Hope this continues to help.
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

hobbsilla wrote:So I reset the ACLs using my Install DVD in the Password Reset section as directed by an Apple employee over the phone and still no luck. Are you saying that I shouldn't use sudo to forcibly create the .wine folder? I tried just using mkdir .wine and I still don't have the permissions to do it.
After typing in the code that you recommend here is the output:

Code: Select all

#!/bin/sh
# $Id: wine.in 50572 2009-05-04 19:19:09Z [email protected] $

DYLD_FALLBACK_LIBRARY_PATH="/opt/local/lib" \
"/opt/local/libexec/wine/wine" "$@"
It seems different then what you suggested. Hope this continues to help.
if you have X11 installed through Macports your using too, and not Apples default X11.app, then that works fine.

I think your main problem comes down to... if your really on a user account with admin rights, and you cannot create a folder in your home folder even just by clicking it in Finder, then your OS has permission problems, and this isn't a Wine issue.
hobbsilla
Level 2
Level 2
Posts: 21
Joined: Sun Mar 28, 2010 5:25 am

Post by hobbsilla »

If using Snow Leopard Install DVD and reseting the password and restoring the ACLs and repairing the disk permissions multiple times hasn't worked is there any other options I can do that doesn't involve me ending my warranty (which is for 3 years not 90 days).
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

hobbsilla wrote:If using Snow Leopard Install DVD and reseting the password and restoring the ACLs and repairing the disk permissions multiple times hasn't worked is there any other options I can do that doesn't involve me ending my warranty (which is for 3 years not 90 days).
I'd try reformatting and reinstalling... I've never had a machine that blocked access like that before, and it shouldn't, especially when it says you have read/write permissions, but doesn't let you actually do it.

Just make sure you have a backup. then do a fresh install and see if it lets you write there correctly... if it still doesn't nothing lost, you can restore from backup... otherwise if it works, copy stuff from the backup you need/want...

I'm just wondering if there is some misunderstanding going on somewhere. Either we aren't understanding what your saying, or your not understanding what we're saying... because you should always have full permissions on your home folder... almost tempted to ask if you want to try having me remotely log into your machine and see whats going on myself :-)

If you live near and Apple Store, I'd go in and show them not being able to create a folder in your home folder, and ask them why, and how to fix it.
hobbsilla
Level 2
Level 2
Posts: 21
Joined: Sun Mar 28, 2010 5:25 am

Post by hobbsilla »

I understand what you're all saying and what you've been saying. I have no idea if this is correlated at all but about a week before my initial post asking for help I was using my Macbook Pro on a plane it just suddenly turned itself off with no warning when it had a 95% charge on the battery. Once I was settled back home I called Apple Support and they told me that I needed to hold down something like Cmd + option + shift along those lines while the computer was booting (while plugged in via outlet). The computer booted up and the batteries started working again (showing a 95% complete charge on it) but I noticed some of my settings were sorta funky. My dock reverted back to the default apps that show up on a fresh install, my background which was a custom image reverted back to the default Mac spacey purple background image that are on all Macs. All my apps and documents and everything were still intact on the computer, I just had to change everything around to my previous settings. Also I had been using Winebottler to use an app that worked using it and after that it stopped working completely.
James McKenzie

finding or creating ~/.wine folder (Snow Leopard problem)

Post by James McKenzie »

hobbsilla wrote:
I understand what you're all saying and what you've been saying. I have no idea if this is correlated at all but about a week before my initial post asking for help I was using my Macbook Pro on a plane it just suddenly turned itself off with no warning when it had a 95% charge on the battery. Once I was settled back home I called Apple Support and they told me that I needed to hold down something like Cmd + option + shift along those lines while the computer was booting (while plugged in via outlet). The computer booted up and the batteries started working again (showing a 95% complete charge on it) but I noticed some of my settings were sorta funky. My dock reverted back to the default apps that show up on a fresh install, my background which was a custom image reverted back to the default Mac spacey purple background image that are on all Macs. All my apps and documents and everything were still intact on the computer, I just had to change everything around to my previous settings.
This should not have anything to do with your problem. However, if this
happened to me on a warrantied system, I would take it into the Genius
Bar at the local Apple store and get it checked out.
Also I had been using Winebottler to use an app that worked using it and after that it stopped working completely.


This may actually be your problem. WineBottler is BETA software and may
cause problems. I am one of the testers and have not run into this, but
I'm running on Leopard. There are differences between the two operating
systems. Snow Leopard may have added code that, under certain
circumstances, may cause a lockout of the $HOME directory. Not nice,
pretty nor fun, and it is pretty hard for an experienced UNIX system
admin to troubleshoot this.

Again, it is time for a trip to the Apple store. That's what that
warranty is for and you paid for the support. Use it.

James McKenzie
Locked