GetHomeDirectory()

Mac OSX specific forum
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

GetHomeDirectory()

Post by J. Baker »

Ok, my app was just rejected because they said the default output was /Users/Guest/Desktop/. Which is set by GetHomeDirectory of course. On my system it returns /Users/jbaker/Desktop/ like it should. Why would it return guest? I'm assuming the tester person was signed on as a guest and didn't even use the option to change the directory as I did implement that in the app.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
jace_stknights
User
User
Posts: 13
Joined: Sat Mar 24, 2012 3:50 am

Re: GetHomeDirectory()

Post by jace_stknights »

?????? WTF? :(

I'm also using this function and it works fine. Perhaps you should use the "Documents" our "user login" dir? (Yep it is stupid... but sometimes...)
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: GetHomeDirectory()

Post by J. Baker »

Yeah, I think the person testing the app just doesn't know what they're doing. I don't understand how people like this get positions they clearly are not qualified for. I guess I'll just have to wait for a response.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: GetHomeDirectory()

Post by jamirokwai »

Hi J.Baker,

had the same problem with my latest App. I am waiting for approval atm.
The tester mailed me: Don't prefill the destination folder.
Actually, they did tell me /Users/guest/Documents was not appropriate. D'oh!
Regards,
JamiroKwai
spacebuddy
Enthusiast
Enthusiast
Posts: 356
Joined: Thu Jul 02, 2009 5:42 am

Re: GetHomeDirectory()

Post by spacebuddy »

You should sandbox your application, this will let you know if you
are using the correct directory for writing. This is also good practice
for the future.

I believe /Library/Container/Bundle Identifier/ is the proper place to write/read data for your program
if you are going to be distributing your apps to the app store.
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: GetHomeDirectory()

Post by J. Baker »

jamirokwai wrote:Hi J.Baker,

had the same problem with my latest App. I am waiting for approval atm.
The tester mailed me: Don't prefill the destination folder.
Actually, they did tell me /Users/guest/Documents was not appropriate. D'oh!
Yeah, I had it pre filled but the user also had the option to change it. Which whoever was testing didn't even try.
spacebuddy wrote:You should sandbox your application, this will let you know if you
are using the correct directory for writing. This is also good practice
for the future.

I believe /Library/Container/Bundle Identifier/ is the proper place to write/read data for your program
if you are going to be distributing your apps to the app store.
Yeah I would do that but the app for app data but it doesn't export anything except for what is being converted for the user.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: GetHomeDirectory()

Post by jamirokwai »

Hi J.Baker,

Apple approved my App after all, needing 5 versions ...
I only had to remove the prefilled Home-Directory. The String-Gadget is empty now. What a mess :?
Regards,
JamiroKwai
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: GetHomeDirectory()

Post by J. Baker »

jamirokwai wrote:Hi J.Baker,

Apple approved my App after all, needing 5 versions ...
I only had to remove the prefilled Home-Directory. The String-Gadget is empty now. What a mess :?
Glad to hear!

I just removed mine too and resubmitted. We'll see.
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
jamirokwai
Enthusiast
Enthusiast
Posts: 796
Joined: Tue May 20, 2008 2:12 am
Location: Cologne, Germany
Contact:

Re: GetHomeDirectory()

Post by jamirokwai »

J. Baker wrote:
jamirokwai wrote:Hi J.Baker,

Apple approved my App after all, needing 5 versions ...
I only had to remove the prefilled Home-Directory. The String-Gadget is empty now. What a mess :?
Glad to hear!

I just removed mine too and resubmitted. We'll see.
Good luck :-)
I am satisfied now, as I had 15 downloads in 3 days... Now for the 15 per day :mrgreen:
Regards,
JamiroKwai
User avatar
J. Baker
Addict
Addict
Posts: 2181
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: GetHomeDirectory()

Post by J. Baker »

Awesome! :D
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Post Reply