Skip to content

Commit bb31e5d

Browse files
committed
fix: In some linux distoros, attaching an app to inode will take it as default
1 parent 83df7c6 commit bb31e5d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docs/linux/installer-latest-experimental-build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ declare -a MIME_TYPES=(
6363
"text/mjs"
6464
"application/mjs"
6565
"text/cjs"
66-
"inode/directory" # Added to include directory handling
6766
)
6867

6968

@@ -312,8 +311,8 @@ set_default_application() {
312311
local desktop_file="$DESKTOP_ENTRY_NAME" # Name of the Phoenix Code desktop entry file
313312

314313
for mime_type in "${MIME_TYPES[@]}"; do
315-
# Skip setting default application for inode/directory and text/html
316-
if [ "$mime_type" = "inode/directory" ] || [ "$mime_type" = "text/html" ]; then
314+
# Skip setting default application for text/html
315+
if [ "$mime_type" = "text/html" ]; then
317316
continue # Skip to the next iteration
318317
fi
319318

docs/linux/installer.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ declare -a MIME_TYPES=(
4646
"text/mjs"
4747
"application/mjs"
4848
"text/cjs"
49-
"inode/directory" # Added to include directory handling
5049
)
5150

5251

@@ -482,8 +481,8 @@ set_default_application() {
482481
local desktop_file="$DESKTOP_ENTRY_NAME" # Name of the Phoenix Code desktop entry file
483482

484483
for mime_type in "${MIME_TYPES[@]}"; do
485-
# Skip setting default application for inode/directory and text/html
486-
if [ "$mime_type" = "inode/directory" ] || [ "$mime_type" = "text/html" ]; then
484+
# Skip setting default application for text/html
485+
if [ "$mime_type" = "text/html" ]; then
487486
continue # Skip to the next iteration
488487
fi
489488

0 commit comments

Comments
 (0)