AW: Need advice with Lion permission changes
janschenkel at yahoo.com
Thu Aug 4 07:24:20 EDT 2011
You can place them there, but the user has to have the right permissions.
LiveCode 4.5 added support for 'elevated processes' - so you'd have to create a separate (faceless) application and use 'open elevated process ...' which will prompt the user for the required password, and then the separate elevated process can write to those places.
Note that you should only use those places for 'support' files, not database files or anything of the sort. Those you should proably put somewhere in /users/shared or something.
Quartam Reports & PDF Library for LiveCode
"As we grow older, we grow both wiser and more foolish at the same time." (La Rochefoucauld)
----- Original Message -----
From: Tiemo Hollmann TB <toolbook at kestner.de>
To: 'How to use LiveCode' <use-livecode at lists.runrev.com>
Sent: Thursday, August 4, 2011 12:43 PM
Subject: AW: Need advice with Lion permission changes
That is a real pain in the ass, because my app doesn't run anymore under
lion and I haven't found a solution yet.
I have read over the last days guidelines and threads, but have not found
any answer yet. Apple says about the /library/application support/ in the
Mac OS X Developer library: " For example, you might use this directory to
store application-created data files, configuration files, templates, or
other fixed or modifiable resources that are managed by the application.",
But I CAN'T create files anymore in this directory and I have nothing found
in the developer guidelines of apple, what has changed on lion and where to
store now common files.
The users directories are no solution for me (read my old threads)
I tried to create first a user folder in the users directory and then copy
it to the common application support folder, but the access is obviously
denied. I could do it only with sudo in the terminal. But if I try to run
sudo mv ... in the shell from livecode, I get the same error, as already
Josh: "no tty present and no askpass program specified" Can anybody shed
some light on this? (same with sudo ditto) I have no clue what it means and
how I can get it working with sudo.
I can't believe that there is no place anymore, where you can store common
app files! Am I the only one who needs common app files?
I a pretty helpless and thankfull for every hint
P.S. @Ken Ray: You said " Yes, I got burned as well, but I *still* plan on
writing "all users" support files in the /Library/Application Support
folder, even if I have to go the extra mile to make it happen." I would love
if you could share your extra mile!
> -----Ursprüngliche Nachricht-----
> Von: use-livecode-bounces at lists.runrev.com [mailto:use-livecode-
> bounces at lists.runrev.com] Im Auftrag von Pete
> Gesendet: Dienstag, 2. August 2011 23:02
> An: How to use LiveCode
> Betreff: Re: Need advice with Lion permission changes
> I too am interested in the answer to this. I'm not sure it ever got
> resolved in the previous thread on the question. Is there anywhere under
> Lion that files can be installed for use by all users without having to
> resort to chmod commands?
> Molly's Revenge <http://www.mollysrevenge.com>
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode