-
Notifications
You must be signed in to change notification settings - Fork 78
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
shouldn't require admin permissions on macOS #373
Comments
Thanks for the hint! Unfortunately I don't know of a good way of switching to this new path without risking having the plugin installed twice for users which used previous versions of the plugin. Are you familiar with a way how this could be handled in the pkg file? I think most users are not familiar with how to execute a shell script so I am not sure if would really be an alternative to the installer. |
I could just add a few lines to the script to handle that case mkdir -p /Library/Application\ Support/obs-studio/plugins/advanced-scene-switcher/
if [[ -d /Library/Application\ Support/obs-studio/plugins/advanced-scene-switcher/ ]]; then
rsync -avhP --no-owner --no-group /Library/Application\ Support/obs-studio/plugins/advanced-scene-switcher/ ~/Library/Application\ Support/obs-studio/plugins/advanced-scene-switcher/
rm -rf /Library/Application\ Support/obs-studio/plugins/advanced-scene-switcher/
fi
I think I don't know if there's a user-safe way to create a pkg, but I'll look into it.
All you have to do is double click. In fact, I think I could rename it to
I think adding the script as an additional method would be a great first step. And maybe a README.txt: How to Install
==========
Double click `install.sh`.
`install.sh` will install to your user Library folder without requiring admin permissions or modifying you system volume.
If you'd prefer to install to the system Library folder, double-click the SceneSwitcher.pkg. |
That would be much appreciated - thanks! :)
I am not sure if it is just an issue with my VM but double clicking *.sh files only seems to open the "TextEdit" application and adjusting the extension to *.app followed by a double click does not seem to have any effect. |
In preparation to support OBS 28 the build system was adjusted to create installers which no longer require admin permissions on MacOS. A build should be available here in a few minutes: |
The plugin has an unsigned pkg file that installs administrator privileges to install into a system location:
/Library/Application\ Support/obs-studio/plugins/advanced-scene-switcher/
However, it all that needs to happen is to copy into the user's home directory:
Related to: #21
Solution B (install.sh.zip)
The thing that would require the least work would be to include an install script that uses the existing pkg without requiring admin permissions:
~/Downloads/SceneSwitcher/MacOs/install.sh
(I've tested this to confirm that it'll work if double-clicked on from the same location as the current .pkg)
Solution A
Ideally, the install should be this simple - no unsigned pkg, no unknown developer warnings, no admin permissions:
macOS/install.sh
:And the file structure would look like this:
The text was updated successfully, but these errors were encountered: