summarylogtreecommitdiffstats
path: root/filebot.install
diff options
context:
space:
mode:
Diffstat (limited to 'filebot.install')
-rw-r--r--filebot.install8
1 files changed, 8 insertions, 0 deletions
diff --git a/filebot.install b/filebot.install
index 036831fe3894..491af46f2348 100644
--- a/filebot.install
+++ b/filebot.install
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
+
+# get default file manager
+_xdg_mime_default=$(xdg-mime query default inode/directory)
+
pre_install() {
if [ -d "/usr/share/filebot/openjfx" ]; then
if [ -L "/usr/share/filebot/openjfx" ]; then
@@ -19,6 +23,10 @@ post_install() {
echo ""
echo -e "\e[1;33m==>\e[0m \e[1;31m filebot -script fn:properties --def net.filebot.archive.extractor=ShellExecutables \e[0m"
echo ""
+ echo "Set default file manager to pre-install file manager"
+ echo $_xdg_mime_default
+ xdg-mime default $_xdg_mime_default inode/directory
+ echo ""
}
pre_upgrade() {