Skip to content

Commit

Permalink
commit patch 23654770
Browse files Browse the repository at this point in the history
  • Loading branch information
turly221 committed Dec 11, 2024
1 parent aef0746 commit 4f73f64
Show file tree
Hide file tree
Showing 4 changed files with 2,803 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/snap/cmd_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,10 @@ func createUserDataDirs(info *snap.Info) error {
return fmt.Errorf(i18n.G("cannot get the current user: %v"), err)
}

snapDir := filepath.Join(usr.HomeDir, dirs.UserHomeSnapDir)
if err := os.MkdirAll(snapDir, 0700); err != nil {
return fmt.Errorf(i18n.G("cannot create snap home dir: %w"), err)
}
// see snapenv.User
instanceUserData := info.UserDataDir(usr.HomeDir)
instanceCommonUserData := info.UserCommonDataDir(usr.HomeDir)
Expand Down
Loading

0 comments on commit 4f73f64

Please sign in to comment.