Description: I created an SSH key pair using the following command on Debian: $ ssh-keygen which subsequently created two files: id_rsa id_rsa.pub the public key has a .pub extension but has the following type: $ file id_rsa.pub id_rsa.pub: OpenSSH RSA public key But LibreOffice assumes that every .pub file is a Microsoft Publisher file and LibreOffice Draw becomes automatically the default software to open it. I think this is a bug and it needs to be changed. Actual Results: LibreOffice Draw opens the ssh public key Expected Results: LibreOffice Draw should not open ssh public key file. Reproducible: Always User Profile Reset: No Additional Info: Version: 7.0.4.2 Build ID: 00(Build:2) CPU threads: 8; OS: Linux 5.16; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Debian package version: 1:7.0.4-4+deb11u1 Calc: threaded
Reproduced in: Version: 7.3.2.2 / LibreOffice Community Build ID: 49f2b1bff42cfccbd8f788c8dc32c1c309559be0 CPU threads: 8; OS: Linux 5.17; UI render: default; VCL: gtk3 Locale: ja-JP (ja_JP.UTF-8); UI: ja-JP Calc: threaded If I opened it in LibreOffice, I opened it in Writer. The file is listed as Microsoft Publisher document in the Type field of the Open dialog.
Created attachment 180620 [details] Open dialog
I confirmed it, but in my environment it opens in Writer instead of Draw. So this is just a matter of displaying in the dialog for me.
This is a trivial problem with no "right" solution. Maybe Publisher files are rare but so or more is opening of .pub with LO. IMO this is WontFix.
The association between the extension pub and the program MS Publisher is clear. And that's how it works - no checks whatsoever. Another example is ODT, the default for Writer but also used by other programs, see https://filext.com/file-extension/ODT. The SSH public key is supposed to live in a hidden directory (since you use the command "file" I suppose it's Linux where ~/.ssh is the default). You come hardly in touch with the key.