Skip to content

Commit 22c4ded

Browse files
committed
fix: remove default file association for html and folder
1 parent 92fdccb commit 22c4ded

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,11 @@ set_default_application() {
312312
local desktop_file="$DESKTOP_ENTRY_NAME" # Name of the Phoenix Code desktop entry file
313313

314314
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
317+
continue # Skip to the next iteration
318+
fi
319+
315320
xdg-mime default "$desktop_file" "$mime_type"
316321
done
317322
echo -e "${GREEN}Success! You can now right-click on files in your file manager and choose Phoenix Code to edit them.${RESET}"

docs/linux/installer-pre-prod.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,11 @@ set_default_application() {
288288
local desktop_file="$DESKTOP_ENTRY_NAME" # Name of the Phoenix Code desktop entry file
289289

290290
for mime_type in "${MIME_TYPES[@]}"; do
291+
# Skip setting default application for inode/directory and text/html
292+
if [ "$mime_type" = "inode/directory" ] || [ "$mime_type" = "text/html" ]; then
293+
continue # Skip to the next iteration
294+
fi
295+
291296
xdg-mime default "$desktop_file" "$mime_type"
292297
done
293298
echo -e "${GREEN}Success! You can now right-click on files in your file manager and choose Phoenix Code to edit them.${RESET}"

0 commit comments

Comments
 (0)