Ticket #180 (closed enhancement: fixed)
Portable Cyberduck
| Reported by: | Gand | Owned by: | dkocher |
|---|---|---|---|
| Priority: | normal | Milestone: | 2.5.5 |
| Component: | core | Version: | 2.5.4 |
| Severity: | normal | Keywords: | |
| Cc: | gand@… | Platform: | |
| Architecture: |
Description
Add a way to set the preference folder path so that, running Cyberduck via script, can be opened on an external drive (USB thumb, etc) taking all settings with you. A portable app is launched via a script that set the prefernce folder path to the portable drive and then open the app. Have a look at Adium script or AbiWord script to easy understand how it work. This was inspired by portableapps.com. All OS X portable apps are here.
Change History
comment:2 Changed 5 years ago by anonymous
- Status changed from assigned to closed
- Resolution set to fixed
comment:3 Changed 5 years ago by dkocher
- Status changed from closed to reopened
- Resolution fixed deleted
Must also find a way to save the ~/Library/Preferences/ch.sudo.cyberduck.plist at a alternate location.
comment:4 Changed 5 years ago by Gand
By the moment, quite all Portable apps use ~/Library/Preferences/*.plist on HD.
comment:6 Changed 5 years ago by dkocher
One can set the property application.support.path; this is where Cyberduck will save its History, Queue items and bookmarks. This is by default ~/Library/Application Support/Cyberduck.
defaults write ch.sudo.cyberduck application.support.path "/Volumes/Movable Disk/Something"
There is still no solution for the general Preferences in ~/Library/Preferences/.
comment:7 Changed 5 years ago by dkocher
- Cc gand@… added
- Status changed from reopened to closed
- Resolution set to fixed
Ignore the above instructions. Info.plist of Cyberduck.app must now have (or similar)
<key>application.support.path</key> <string>/Volumes/Movable Disk/Cyberduck/Preferences</string> <key>application.preferences.path</key> <string>/Volumes/Movable Disk/Cyberduck/Preferences/Preferences.plist</string>
You can also write these settings using the defaults command (use an absolute pathname to refer to the Info.plist and omit the plist extension)
defaults write "/Volumes/Movable Disk/Cyberduck.app/Contents/Info" application.support.path "/Volumes/Movable Disk/Cyberduck/Preferences" defaults write "/Volumes/Movable Disk/Cyberduck.app/Contents/Info" application.preferences.path "/Volumes/Movable Disk/Cyberduck/Preferences/Preferences.plist"
