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

Grimshot Ignores XDG_SCREENSHOTS_DIR #32

Open
AManNeedsAMaid opened this issue Jul 5, 2024 · 2 comments
Open

Grimshot Ignores XDG_SCREENSHOTS_DIR #32

AManNeedsAMaid opened this issue Jul 5, 2024 · 2 comments

Comments

@AManNeedsAMaid
Copy link

I want my screenshots saved to ~/pictures/screenshots, so I put the following in my .zshrc:

export XDG_SCREENSHOTS_DIR="/home/user/pictures/screenshots"

and this in my .config/user-dirs.dirs:

XDG_SCREENSHOT_DIR="$HOME/pictures/screenshots"

In a newly opened terminal:

$ echo $XDG_SCREENSHOTS_DIR
/home/user/pictures/screenshots

/home/user/pictures/screenshots is a valid path, and the directory already exists.

Despite this, grimshot ignores the variable and user-dirs.dirs (the only two variables checked according to the man page) and saves screenshots to simply ~/pictures.

I'm on Fedora 40 Sericea, how can I get grimshot to save to a custom path?

@OctopusET
Copy link
Owner

What command options did you use for grimshot?
And can you run grimshot like
grimshot save anything && echo $XDG_SCREENSHOTS_DIR
And check the result of echo

Plus, which grimshot version/commit, and distro are you currently using?

@OctopusET
Copy link
Owner

It works on my zsh shell with your configuration.

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

No branches or pull requests

2 participants