Fix opening local files from the command line
BUG: 384570 Differential Revision: https://phabricator.kde.org/D8047