EnableGlobbing no longer supported on OS X 10.10?
Dear Launchd list, I use EnableGlobbing in my launchd.plist in order to launch a tool located in a user's directory (this way I can use ~ and I do not need to hard-wire the user's directory path, which can of course change any time, even in OS X[^1]). On OS X 10.10 GM candidate, the key is still documented in the man page and I can even see a new LAUNCH_JOBKEY_ENABLEGLOBBING in the XPC API diffs. But in reality, I see this: com.apple.xpc.launchd[1]: (my.bundle.id) The EnableGlobbing key is no longer respected. Please remove it. Why is the key being removed? Is there going to be any replacement for referring to paths in user's home directory? [^1]: http://support.apple.com/kb/HT1428?viewlocale=en_US&locale=en_US -- Adam Nohejl, Lokiware http://lokiware.info twitter: @lokiware
Adam, Yes, that key is no longer implemented. Please file a bug so we can either update the documentation or implement it. -damien On 3 Oct, 2014, at 00:42, Adam Nohejl <adam@lokiware.info> wrote:
Dear Launchd list,
I use EnableGlobbing in my launchd.plist in order to launch a tool located in a user's directory (this way I can use ~ and I do not need to hard-wire the user's directory path, which can of course change any time, even in OS X[^1]).
On OS X 10.10 GM candidate, the key is still documented in the man page and I can even see a new LAUNCH_JOBKEY_ENABLEGLOBBING in the XPC API diffs.
But in reality, I see this:
com.apple.xpc.launchd[1]: (my.bundle.id) The EnableGlobbing key is no longer respected. Please remove it.
Why is the key being removed? Is there going to be any replacement for referring to paths in user's home directory?
[^1]: http://support.apple.com/kb/HT1428?viewlocale=en_US&locale=en_US
-- Adam Nohejl, Lokiware http://lokiware.info twitter: @lokiware
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
Back to the original question… how exactly, in Apple’s infinite wisdom, are we supposed to safely refer to a user’s home directory? -Ed On Oct 3, 2014, at 12:01 PM, Damien Sorresso <dsorresso@apple.com> wrote:
Adam,
Yes, that key is no longer implemented. Please file a bug so we can either update the documentation or implement it. -damien
On 3 Oct, 2014, at 00:42, Adam Nohejl <adam@lokiware.info> wrote:
Dear Launchd list,
I use EnableGlobbing in my launchd.plist in order to launch a tool located in a user's directory (this way I can use ~ and I do not need to hard-wire the user's directory path, which can of course change any time, even in OS X[^1]).
On OS X 10.10 GM candidate, the key is still documented in the man page and I can even see a new LAUNCH_JOBKEY_ENABLEGLOBBING in the XPC API diffs.
But in reality, I see this:
com.apple.xpc.launchd[1]: (my.bundle.id) The EnableGlobbing key is no longer respected. Please remove it.
Why is the key being removed? Is there going to be any replacement for referring to paths in user's home directory?
[^1]: http://support.apple.com/kb/HT1428?viewlocale=en_US&locale=en_US
-- Adam Nohejl, Lokiware http://lokiware.info twitter: @lokiware
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
Assuming you’re talking about per-user agent, isn’t it current working directory? I.e. you can refer to it using ‘.’. On 03 окт. 2014 г., at 23:30, Ed Wynne <arwyn@phasic.com> wrote:
Back to the original question… how exactly, in Apple’s infinite wisdom, are we supposed to safely refer to a user’s home directory?
-Ed
On Oct 3, 2014, at 12:01 PM, Damien Sorresso <dsorresso@apple.com> wrote:
Adam,
Yes, that key is no longer implemented. Please file a bug so we can either update the documentation or implement it. -damien
On 3 Oct, 2014, at 00:42, Adam Nohejl <adam@lokiware.info> wrote:
Dear Launchd list,
I use EnableGlobbing in my launchd.plist in order to launch a tool located in a user's directory (this way I can use ~ and I do not need to hard-wire the user's directory path, which can of course change any time, even in OS X[^1]).
On OS X 10.10 GM candidate, the key is still documented in the man page and I can even see a new LAUNCH_JOBKEY_ENABLEGLOBBING in the XPC API diffs.
But in reality, I see this:
com.apple.xpc.launchd[1]: (my.bundle.id) The EnableGlobbing key is no longer respected. Please remove it.
Why is the key being removed? Is there going to be any replacement for referring to paths in user's home directory?
[^1]: http://support.apple.com/kb/HT1428?viewlocale=en_US&locale=en_US
-- Adam Nohejl, Lokiware http://lokiware.info twitter: @lokiware
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
4 okt 2014 kl. 06:46 skrev Ilya Kulakov <kulakov.ilya@gmail.com>:
Assuming you’re talking about per-user agent, isn’t it current working directory? I.e. you can refer to it using ‘.’.
At least on my 10.10 test machine CWD for the launched binary is /, and if you put a relative path in ProgramArguments to the binary launchd will fail with "Service could not be initialized" when loading it. -- Per Olofsson, IT-service, University of Gothenburg
Assuming you’re talking about per-user agent, isn’t it current working directory? I.e. you can refer to it using ‘.’. On 03 окт. 2014 г., at 23:30, Ed Wynne <arwyn@phasic.com> wrote:
Back to the original question… how exactly, in Apple’s infinite wisdom, are we supposed to safely refer to a user’s home directory?
-Ed
On Oct 3, 2014, at 12:01 PM, Damien Sorresso <dsorresso@apple.com> wrote:
Adam,
Yes, that key is no longer implemented. Please file a bug so we can either update the documentation or implement it. -damien
On 3 Oct, 2014, at 00:42, Adam Nohejl <adam@lokiware.info> wrote:
Dear Launchd list,
I use EnableGlobbing in my launchd.plist in order to launch a tool located in a user's directory (this way I can use ~ and I do not need to hard-wire the user's directory path, which can of course change any time, even in OS X[^1]).
On OS X 10.10 GM candidate, the key is still documented in the man page and I can even see a new LAUNCH_JOBKEY_ENABLEGLOBBING in the XPC API diffs.
But in reality, I see this:
com.apple.xpc.launchd[1]: (my.bundle.id) The EnableGlobbing key is no longer respected. Please remove it.
Why is the key being removed? Is there going to be any replacement for referring to paths in user's home directory?
[^1]: http://support.apple.com/kb/HT1428?viewlocale=en_US&locale=en_US
-- Adam Nohejl, Lokiware http://lokiware.info twitter: @lokiware
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
_______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/launchd-dev
participants (5)
-
Adam Nohejl
-
Damien Sorresso
-
Ed Wynne
-
Ilya Kulakov
-
Per Olofsson