Fl4m3Ph03n1x
Background
I am trying to have an Elixir desktop application, and I am using elixir-desktop-app as a starting point.
Problem
The only thing I want is to have an icon represent my app. However, this is not happening (left side bar has what appears to be an empty icon instead of a real icon):
I ran this application with the following commands:
mix deps.getcd assets/npm installcd ..mix assets.deploy./run
And when I run the script, I see no errors:
$ ./run
Erlang/OTP 24 [erts-12.1.5] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]
warning: use Mix.Config is deprecated. Use the Config module instead
config/dev.exs:1
12:05:52.202 [info] Application eex started at :nonode@nohost
12:05:52.208 [info] Application mime started at :nonode@nohost
12:05:52.208 [info] Child Agent of Supervisor Plug.Crypto.Application started
Pid: #PID<0.283.0>
Start Call: Agent.start_link(#Function<0.16488927/0 in Plug.Crypto.Application."-fun.start_crypto_keys/0-">)
Restart: :permanent
Shutdown: 5000
Type: :worker
12:05:52.211 [info] Application plug_crypto started at :nonode@nohost
12:05:52.213 [info] Child :telemetry_handler_table of Supervisor :telemetry_sup started
Pid: #PID<0.288.0>
Start Call: :telemetry_handler_table.start_link()
Restart: :permanent
Shutdown: 5000
Type: :worker
12:05:52.213 [info] Application telemetry started at :nonode@nohost
12:05:52.214 [info] Child Plug.Upload of Supervisor Plug.Application started
Pid: #PID<0.293.0>
Start Call: Plug.Upload.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker
12:05:52.215 [info] Application plug started at :nonode@nohost
12:05:52.216 [info] Child :pg of Supervisor #PID<0.297.0> (Supervisor.Default) started
Pid: #PID<0.298.0>
Start Call: :pg.start_link(Phoenix.PubSub)
Restart: :permanent
Shutdown: 5000
Type: :worker
12:05:52.216 [info] Application phoenix_pubsub started at :nonode@nohost
12:05:52.216 [info] Application phoenix_view started at :nonode@nohost
12:05:52.222 [info] Child Phoenix.CodeReloader.Server of Supervisor Phoenix.Supervisor started
Pid: #PID<0.304.0>
Start Call: Phoenix.CodeReloader.Server.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker
12:05:52.222 [info] Child Phoenix.Transports.LongPoll.Supervisor of Supervisor Phoenix.Supervisor started
Pid: #PID<0.305.0>
Start Call: DynamicSupervisor.start_link([name: Phoenix.Transports.LongPoll.Supervisor, strategy: :one_for_one])
Restart: :permanent
Shutdown: :infinity
Type: :supervisor
12:05:52.222 [info] Application phoenix started at :nonode@nohost
12:05:52.235 [info] Child Gettext.ExtractorAgent of Supervisor #PID<0.309.0> (Supervisor.Default) started
Pid: #PID<0.310.0>
Start Call: Gettext.ExtractorAgent.start_link([])
Restart: :permanent
Shutdown: 5000
Type: :worker
12:05:52.235 [info] Application gettext started at :nonode@nohost
12:05:52.250 [info] Child :disk_log_sup of Supervisor :kernel_safe_sup started
Pid: #PID<0.311.0>
Start Call: :disk_log_sup.start_link()
Restart: :permanent
Shutdown: 1000
Type: :supervisor
12:05:52.250 [info] Child :disk_log_server of Supervisor :kernel_safe_sup started
Pid: #PID<0.312.0>
Start Call: :disk_log_server.start_link()
Restart: :permanent
Shutdown: 2000
Type: :worker
Sass is watching for changes. Press Ctrl-C to stop.
[watch] build finished, watching for changes...
[notice] Connecting to UNIX socket: "/run/user/1000/bus"
[notice] DBUS auth: sending initial data
[notice] Got GUID '027f216ba8c2148b5e89683862860b5f' from the server
[notice] Succesfully negotiated UNIX FD passing
[notice] Calling "/"::"org.freedesktop.DBus".:Hello([])
I understand this can be an issue from my OS version (although I found nothing indicating that):
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal
I also tried replacing the image inside static/icon.png with something else, but it didn’t work either.
Questions
- Am I doing something wrong?
- Will this same icon show up in both Windows and Linux?
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
I’m new to elixir and just tried to install the elixirLS extension for VScode(ium) and it is throwing some errors that I would like help ...
New
Other Trending Topics
Edit: 2026 May 15 - This post is archived.
Mob is alive!!
Main docs: mob v0.7.11 — Documentation
A bit of explanation for the slightly c...
New
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Latest in /Elixir Desktop
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #ai
- #elixirconf-us
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex











Showing Posts 1 to 6- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
dominicletz
Indeed strange, no as far as I can tell you’re not doing anything wrong. This application icon is loaded IMHO by erlang native based on the environment variable
WX_APP_ICONwhich is being set in the./runbash script usingexport WX_APP_ICON="priv/icon.png"Do you have any mismatches there? Is the priv/icon.png not present anymore?
Fl4m3Ph03n1x
This are the contents of
run:And this is the directory structure with all the files:
It looks to me like everything is in place.
LostKobrakai
I’m currently looking into elixir-desktop as well. Is the environment variable the only way to have the icon be set? It doesn’t seem to be working for me with the settings on
Desktop.Windowon mac os.dominicletz
Yes unfortunately the env variable is currently the only way Erlangs wx app overriding the icon. That said in MacOS things are a bit different, there to get your own icon in the Dock you have to create a MacOS app structure that contains your icon:
with
Info.plistthat names the icon file.For testing the icon around Erlang you can use the existing
:wx.demo()and just create (or take an existing) app structure and copyerlinto the app.Update
exec "$BINDIR/erlexec" ${1+"$@"}toexec "$BINDIR/erlexec" ${1+"$@"} -eval 'wx:demo().' -noshellintodo.app/Contents/MacOS/runThen running that app using
open todo.appwill show theicon.icnsicon in the dock.LostKobrakai
Should this be documented? Why is
Desktop.Windowdocumenting a config for the icon i if it would never be applied?dominicletz
More documentation is absolutely the right thing. Especially around these icons it took myself quite a while to grasp whats’ going on. But essentially there are three different icons (or two dependent on the platform).
From the top of the head this is it:
I’ll update the documentation.