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

Enable the module in Homebrew services #29

Open
UsamaKarim opened this issue Nov 12, 2024 · 6 comments
Open

Enable the module in Homebrew services #29

UsamaKarim opened this issue Nov 12, 2024 · 6 comments

Comments

@UsamaKarim
Copy link

Thanks. Your solution looks good.

  1. Can you please make the server as homebrew services?
  2. Please let it able to install and update with homebrew
@thevindu-w
Copy link
Owner

Is the requirement of making the app available in homebrew is to make it auto-update?
If so, will it be sufficient to create an auto-update script that can automatically check for updates periodically and install them?
If an auto-update script is not sufficient and homebrew is really necessary, I will try to make it available with homebrew (it may require some time).

@UsamaKarim
Copy link
Author

Is the requirement of making the app available in homebrew is to make it auto-update?
If so, will it be sufficient to create an auto-update script that can automatically check for updates periodically and install them?
If an auto-update script is not sufficient and homebrew is really necessary, I will try to make it available with homebrew (it may require some time).

homebrew provides ease of access for installing/updating/uninstalling the scripts and apps. Currently the clip share server is automatically being stopped by OS and I have to manually start it again.
There are few homebrew services I am currently using like ollama and spoofdpi and these are never automatically stopped and starts again on the system reboot.

@thevindu-w
Copy link
Owner

Currently the clip share server is automatically being stopped by OS and I have to manually start it again.

Did you install ClipShare using the installer script or did you manually run the executable? If it's installed using the installer script, it should automatically start once you log in. If it stops automatically, that may be a bug. Did you notice when it stops automatically (ex: it doesn't auto-start on boot/login, or it works for some time and stops while you are logged in)? Also, does it just stop accepting connections or does it stop all the clip_share processes? (You can check this by pgrep clip_share command. It should have at least 2 processes, but usually there should be 3 processes running)

Btw., I started to create a brew tap for ClipShare, but it might take some time to complete. It would be better if the current issue with ClipShare (being stopped by OS) could be fixed before getting it in Homebrew, as if this gets stopped automatically by OS, this issue can still affect even if you use a brew service for ClipShare.

@UsamaKarim
Copy link
Author

I installed it with installer.
Currently I have no clue when the connection was stopped. I'll try to debug the issue and let you know if found anything.

Thanks for taking into consideration.

@UsamaKarim
Copy link
Author

In my recent experience, the server didn't stop. But on every restart of mac it keeps asking for permission of network connection. It there a way to make it allow once?
Screenshot 2024-11-23 at 5 49 32 PM

@thevindu-w
Copy link
Owner

thevindu-w commented Nov 23, 2024

In my recent experience, the server didn't stop. But on every restart of mac it keeps asking for permission of network connection. It there a way to make it allow once?

This solution worked for me: https://stackoverflow.com/a/40067738
You have to replace Xcode in the command in the above thread with /Users/<your-username>/.local/bin/clip_share. So the commands would look like,

sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate off
/usr/libexec/ApplicationFirewall/socketfilterfw --add ~/.local/bin/clip_share  # ~ gives your home directory
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on

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

2 participants