fix: let geeqie open JXL files

This commit is contained in:
2026-07-15 16:04:13 +03:00
parent 42b9ee5ab0
commit 8f196ab617
2 changed files with 6 additions and 7 deletions
+5 -2
View File
@@ -9,15 +9,18 @@ import send2trash
WEBHOOK_URL = os.environ.get("RANDOM_FILE_PICKER_WEBHOOK_URL", None)
MOVE_FOLDER = os.environ.get("RANDOM_FILE_PICKER_MOVE_FOLDER", None)
SUPPORTED_EXTENSIONS = [
IMG_EXTENSIONS = [
".png",
".jpg", ".jpeg",
".webp",
".avif",
".jxl",
# kind-of, can be opened with image viewer
".gif",
]
SUPPORTED_EXTENSIONS = [
*IMG_EXTENSIONS,
".mp4",
".m4v",
".mov",
+1 -5
View File
@@ -16,7 +16,7 @@ from textual.app import App, ComposeResult
from textual.binding import BindingType
from textual.widgets import Footer, Header, Label
from random_file_picker.core import collect_files, move_file_to_move_folder, trash_file, upload_file
from random_file_picker.core import IMG_EXTENSIONS, collect_files, move_file_to_move_folder, trash_file, upload_file
from random_file_picker.openers import (
is_geeqie_available,
open_file_in_dolphin,
@@ -24,10 +24,6 @@ from random_file_picker.openers import (
open_file_with_geeqie,
)
IMG_EXTENSIONS = [
".jpg", ".jpeg", ".webp", ".png", ".gif",
]
GEEQIE_AVAILABLE = is_geeqie_available()
class Args(tap.TypedArgs):