File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff 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} "
Original file line number Diff line number Diff 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} "
You can’t perform that action at this time.
0 commit comments