Comments (4)
I don't think it really matter practically whether something's copied or a symlink because it's being done for every version, so this seems fine.
However, on my machine, TextMate doesn't complain if the file is a symlink. Are you sure it's not complaining for some other reason? In other words, does it say that's why it's asking for admin rights, and does it copy the file (overwriting the symlink) if you enter an admin password?
FWIW, I've tested on my machine that the symlink can be either owned by my regular user or root:wheel. TextMate's preferences report that shell support is installed.
from recipes.
I had been preparing a detailed list of the steps I took, but thought I'd better retrace my steps from earlier today... And either something is behaving slightly differently, or I did something slightly different earlier. I would swear that earlier I had tested as non-admin user with symlink and as copy, and did not got prompt for admin creds with symlink of 'mate', but did not get prompt with copy of 'mate' in /usr/local/bin... Just tested on a different lab machine as non-admin and now, either way I get prompt for admin creds on first launch and I cannot yet figure out what TextMate is trying to do that it's asking for this.
Sorry for bother! If I figure this out, can add comment here if you like (I know not same issue technically, but perhaps helpful?)
from recipes.
Before I forget, this is dealing with TextMate 2.0-alpha.9487
Here are some ARD screenshots of the remote/lab computer of steps I was taking:
- Before logging in had done rm -fr for non-admin user home folder I'd tested with, and recreated (createhomedir -c -u ), as well as /Applications/TextMate.app and /usr/local/bin/mate. I did this to try to start with a clean slate.
- I then ran Munki's managedsoftwareupdate which installed TextMate2. In this instance was my version of postinstall script which made copy of 'mate' rather than symlink (you can see it in the Finder window to the left).
- I was curious if there was any diagnostic output, so I ran the TextMate binary directly from the command line. The prompt for admin credentials had popped up and I had hit Esc or clicked cancel.
- What had made me think that 'cp' was required over symlink was the output you'll see at the bottom of the Terminal window, the line '/bin/cp -p ...' and what led to my original posting.
- After quitting TextMate.app, which in Terminal returned me to a command prompt.
- Out of curiosity, and as a sanity check, did a SHA256 hash check between 'mate' in /Applications/TextMate.app/Contents/Resources and /usr/local/bin. They're the same.
Note: I just repeated the first step after deleting /Users/ folder and createhomdir again, and erasing TextMate.app and 'mate' and reinstalling via Munki. This time I used stock autopkg recipe which created symlink. When prompted for admin credentials I did enter them (as opposed to prior Esc/Cancel) and symlink in /usr/local/bin was replaced with 'cp' copy of 'mate'! (Hrmm...)
from recipes.
Sorry for the delay in dealing with this one. I was never able to get it to request auth due to the symlink, but just for reference here's what TextMate does currently to install the binary:
Thanks for investigating!
from recipes.
Related Issues (20)
- Acrobat Adobe Reader DC has been reverted to Acrobat Adobe Reader (DC removed) HOT 4
- Wrong pattern in line 189 munkitools.munki.recipe HOT 1
- Error with GoogleChrome.pkg recipe HOT 3
- MSAutoUpdate.download.recipe - processor MSOfficeMacURLandUpdateInfoProvider can't be found HOT 1
- XQuartz sparkle URL has changed HOT 3
- XQuartz download recipe pointing to old Sparkle feed
- com.github.autopkg.munki.MSTeams pulls an old version HOT 2
- com.github.autopkg.munki.MSTeams pulls old version HOT 3
- Feature request - munkitools6 recipe should support the MacAdmins signed releases HOT 1
- FR - MSOffice - MSOfficeMacURLandUpdateInfoProvider.py - BASE_URL change suggestion HOT 4
- Errant plist data in metadata for MSCompanyPortal download recipe causes autopg run to abort
- AdobeReader.pkg.recipe breaks package with Ventura
- Evernote.download.recipe - Processor: URLDownloader: Error: curl: (22) The requested URL returned error: 404 HOT 3
- Evernote.download.recipe -- Download URL has changed (again) HOT 1
- Dropbox download/munki recipes every so often appears to install beta version instead of production version
- Handbrake: incorrect file type is downloaded from GitHub
- package receipt not valid mechanism for Adobe Reader HOT 7
- AdobeReader recipes fail to find new versions HOT 2
- MSOfficeMacProduct.download misleading description HOT 1
- download.MSCompanyPortal broken because of upstream issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recipes.