# Error message when closing firefox on Linux

**URL:** <https://discourse.julialang.org/t/error-message-when-closing-firefox-on-linux/106758>\
**Category:** Offtopic\
**Tags:** question\
**Created:** [November 26, 2023, 6:18pm UTC](https://discourse.julialang.org/t/error-message-when-closing-firefox-on-linux/106758 "2023-11-26T18:18:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [November 26, 2023, 6:18pm UTC](https://discourse.julialang.org/t/error-message-when-closing-firefox-on-linux/106758/1 "2023-11-26T18:18:36Z")

</div>

I am using this code to display my html documentation:

```julia
function docu(build=true)
    @eval using LiveServer
    if build
        include("docs/make.jl")
    end
    Base.invokelatest(LiveServer.open_in_default_browser, "docs/build/index.html")
    nothing
end

```

When I call this function and close firefox, I get the message:

```julia
[Parent 8343, Main Thread] WARNING: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNl: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.150" (uid=1000 pid=8343 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus): 'glib warning', file /build/firefox-3GB2FH/firefox-120.0+build2/toolkit/xre/nsSigHandlers.cpp:187

(firefox:8343): GLib-GIO-WARNING **: 19:12:45.152: Error releasing name org.mozilla.firefox.ZGVmYXVsdC1yZWxlYXNl: GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents this sender from sending this message to this recipient; type="method_call", sender=":1.150" (uid=1000 pid=8343 comm="/usr/lib/firefox/firefox " label="firefox (enforce)") interface="org.freedesktop.DBus" member="ReleaseName" error name="(unset)" requested_reply="0" destination="org.freedesktop.DBus" (bus)

```

in the REPL, which is annoying.

I guess I could get rid of it by adding some lines to the file `usr.bin.firefox`. But which  
lines?

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [November 26, 2023, 7:31pm UTC](https://discourse.julialang.org/t/error-message-when-closing-firefox-on-linux/106758/2 "2023-11-26T19:31:28Z")

</div>

I am using now this function:

```julia
function docu(build=true)
    @eval using LiveServer
    if build
        include("docs/make.jl")
    end
    if Sys.islinux()
        Base.run(`xdg-open "docs/build/index.html"`; wait=false)
    else
        Base.invokelatest(LiveServer.open_in_default_browser, "docs/build/index.html")
    end
    nothing
end

```

which redirects any error message on Linux to `/dev/null` and thus solves the issue for me…
