Merge pull request #1728 from Xerillic/master

wallpaper plugin: remove unneeded code
This commit is contained in:
Arun 2023-09-20 17:51:22 +05:30 committed by GitHub
commit ba439084c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -8,14 +8,8 @@
# Shell: POSIX compliant
# Author: juacq97
selection=${NNN_SEL:-${XDG_CONFIG_HOME:-$HOME/.config}/nnn/.selection}
resp=
add_file ()
{
printf '%s\0' "$@" >> "$selection"
}
if [ -n "$1" ]; then
if [ "$(file --mime-type "$1" | awk '{print $NF}' | awk -F '/' '{print $1}')" = "image" ]; then
if [ "$XDG_SESSION_TYPE" = "x11" ]; then