artginzburg / MiddleClick-Sonoma

 "Wheel click" with three-finger click/tap for Trackpad and Magic Mouse.
GNU General Public License v3.0
1.47k stars 85 forks source link

Forces install to /Applications/MiddleClick.app instead of ~/Applications/MiddleClick.app #14

Closed kajukenbo closed 2 years ago

kajukenbo commented 4 years ago

Not great on a shared machine or one that does not allow writing to /Applications

artginzburg commented 4 years ago

Any screenshots? I have an app instance working from the ~/Downloads folder right now, no problems ¯_(ツ)_/¯

kajukenbo commented 4 years ago

% brew cask reinstall middleclick --verbose ==> Downloading https://github.com/DaFuqtor/MiddleClick/releases/download/2.4.5/MiddleClick.zip Already downloaded: /Users/zzzzz/Library/Caches/Homebrew/downloads/8b9d030ac4cb1df0944d499031a09b75a336c027449972a330d6417e02b6bd2c--MiddleClick.zip ==> Verifying SHA-256 checksum for Cask 'middleclick'. ==> Uninstalling Cask middleclick ==> Removing login item /Applications/MiddleClick.app ==> Removing login item MiddleClick Warning: It seems there is already an App at '/Users/zzzzz/homebrew/Caskroom/middleclick/2.4.5/MiddleClick.app'; overwriting. ==> Removing App '/Users/zzzzz/homebrew/Caskroom/middleclick/2.4.5/MiddleClick.app'. ==> Purging files for version 2.4.5 of Cask middleclick ==> Installing Cask middleclick unzip -o /Users/zzzzz/Library/Caches/Homebrew/downloads/8b9d030ac4cb1df0944d499031a09b75a336c027449972a330d6417e02b6bd2c--MiddleClick.zip -d /var/folders/17/g5sbky9d4f986csy6l6r6txw4xwq5f/T/d20191205-80613-1bbs6j9 cp -pR /var/folders/17/g5sbky9d4f986csy6l6r6txw4xwq5f/T/d20191205-80613-1bbs6j9/MiddleClick.app/. /Users/zzzzz/homebrew/Caskroom/middleclick/2.4.5/MiddleClick.app chmod -Rf +w /var/folders/17/g5sbky9d4f986csy6l6r6txw4xwq5f/T/d20191205-80613-1bbs6j9 ==> Moving App 'MiddleClick.app' to '/Applications/MiddleClick.app'. Password: zzzzz is not in the sudoers file. This incident will be reported. ==> Purging files for version 2.4.5 of Cask middleclick Error: Failure while executing;/usr/bin/sudo -E -- /bin/mkdir -p /Applications` exited with 1. Here's the output: zzzzz is not in the sudoers file. This incident will be reported.

Follow the instructions here: https://github.com/Homebrew/homebrew-cask#reporting-bugs /Users/zzzzz/homebrew/Library/Homebrew/system_command.rb:176:in assert_success!' /Users/zzzzz/homebrew/Library/Homebrew/system_command.rb:53:inrun!' /Users/zzzzz/homebrew/Library/Homebrew/system_command.rb:29:in run' /Users/zzzzz/homebrew/Library/Homebrew/system_command.rb:33:inrun!' /Users/zzzzz/homebrew/Library/Homebrew/cask/artifact/moved.rb:48:in move' /Users/zzzzz/homebrew/Library/Homebrew/cask/artifact/moved.rb:13:ininstall_phase' /Users/zzzzz/homebrew/Library/Homebrew/cask/installer.rb:218:in block in install_artifacts' /Users/zzzzz/homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/lib/ruby/2.6.0/set.rb:777:ineach' /Users/zzzzz/homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/lib/ruby/2.6.0/set.rb:777:in each' /Users/zzzzz/homebrew/Library/Homebrew/cask/installer.rb:209:ininstall_artifacts' /Users/zzzzz/homebrew/Library/Homebrew/cask/installer.rb:101:in install' /Users/zzzzz/homebrew/Library/Homebrew/cask/installer.rb:127:inreinstall' /Users/zzzzz/homebrew/Library/Homebrew/cask/cmd/reinstall.rb:13:in block in run' /Users/zzzzz/homebrew/Library/Homebrew/cask/cmd/reinstall.rb:7:ineach' /Users/zzzzz/homebrew/Library/Homebrew/cask/cmd/reinstall.rb:7:in run' /Users/zzzzz/homebrew/Library/Homebrew/cask/cmd/abstract_command.rb:36:inrun' /Users/zzzzz/homebrew/Library/Homebrew/cask/cmd.rb:92:in run_command' /Users/zzzzz/homebrew/Library/Homebrew/cask/cmd.rb:158:inrun' /Users/zzzzz/homebrew/Library/Homebrew/cask/cmd.rb:123:in run' /Users/zzzzz/homebrew/Library/Homebrew/cmd/cask.rb:9:incask' /Users/zzzzz/homebrew/Library/Homebrew/brew.rb:102:in <main>'

kajukenbo commented 4 years ago

Should I move everything to ~/Downloads/homebrew instead of ~/homebrew ?

artginzburg commented 4 years ago

I mean, any folder is suitable for me, but I didn't know that you tried to do this via Homebrew.

artginzburg commented 4 years ago

I think this problem could be solved by reading some Homebrew manuals. In theory, they were supposed to give people the opportunity to change the installation location.

kajukenbo commented 4 years ago

FWIW, I followed the "Recommended" instructions from here: https://github.com/DaFuqtor/MiddleClick-Catalina

Install Via 🍺 Homebrew Cask (Recommended) brew cask install middleclick

Am I to take it to mean you don't really expect people to install it that way?

artginzburg commented 4 years ago

It's about Homebrew, I'm sure they have an option allowing this lol

artginzburg commented 2 years ago

This can be solved by choosing Direct Download over Homebrew. The app works from anywhere.