Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Describe how to (re)set default file opening application for snap on Linux #474

Merged
merged 2 commits into from
Nov 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions en/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ Depending on your use case and needed integrations it is advisable to choose the
| LyX | ❌ | ✅ | ✅ | ✅ |
| Vim/Emacs | ❌ | ❌ | ✅ | ✅ |

#### Change default application to open files for JabRef snap

When JabRef is installed as a snap, it initially asks which application should be used to open PDFs (or other files). However, after selecting the same application three times, that application is set as default and there is no obvious way to select another application ("Preferences" -> "External File Types" does not help here, because the snap sandbox does not "see" any of the user's applications).
This setting is stored in the XDG permission storage, and can be changed with a command like the following (see [this forum thread](https://forum.snapcraft.io/t/xdg-permissions-stores-should-be-configurable-with-snapd/25048) for further information, and have a look at `flatpack permissions` to find the correct "Table": look for a line where the "App" is `snap.jabref` - in the below example, the table is the default `desktop-used-apps`):
`flatpak permission-set --data "{'always-ask':<false>}" desktop-used-apps application/pdf snap.jabref okularApplication_pdf 0 3`
In this example, the default application to open PDF files is set to `okularApplication_pdf`, and the counter for when to stop asking how to open PDF files is set to 0/3.
If you want JabRef to ask you which application to use every time, use `'always-ask':<true>` in the `data` parameter.

#### Include JabRef in the start menu of Ubuntu

See [http://askubuntu.com/a/721387/196423](http://askubuntu.com/a/721387/196423) for details.
Expand Down
Loading