Last active
April 8, 2020 00:13
-
-
Save Superbil/607338 to your computer and use it in GitHub Desktop.
Open another Dropbox account for mac, new version https://github.com/Superbil/Dropbox-AltStarter-app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 建立一個新的.dropbox目錄,存另一個帳號的資料 | |
# Make another .dropbox dir to save data | |
HOME=/Users/$USER/.dropbox-alt | |
/Applications/Dropbox.app/Contents/MacOS/Dropbox |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make another dropbox app | |
mkdir -p /Users/$USER/Applications/DropboxAltStarter.app/Contents/MacOS/ | |
cat > /Users/$USER/Applications/DropboxAltStarter.app/Contents/Info.plist << EOF | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundlePackageType</key> | |
<string>APPL</string> | |
<key>CFBundleExecutable</key> | |
<string>DropboxAltStarter</string> | |
<key>LSUIElement</key> | |
<string>1</string> | |
</dict> | |
</plist> | |
EOF | |
cat > /Users/$USER/Applications/DropboxAltStarter.app/Contents/MacOS/DropboxAltStarter << EOF | |
#!/bin/bash | |
# Assumes you have Dropbox in /Applications | |
HOME=/Users/$USER/.dropbox-alt /Applications/Dropbox.app/Contents/MacOS/Dropbox | |
EOF | |
chmod 755 /Users/$USER/Applications/DropboxAltStarter.app/Contents/MacOS/DropboxAltStarter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment