Repository navigation
Installation not fully possible as non-admin as the main account #27
Replies: 4 comments 1 reply
|
This happens because Peel checks whether the currently logged-in macOS GUI user ( ❌ Before (Why Peel refuses to register the helper from a standard user session)In public static var isAdministrator: Bool {
UserAuthorization.isAdministrator(getuid()) // Checks if current GUI user is in 'admin' group
}
public static func changeAsAnAdministrator(
_ change: () async throws -> Void,
isAdministrator: () async -> Bool = { await isAdministratorNow() }
) async throws -> Bool {
guard await isAdministrator() else { return false } // Blocks install when logged in as non-admin!
try await change()
return true
}And in if status == .enabled, isResponding != false {
self = .ready
return
}
guard isAdministrator else {
self = .notThisAccount // Shows the "Log in as an administrator..." banner
return
}Because ✅ After (How to register & enable the Peel helper without logging into the macOS GUI as the admin user)Notice in Since you have the admin username and temporary password, you can register the helper from Terminal inside your normal non-admin session without logging into the macOS GUI as the admin user: # 1. Switch to the admin account in Terminal:
su - <admin_username>
# 2. Launch Peel once as the admin user (or trigger its helper registration) so getuid() is in the 'admin' group:
/Applications/Peel.app/Contents/MacOS/Peel(Alternatively, if su - <admin_username>
sudo launchctl bootstrap system /Applications/Peel.app/Contents/Library/LaunchDaemons/com.tuguidragos.Peel.Helper.plist
sudo launchctl enable system/com.tuguidragos.Peel.HelperOnce |
|
Hey @viniciusscience, i saw you answered six discussions in six different projects within 12 seconds, this one included.. Nobody can check answers that fast, and the launchctl part of your answer here can make things worse for the person asking. Please do not do this, it is not nice to the people who come for help and it can hurt your own name. If you want to help, try the project first, then you are welcome here. |
|
Hey @polarfoxDev, sorry for the inconvenience. The banner is not about the extension or App Management, it is about the Peel helper, and that is a different thing. The extension you turned on is the Finder extension (System Settings lists it under File Providers). It only adds Peel to the menu when you right click an app in Finder. App Management is a permission, and it showing as not known yet is normal, macOS gives apps no way to check it, so Peel only finds out when it first needs it. The helper is a small part of Peel that runs in the background and moves what only an admin can change, like the apps in the Applications folder. Right now only an admin can install it, from Peel on their own account, and that is the step you cannot do. I have received several messages like this, so I will make it possible in the next release, which will be out in a few days. You will be able to install the helper from your own account with the admin name and password. Until then, the only way is for an admin to log in to their own account once, open Peel and install the helper there. After that it works from your account too, and Peel asks for the admin name and password each time it needs the helper. Please do not paste the commands from the comment above into Terminal, they do not work. If you already ran them, nothing is broken, so there is nothing to undo. |
|
you can now install the helper from your own account, it came with 1.4.1. press Install on Home and type the admin name and password, then turn Peel on in Login Items, which Peel opens for you (macOS asks for them once more there). thanks for waiting |









you can now install the helper from your own account, it came with 1.4.1. press Install on Home and type the admin name and password, then turn Peel on in Login Items, which Peel opens for you (macOS asks for them once more there). thanks for waiting