It is currently Sat Oct 31, 2020 11:54 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: #PB_Directory_AllUserData
PostPosted: Sat Apr 11, 2020 12:55 pm 
Offline
User
User

Joined: Thu Aug 30, 2018 11:34 am
Posts: 32
ProgDataDir$ = GetUserDirectory(#PB_Directory_AllUserData)
Debug(ProgDataDir$) displays /Library/Application Support/

CreateDirectory(ProgDataDir$ + "MyApp") result is 0 which I suspect is due to permissions as permission is denied when I use mkdir in Terminal app without sudo.

How can PB app create a new directory in /Library/Application Support/ ?

macOS Catalina 10.15.4 PB572


Top
 Profile  
Reply with quote  
 Post subject: Re: #PB_Directory_AllUserData
PostPosted: Sat Apr 11, 2020 1:46 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 523
Normale you should write into ~/Libary/Application Support/, which is your personal folder.
If you want into the main folder you need Admin privileges.

https://www.purebasic.fr/english/viewtopic.php?p=508354#p508354


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye