fix: let geeqie open JXL files
This commit is contained in:
@@ -9,15 +9,18 @@ import send2trash
|
|||||||
WEBHOOK_URL = os.environ.get("RANDOM_FILE_PICKER_WEBHOOK_URL", None)
|
WEBHOOK_URL = os.environ.get("RANDOM_FILE_PICKER_WEBHOOK_URL", None)
|
||||||
MOVE_FOLDER = os.environ.get("RANDOM_FILE_PICKER_MOVE_FOLDER", None)
|
MOVE_FOLDER = os.environ.get("RANDOM_FILE_PICKER_MOVE_FOLDER", None)
|
||||||
|
|
||||||
SUPPORTED_EXTENSIONS = [
|
IMG_EXTENSIONS = [
|
||||||
".png",
|
".png",
|
||||||
".jpg", ".jpeg",
|
".jpg", ".jpeg",
|
||||||
".webp",
|
".webp",
|
||||||
".avif",
|
".avif",
|
||||||
".jxl",
|
".jxl",
|
||||||
|
# kind-of, can be opened with image viewer
|
||||||
".gif",
|
".gif",
|
||||||
|
]
|
||||||
|
|
||||||
|
SUPPORTED_EXTENSIONS = [
|
||||||
|
*IMG_EXTENSIONS,
|
||||||
".mp4",
|
".mp4",
|
||||||
".m4v",
|
".m4v",
|
||||||
".mov",
|
".mov",
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ from textual.app import App, ComposeResult
|
|||||||
from textual.binding import BindingType
|
from textual.binding import BindingType
|
||||||
from textual.widgets import Footer, Header, Label
|
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 (
|
from random_file_picker.openers import (
|
||||||
is_geeqie_available,
|
is_geeqie_available,
|
||||||
open_file_in_dolphin,
|
open_file_in_dolphin,
|
||||||
@@ -24,10 +24,6 @@ from random_file_picker.openers import (
|
|||||||
open_file_with_geeqie,
|
open_file_with_geeqie,
|
||||||
)
|
)
|
||||||
|
|
||||||
IMG_EXTENSIONS = [
|
|
||||||
".jpg", ".jpeg", ".webp", ".png", ".gif",
|
|
||||||
]
|
|
||||||
|
|
||||||
GEEQIE_AVAILABLE = is_geeqie_available()
|
GEEQIE_AVAILABLE = is_geeqie_available()
|
||||||
|
|
||||||
class Args(tap.TypedArgs):
|
class Args(tap.TypedArgs):
|
||||||
|
|||||||
Reference in New Issue
Block a user