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
QMacInstallDialog: Use Authorization Services to install command line to... #151
Conversation
Thanks for looking into this issue. I understand that the alternative is to have a helper application, which then required code signing. |
Rather than trying to implement this at all in the GUI, perhaps the menu option should instead just pop up instructions on how to do it via the command line. I expect anyone wanting to install the command line interface is willing to use the command line with FWIW, I just put |
I've updated the pull request to use apple script to install the symlinks as root without using a deprecated api. |
On May 6, 2015 12:16 PM, oyarzun notifications@github.com wrote:
|
Rather than using |
I too want to see Brad's suggested changes. |
Furthermore, if one chooses a destination directory that does not require admin rights, we shouldn't prompt for them. My above suggestion of requiring a manual |
No it will not prompt you again if you are running the GUI as root. From what I have seen, OSX GUI applications which install command line tools either provide you with a menu option to install the tools or have an pkg installer. The menu will install the tools to either /usr/bin or /usr/local/bin without providing the option to pick a directory. Atom and Unison are ones that use a menu item. Should I update the pull request to use cmSystemTools::RunSingleCommand? Or just change it to provide the instructions to run the gui with sudo (which to your point would only be required if they wanted it in a dir that required admin rights)? |
My preference is to remove the current menu option and add a different one in an appropriate place to get help for installing the symlinks. Then provide instructions for command-line installation, e.g.
Of course the path in the command line would be computed from the actual location of the executable. This approach is similar to |
By the way, there is also a way to install Xcode command-line tools from within the Xcode GUI (Xcode Preferences -> Downloads). However, I like Brad's suggestion over the current patch. |
Use authorization services to install commad line tool symlinks on OSX.
related to bug http://public.kitware.com/Bug/print_bug_page.php?bug_id=10056
http://stackoverflow.com/questions/23849962/cmake-installer-for-mac-fails-to-create-usr-bin-symlinks