Navigation Menu

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

Portable Cyberduck #12129

Closed
cyberduck opened this issue Feb 1, 2006 · 5 comments
Closed

Portable Cyberduck #12129

cyberduck opened this issue Feb 1, 2006 · 5 comments
Assignees
Milestone

Comments

@cyberduck
Copy link
Collaborator

Gand created the issue

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.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Must also find a way to save the ~/Library/Preferences/ch.sudo.cyberduck.plist at a alternate location.

@cyberduck
Copy link
Collaborator Author

Gand commented

By the moment, quite all Portable apps use ~/Library/Preferences/*.plist on HD.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

But that defeats the idea of a portable application.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

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/.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants