mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 12:15:22 +01:00
[GH-ISSUE #219] [Onboarding] Start ironbar with default config if one doesn't exist #8528
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#8528
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 @donovanglover on GitHub (Jul 3, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/219
Is your feature request related to a problem? Please describe.
Currently when a user tries
ironbarfor the first time they're greeted with an error message.Describe the solution you'd like
Ironbar should create a default config if one doesn't exist and start as expected.
Describe alternatives you've considered
Alternatively show a more helpful error message to the user, possibly asking them to run a command to copy an example config.
@JakeStanger commented on GitHub (Jul 3, 2023):
I've held off this so far for a couple of reasons:
That said, two more things:
type. I'd consider any exceptions to that a bug, so I'll get the "File not found" issue sorted as a priority.It may be, unless it turns out there's a strong consensus one way or the other, that I'll handle this in multiple phases, so that something is at least displayed when unconfigured.
Short-term, perhaps the answer is to have a very simple default config that's loaded when no file exists. This could just contain the
clockmodule and a label informing you to configure it. Some messages can also be written to the console with details.Long term I'd like to have some kind of interactive config builder, either through the CLI, or maybe even a UI of its own (we can dream!).
@JakeStanger commented on GitHub (Jul 3, 2023):
The linked PR handles this well enough for now I think - it includes a hard-coded config, so it's not going to get forgotten in any breaking changes etc. It provides a bare minimum (focused + clock) and informs the user it's the default config. Some logging has also been added with a link to the wiki to make this obvious.