Bug 430386

Summary: Unable to open more than one file from command line after upgrading from Mojave to Catalina
Product: [Applications] okular Reporter: prok12358
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal CC: nate
Priority: NOR    
Version: 20.12.0   
Target Milestone: ---   
Platform: Homebrew (macOS)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description prok12358 2020-12-14 17:03:15 UTC
SUMMARY

Okular installed through Homebrew worked perfectly fine on Mojave. After upgrading to Catalina, the behavior is weird. Opening first file from a command line works. Opening a second file focuses on okular window, but neither new tab nor new window appear, and the only opened file is still the first one.

I have "open new file in a new tab" option chosen, but switching that to "open new tab in a new window" does not help.

However, opening new files through okular's "Open" or "Open recent" menus works as expected.


STEPS TO REPRODUCE
1. Install okular through kde-mac Homebrew
2. $ open -a /usr/local/opt/okular/bin/okular.app file1.pdf
3. $ open -a /usr/local/opt/okular/bin/okular.app file2.pdf

OBSERVED RESULT
Step 2 opens file1.pdf as expected. Step 3 moves focus to Okular, but file2.pdf is not opened.

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: Catalina
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.76.0
KDE Frameworks Version: 
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 prok12358 2020-12-15 19:17:06 UTC
Don't know if it's related, but trying to open a file in okular through File->Open File brings up a Mac open file dialog with XPS file format chosen by default, so all PDF files are grayed. Only after switching the option to PDF they can be opened.