i3 / i3lock

improved screen locker
https://i3wm.org/i3lock
BSD 3-Clause "New" or "Revised" License
921 stars 404 forks source link

Use XKB_KEY_F35 as image reload. #221

Closed Yoshqu closed 5 years ago

Yoshqu commented 5 years ago

For fancier dynamic backgrouds, this simple patch adds image reload for F35 key - which can be easily sent via xdotool. Had to move png loaders up.

Airblader commented 5 years ago

Hi,

thanks for your PR. However, i3lock is not intended to be about fanciness, and we try to keep the surface in this direction as small as possible to avoid introducing unnecessary risks. Therefore I'm going to close this PR. We generally recommend that you first raise an issue to discuss new features to see if we'd accept it or how it could look like. Thanks for understanding!

stapelberg commented 5 years ago

To add to @Airblader’s message:

Thanks for your contribution!

However, this change seems too much like a security risk to me. One of i3lock’s design goals is to do as little as possible while the screen is locked. Reloading images might circumvent the screen lock due to poor error handling (not necessarily in your code, but in the entire stack) or denial of service issues (out of memory due to an otherwise innocuous memory leak), etc.

Thanks for your understanding,

Yoshqu commented 5 years ago

No harm intended. I hope it has brought some smile :). This is beauty of i3 - i can expand as i see it (and it was too small for launching a discussion)

@stapelberg yes, it would require a lot more work to load/show image in forked process to make this secure - so it would be no go anyway....

BTW Thanks for your work.