Bug 430386 - Unable to open more than one file from command line after upgrading from Mojave to Catalina
Summary: Unable to open more than one file from command line after upgrading from Moja...
Status: REPORTED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 20.12.0
Platform: Homebrew (macOS) macOS
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-14 17:03 UTC by prok12358
Modified: 2020-12-16 21:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.