Skip to content
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

OpenSCToken does not get removed/unregistered #24

Closed
mouse07410 opened this issue Feb 5, 2020 · 0 comments
Closed

OpenSCToken does not get removed/unregistered #24

mouse07410 opened this issue Feb 5, 2020 · 0 comments

Comments

@mouse07410
Copy link

mouse07410 commented Feb 5, 2020

I am not sure if this problem manifests only if you build OpenSCToken from source and the copy of its executable is present somewhere on your system.

Config

MacOS Mojave 10.14.6, Xcode-11.3.1. Current master of OpenSC and OpenSCToken, OpenSSL_1_1_1-stable (1.0.2 is deprecated - it's time to move off it ;).

Symptoms

  1. Build and install (from the OpenSCToken.dmg) OpenSCTokenApp.app.
  2. Start it, observe it registering the extension. So far so good.
  3. Insert the token, observe (e.g., via ps -ef | fgrep OpenSCToken) that OpenSCToken started.
  4. Remove the token, uninstall OpenSC via /usr/local/bin/opensc-uninstall. Double-check that the /Applications/OpenSCTokenApp.app has been removed - delete it if it wasn't.
  5. Insert the token - observe the extension started again.
  6. Remove the token, kill the running extension, insert the token - observe the extension started again.

Workaround

  • Determine what file the running extension was invoked from via
ps -ef | fgrep OpenSCToken

then

  • Remove that file via
pluginkit -r /full/path/to/that/file

Now the extension is gone.

Proposed Solution

I don't know - maybe write a real uninstaller that would locate and remove/unregister this extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant