Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Mention how to work around the libcanberra warning. Fixes #458 (#583)
Browse files Browse the repository at this point in the history
Also update the precompilation section, including deleting the old
userimg.jl instructions.
  • Loading branch information
timholy authored Jul 28, 2021
1 parent af66d31 commit 0ff7447
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
4 changes: 3 additions & 1 deletion docs/make.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using Documenter, Gtk

makedocs(
format = Documenter.HTML(),
format = Documenter.HTML(
prettyurls = get(ENV, "CI", nothing) == "true"
),
modules = [Gtk],
sitename = "Gtk.jl",
authors = "...",
Expand Down
19 changes: 0 additions & 19 deletions docs/src/doc/precompilation.md

This file was deleted.

17 changes: 16 additions & 1 deletion docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,24 @@ using Pkg
Pkg.add("Gtk")
```

!!! tip
On some platforms, you may see messages like

> Gtk-Message: 20:15:48.288: Failed to load module "canberra-gtk-module"

These are harmless. If you want to suppress them, on Unix platforms you can add something like

```bash
export GTK_PATH=$GTK_PATH:/usr/lib/x86_64-linux-gnu/gtk-3.0
```

to your `.bashrc` file. (You may need to customize the path for your system; it should have a `modules` directory containing `libcanberra`.)

## Precompilation

Gtk is precompilable by normal mechanisms. For further reduction of startup time for applications that use Gtk, one can even [build it into your local installation of julia](doc/precompilation.md).
Gtk is precompilable by normal mechanisms. Julia 1.6 or higher is recommended as having much shorter load times than earlier Julia versions.

On very old Julia versions, you can use [PackageCompiler](https://github.com/JuliaLang/PackageCompiler.jl). Be aware that this has [downsides](https://julialang.github.io/PackageCompiler.jl/dev/sysimages/#Drawbacks-to-custom-sysimages-1) and should not be necessary on modern versions of Julia.

## Usage

Expand Down

0 comments on commit 0ff7447

Please sign in to comment.