OctopusET / sway-contrib

A collection of user-contributed scripts for sway
MIT License
56 stars 20 forks source link

Grimshot Ignores XDG_SCREENSHOTS_DIR #32

Open AManNeedsAMaid opened 1 month ago

AManNeedsAMaid commented 1 month ago

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 commented 1 month ago

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 commented 1 month ago

It works on my zsh shell with your configuration.