Skip to content

Commit

Permalink
Add Troubleshooting section
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Oct 21, 2021
1 parent 6b947df commit a552f65
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,31 @@ A browser extension might be coming.

</details>

## Troubleshooting

<details>
<summary>My app doesn't show up</summary>

If the application was installed via Flatpak, the package manager or an other conventional way, feel free to [open an issue](https://github.com/sonnyp/Junction/issues/new/choose).

Make sure the application `.desktop` file has a `MimeType` key that matches the type of resource you want it to handle.

For example if you want the application `~/.local/share/applications/my-custom-browser.desktop` to handle web content; add the following `MimeType=text/html;text/xml;application/xhtml+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;`.

An other common mistake is to forget to run `update-desktop-database ~/.local/share/applications` after installing a `.desktop` file.

</details>

<details>
<summary>Where are desktop files located ?</summary>

- System `/usr/share/applications`
- User `~/.local/share/applications`
- Flatpak system `/var/lib/flatpak/exports/share/applications/`
- Flatpak user `~/.local/share/flatpak/exports/share/applications/`

</details>

## Development

```sh
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GLib.set_prgname("re.sonny.Junction");
GLib.set_application_name("Junction");

export default function main(argv, { version, datadir }) {
log(datadir);
log(`datadir: ${datadir}`);
bindtextdomain(
"re.sonny.Junction",
GLib.build_filenamev([datadir, "locale"]),
Expand Down

0 comments on commit a552f65

Please sign in to comment.