From ea4f5fee60efaf5dca5915e0c2069193295cc5c2 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Thu, 27 Mar 2025 10:32:12 -0400 Subject: [PATCH] FileHandlers: Fix unintended fallthrough in switch May have been responsible for this: https://forums.zotero.org/discussion/comment/483004#Comment_483004 --- chrome/content/zotero/xpcom/fileHandlers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/content/zotero/xpcom/fileHandlers.js b/chrome/content/zotero/xpcom/fileHandlers.js index 5717e9c709..d087ede365 100644 --- a/chrome/content/zotero/xpcom/fileHandlers.js +++ b/chrome/content/zotero/xpcom/fileHandlers.js @@ -313,11 +313,13 @@ Zotero.FileHandlers = { switch (appPath.toLowerCase()) { case 'okular': appPath = '/usr/bin/okular'; + break; // It's "Document Viewer" on stock Ubuntu case 'document viewer': case 'evince': appPath = '/usr/bin/evince'; + break; } } else if (await IOUtils.exists('/usr/bin/okular')) {