Some inprovements...

This commit is contained in:
Wiktor Zykubek 2021-01-19 21:01:45 +01:00
parent 08dbe4034c
commit 9dc4c167fc
3 changed files with 12 additions and 9 deletions

View File

@ -9,11 +9,15 @@ application/pdf=pdf.desktop;
image/png=img.desktop; image/png=img.desktop;
image/jpeg=img.desktop; image/jpeg=img.desktop;
image/gif=img.desktop; image/gif=img.desktop;
application/rss+xml=text.desktop application/rss+xml=text.desktop;
application/atom+xml=text.desktop; application/atom+xml=text.desktop;
video/x-matroska=video.desktop video/x-matroska=video.desktop;
inode/directory=file.desktop inode/directory=file.desktop;
x-scheme-handler/http=linkhandler.desktop x-scheme-handler/http=linkhandler.desktop;
x-scheme-handler/https=linkhandler.desktop x-scheme-handler/https=linkhandler.desktop;
application/pgp-keys=import_gpg.desktop; application/pgp-keys=import_gpg.desktop;
x-scheme-handler/lbry=lbry.desktop x-scheme-handler/lbry=lbry.desktop;
x-scheme-handler/tg=userapp-Telegram Desktop-SQE0W0.desktop
[Added Associations]
x-scheme-handler/tg=userapp-Telegram Desktop-SQE0W0.desktop;

View File

@ -4,7 +4,7 @@
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported. # absolute path. No other format is supported.
# #
XDG_DESKTOP_DIR="$HOME/" XDG_DESKTOP_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/doc" XDG_DOCUMENTS_DIR="$HOME/doc"
XDG_DOWNLOAD_DIR="$HOME/dl" XDG_DOWNLOAD_DIR="$HOME/dl"

View File

@ -36,8 +36,7 @@ _ xrandr || _ slop || deps="$deps xorg-xrandr/slop"
# output file, use $BLAZE_DIR and $BLAZE_FILE if they are set # output file, use $BLAZE_DIR and $BLAZE_FILE if they are set
if [ ! "$BLAZE_DIR" ]; then if [ ! "$BLAZE_DIR" ]; then
_ xdg-user-dir && _ xdg-user-dir &&
BLAZE_DIR=$(xdg-user-dir VIDEOS 2>/dev/null) || BLAZE_DIR="$(xdg-user-dir VIDEOS 2>/dev/null)/rec"
BLAZE_DIR="$HOME/Videos"
fi fi
[ ! -d "$BLAZE_DIR" ] && mkdir -p "$BLAZE_DIR" >/dev/null 2>&1 [ ! -d "$BLAZE_DIR" ] && mkdir -p "$BLAZE_DIR" >/dev/null 2>&1