how to setup xdg env variable in sway for flameshot
- User
how to setup xdg env variable in sway for flameshot
- Assistant
To set up the
XDGenvironment variable in Sway for Flameshot, you can follow these steps:-
Set Environment Variables: Add the necessary environment variables to your Sway configuration file. Open your Sway config file, which is typically located at
~/.config/sway/config, and add the following lines:set $XDG_CONFIG_HOME ~/.config set $XDG_DATA_HOME ~/.local/share set $XDG_CACHE_HOME ~/.cache -
Launch Flameshot: You can run Flameshot directly using a keybinding or during the startup of Sway. To add a keybinding, find the appropriate section in your Sway configuration file and add something like:
-