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

Stash.app cannot find config file on MacOS #2284

Closed
shanty-chits opened this issue Feb 4, 2022 · 8 comments
Closed

Stash.app cannot find config file on MacOS #2284

shanty-chits opened this issue Feb 4, 2022 · 8 comments
Labels
bug Something isn't working
Milestone

Comments

@shanty-chits
Copy link

Describe the bug
On Mac, opening the latest development Stash.app opens the new setup screen no matter what. Console logs show current working directory as <private> even though the app is located with the library on a removable volume. Granting Stash.app full disk permissions does not fix the issue. If the setup wizard is completed, it ends with error creating config file: open config.yml: read-only file system. If -c or --config flags are passed like open Stash.app --args -c [path/to/config], the app does not open at all. If a symlink to the config file is placed in $HOME/.config/stash, the new setup screen still opens.

To Reproduce
Steps to reproduce the behavior:
Open Stash

Stash Version: (from Settings -> About):
v0.12.0-40-gc857e301

Desktop (please complete the following information):

  • OS: MacOS 12.2 Monterey
@shanty-chits shanty-chits added the help wanted Extra attention is needed label Feb 4, 2022
@kermieisinthehouse kermieisinthehouse added this to the Version 0.13.0 milestone Feb 4, 2022
@kermieisinthehouse kermieisinthehouse added bug Something isn't working and removed help wanted Extra attention is needed labels Feb 4, 2022
@kermieisinthehouse
Copy link
Collaborator

Hi, thanks for the report. We'll get this fixed before this hits stable.

Out of curiosity, when you filled out the setup to create a new stash folder, which option did you choose? If you put it in your home folder, does it work?

Is this a fresh Monterrey install, or did you upgrade an existing system to it?

@kermieisinthehouse kermieisinthehouse added the release-blocker Blocks the next release label Feb 5, 2022
@shanty-chits
Copy link
Author

Out of curiosity, when you filled out the setup to create a new stash folder, which option did you choose? If you put it in your home folder, does it work?

Selecting "current working directory" fails with the indicated error. Selecting the $HOME option hangs and the program has to be force-quit. Moving the app to the home folder doesn't seem to have any effect.

Is this a fresh Monterrey install, or did you upgrade an existing system to it?

Upgrade from an existing system.

@kermieisinthehouse
Copy link
Collaborator

Alright, I think I've got a handle on what's causing this. I need special handling on MacOS for "current directory".

@kermieisinthehouse
Copy link
Collaborator

Using open ./Downloads/Stash.app --args -c ~/my_custom_path/stash/config.yml should be a workaround at the moment.

@MC1R-13
Copy link

MC1R-13 commented Feb 25, 2022

This must be Monterey-specific. The latest Big Sur (11.6.4) has no such issue.

@newadventure079
Copy link

I'm on macOS 12.2.1 and am seeing this too.

open /Applications/stash/Stash.app/ --args -c /Applications/stash/config.yml doesn't work. The command completes and nothing happens

@WithoutPants WithoutPants modified the milestones: Version 0.13.0, "Soon" Mar 1, 2022
@newadventure079
Copy link

I finally got this to work. Not with the -c arg, but I left all that out and just ran open Stash.app and moved my config file from where I had it before to ~/.stash so it would pick it up. I had to massage my config file because it was for version .13 and this .app file was build against .12.

I found a couple of bugs specific for macOS and I'll report those separately

@DingDongSoLong4
Copy link
Collaborator

With the new Stash.app from #4153, open Stash.app --args -c <PATH_TO_CONFIG_YML> now works (tested on macOS 14.1.1).

An .app cannot reliably access the current directory, so if you use the .app you either need to move your config.yml to $HOME/.stash/config.yml or use the open command above to specify its location using the -c flag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants