Skip to content

Commit

Permalink
完善图片打开方式的关联
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuchen Deng committed Mar 29, 2022
1 parent 1787bda commit 339b9f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ machinectl \$SHELL_OPTIONS --setenv=LD_PRELOAD=$DISABLE_MIT_SHM_SO shell $1 /bin
[ -n "\$(xdg-mime query default audio/flac)" ] && echo -n "The default open of audio/flac is " && xdg-mime query default audio/flac ;
[ -n "\$(xdg-mime query default application/pdf)" ] && echo -n "The default open of application/pdf is " && xdg-mime query default application/pdf ;
[ -n "\$(xdg-mime query default image/png)" ] && echo -n "The default open of image/png is " && xdg-mime query default image/png ;
[ -n "\$(xdg-mime query default image/jpg)" ] && echo -n "The default open of image/jpg is " && xdg-mime query default image/jpg ;
echo && echo ldd \$(which bash) && echo \$(ldd \$(which bash) | grep SHM) ;
echo ldd \$(which less) && echo \$(ldd \$(which less) | grep SHM) ;
'
Expand Down Expand Up @@ -857,6 +858,8 @@ if [ \$EUID == 0 ]; then
xrdb -merge ~/.Xresources ;
xdg-mime default thunar.desktop inode/directory ;
xdg-mime default mupdf.desktop application/pdf ;
xdg-mime default gpicview.desktop image/png ;
xdg-mime default gpicview.desktop image/jpg ;
neofetch ;
" | /bin/bash --login'
else
Expand Down

0 comments on commit 339b9f4

Please sign in to comment.