-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Services (i.e. workflows) installation doesn’t work #2264
Comments
Hey @niksy, is there any cask that has this problem? The service casks I tried (wordservice, calcservice), both with extension |
We should look at whether it is possible to address this and other related issues using Apple's CLI admin tools such as |
@miguelfrde I was trying with some of my custom services created with Automator. I’ve searched this repo for some services with |
@niksy I've been thinking about this and I came up with an idea (inspired by #2258), which may solve this problem (at least it works for widgets). The idea is to hard link This adds one dependency to homebrew-cask (coreutils). @rolandwalker I'm not familiar with |
@miguelfrde directory hard links sounds worth pursuing. They have a bad reputation on Unix filesystems but are supposed to be are safe on HFS. This is not really a reference, just some context for anyone who is interested: http://unix.stackexchange.com/questions/22394/why-hard-links-not-allowed-to-directories-in-unix-linux#comment30555_22406. Re: dependencies, there was an IRC discussion about #1992 in which @phinze requested that any dependency be deferred to Cask install time. In other words, #1992 is the wrong way to do dependency, because it patches |
One way to go is to maybe simulate clicks on shown windows via AppleScript.
This can go as part of Now, this is highly error prone, since we’re targeting window and button by their name, and it is possible that OS X will request Accessibility access for AppleScript which can confuse users not familiar with this. |
@niksy Not only is it error prone, I very much doubt @phinze would aprove (last quote and first sentence of following paragraph). |
@miguelfrde directory hardlinks also solve some other issues such as (closed) #1722 (I tested). Probably #1351 also (did not test). However, directory hardlinks are quite an odd beast, so one ought to proceed slowly. Obviously they are robust at the filesystem level in OS X as they have been used for years for Time Machine. But Unix-lineage software such as Ruby might assume they don't exist. Starting with |
Linking is a mess, and has proven to not be the best solution. That should be changed, and we’ll be working towards that. |
Similar to #2206, simply symlinking Automator created service (with
.workflow
extension) doesn’t work. Symlinked service is shown inside Services menu, but activating it doesn’t do anything.It will work only if you explictly confirm that you want to install service (by activating workflow file and pressing "Install").
Maybe create something similar to pull request #2216 (@miguelfrde)?
The text was updated successfully, but these errors were encountered: