Skip to content

Commit

Permalink
Fix macOS Finder cannot copy file into vault if CIPHERDIR is on SMB
Browse files Browse the repository at this point in the history
  • Loading branch information
JokerQyou committed Aug 3, 2024
1 parent f526f09 commit 35c715d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions server/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,13 @@ func (m *VaultManager) GocryptfsUnlockVault(vaultId int64, password string) erro
}
// Start a gocryptfs process to unlock this vault
args := []string{"-fg"}
if runtime.GOOS == "darwin" {
args = append(
args,
"-ko",
fmt.Sprintf("volname=%s,local,auto_xattr,noappledouble", filepath.Base(vault.Path)),
)
}
// Readonly mode
if vault.ReadOnly {
args = append(args, "-ro")
Expand Down

0 comments on commit 35c715d

Please sign in to comment.