Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions nautilus-extension/Flickernaut/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,24 @@ def get_applications() -> ApplicationsRegistry:
for k, v in schemaKey.items():
logger.debug(f"{k}: {v!r}")

application = Application(
schemaKey["id"],
schemaKey["app_id"],
schemaKey["name"],
schemaKey["pinned"],
schemaKey["multiple_files"],
schemaKey["multiple_folders"],
)

logger.debug("")

registry.add_application(application)
try:
application = Application(
schemaKey["id"],
schemaKey["app_id"],
schemaKey["name"],
schemaKey["pinned"],
schemaKey["multiple_files"],
schemaKey["multiple_folders"],
)

logger.debug("")

registry.add_application(application)
except Exception as e:
logger.warning(
f"Skipping invalid application '{schemaKey.get('name', 'unknown')}': {e}"
)
continue

return registry

Expand Down
8 changes: 7 additions & 1 deletion nautilus-extension/Flickernaut/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ class Package:

def __init__(self, app_id: str):
self.app_id = app_id
self.app_info = Gio.DesktopAppInfo.new(app_id) if app_id else None
try:
self.app_info = Gio.DesktopAppInfo.new(app_id) if app_id else None
if app_id and not self.app_info:
logger.warning(f"Desktop file not found: {app_id}")
except Exception as e:
logger.error(f"Error loading desktop file '{app_id}': {e}")
self.app_info = None
self._is_installed_cache = None

@property
Expand Down
2 changes: 1 addition & 1 deletion src/prefs/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const AppDialog = GObject.registerClass(
});

this.get_widget().set({
show_all: true,
show_all: false,
show_other: true,
});

Expand Down