waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
667 stars 47 forks source link

[enchancement] Add Path Validations to Environment Variables #248

Open newtoallofthis123 opened 4 months ago

newtoallofthis123 commented 4 months ago

This is a proposal to add path based validations to the environ.rs files in both swhks and swhkd as suggested by @zubairmh in https://github.com/waycrate/swhkd/pull/243#discussion_r1504021953.

This can achieved by adding a new Error enum and also handling it: If the directory path doesn't exist, the defaults can be used. There is a case for creating the directories on the fly, so am not sure yet 😄