Start nautilus with thunar as backup

This commit is contained in:
Stephan Raabe 2023-09-15 09:10:32 +02:00
parent 0a7af4d2bb
commit 7aef153cb5
2 changed files with 21 additions and 1 deletions

20
scripts/filemanager.sh Executable file
View File

@ -0,0 +1,20 @@
#/bin/sh
# _____ _ _
# | ___(_) | ___ _ __ ___ __ _ _ __ __ _ __ _ ___ _ __
# | |_ | | |/ _ \ '_ ` _ \ / _` | '_ \ / _` |/ _` |/ _ \ '__|
# | _| | | | __/ | | | | | (_| | | | | (_| | (_| | __/ |
# |_| |_|_|\___|_| |_| |_|\__,_|_| |_|\__,_|\__, |\___|_|
# |___/
#
# by Stephan Raabe (2023)
# -----------------------------------------------------
source ~/dotfiles/scripts/library.sh
if [ -f "/usr/bin/nautilus" ]; then
echo "nautilus is installed.";
nautilus
else
echo "nautilus not installed. Launching thunar instead."
thunar
fi;

View File

@ -80,7 +80,7 @@
// Filemanager Launcher // Filemanager Launcher
"custom/filemanager": { "custom/filemanager": {
"format": "", "format": "",
"on-click": "nautilus", "on-click": "~/dotfiles/scripts/filemanager.sh",
"tooltip": false "tooltip": false
}, },