mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 10:15:20 +01:00
[GH-ISSUE #1441] file:// in label text does not print an image. #1845
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#1845
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IAMSolaara on GitHub (Apr 4, 2026).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1441
Describe the bug
A string with
file://<path>is printed as text instead of image contentsTo reproduce
Steps to reproduce the behavior:
labelwith a label property offile://<path>Expected behavior
As per told in the wiki's images page, it should be interpreted as image.
System information:
Configuration
Config
Styles
Additional context
I have confirmed the image is a valid PNG.
I have tried different paths (absolute like
file:///home/evermore/.../solaaralogopath.png, relatives likefile:///./solaaralogopath.pngorfile://./solaaralogopath.png) but to no avail.Am I using the wiki wrong? At this point I'm unsure myself
Screenshots
@JakeStanger commented on GitHub (Apr 13, 2026):
This works for me on the latest commit. Are you able to try that and check if it's still an issue please?
@IAMSolaara commented on GitHub (Apr 14, 2026):
Hello, I've tried the same thing building from commit
25cceb0ec4and I still get the same issue.@IAMSolaara commented on GitHub (Apr 14, 2026):
To build them I did a git clone of this repo, checked out master and did
cargo build --releasefor master, checked out v0.18.0 and didcargo build --release.I have some logs if they're helpful:
ironbar-master.log obtained by doing
ironbar-release-master --debug 2>&1 > ironbar-master.log.ironbar-v0.18.0.log obtained by doing
ironbar-release-v0.18.0 --debug 2>&1 > ironbar-v0.18.0.log.@JakeStanger commented on GitHub (Apr 14, 2026):
Ah, I somehow missed initially you were using the
labelmodule - images aren't supported by any of that module's configuration options. The image format is usually for e.g icons and options are labelled as such in a module's config table.You'll want to use the custom module for displaying images directly:
@IAMSolaara commented on GitHub (Apr 14, 2026):
Aaah, I see. That does in fact work as expected.
As a mildly related info, for relative paths (like file://./solaaralogoflat.png) how does it resolve those? Does it use the PWD the ironbar process had when it got started?
@JakeStanger commented on GitHub (Apr 14, 2026):
Yep.
Worth noting tilde expansion
~for $HOME is not currently supported for images, but is easy to add so I'll probably do that soon (#1451 as reference)@IAMSolaara commented on GitHub (Apr 14, 2026):
Great. Thanks :)