Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Grim isn't respecting $GRIM_DEFAULT_DIR #86

Closed
poperigby opened this issue Apr 25, 2021 · 6 comments
Closed

Grim isn't respecting $GRIM_DEFAULT_DIR #86

poperigby opened this issue Apr 25, 2021 · 6 comments

Comments

@poperigby
Copy link

I'm trying to get Grim to put it's screenshots into the correct directory, but it's not respecting the $GRIM_DEFAULT_DIR environment variable. I'm using fish shell, and tried setting $GRIM_DEFAULT_DIR as a universal variable (makes it persists across sessions) and tried making it globally scoped.

OS: Arch Linux
Grim Version: 1.3.2
Fish Version: 3.2.1

@poperigby
Copy link
Author

I just tested this with Bash as well, and that also didn't work. I run...

$ GRIM_DEFAULT_DIR="/home/user/test"
$ mkdir test
$ grim

and it outputs to my current working directory.

@poperigby
Copy link
Author

I also built Grim from master and that doesn't work either.

@emersion
Copy link
Owner

emersion commented Jul 5, 2021

Can't reproduce. Using export GRIM_DEFAULT_DIR=/tmp works in both bash and fish for me.

@emersion emersion closed this as completed Jul 5, 2021
@poperigby
Copy link
Author

What could the problem be then? GRIM_DEFAULT_DIR has the highest priority for where screenshots go, right?

@emersion
Copy link
Owner

emersion commented Jul 6, 2021

In your bash session, you set a local shell variable, not an env variable.

@poperigby
Copy link
Author

I see what the problem was. I set it to a global variable instead of a universal variable in fish. Maybe that could be specified in the docs to avoid confusion for future users?

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

No branches or pull requests

2 participants