Cyberduck Mountain Duck CLI

Opened 12 years ago

Closed 12 years ago

#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@… Architecture:
Platform:

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 (7)

comment:1 Changed 12 years ago by dkocher

  • Milestone set to 2.5.5
  • Status changed from new to assigned

comment:2 Changed 12 years ago by anonymous

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:3 Changed 12 years ago by dkocher

  • Resolution fixed deleted
  • Status changed from closed to reopened

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

comment:4 Changed 12 years ago by Gand

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

comment:5 Changed 12 years ago by dkocher

But that defeats the idea of a portable application.

comment:6 Changed 12 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 12 years ago by dkocher

  • Cc gand@… added
  • Resolution set to fixed
  • Status changed from reopened to closed

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"
Note: See TracTickets for help on using tickets.
swiss made software