Bug 1174678 - i3status should be required by i3
Summary: i3status should be required by i3
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: i3
Version: 21
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Christopher Meng
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-16 10:05 UTC by Petr Horáček
Modified: 2015-08-14 11:01 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-08-14 11:01:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Petr Horáček 2014-12-16 10:05:54 UTC
Description of problem:
I installed Fedora 21 Server via netinstall with `Basic Desktop` group checked.
After the installation and start of i3 window manager, there was an error:
"Error: status_command not found or is missing a library dependency (exit 127)"
on the bottom bar instead of time, battery etc.

After `yum install i3status` and restart of i3 it was OK.

i3status is not required by i3 package, but it is used by its basic configuration, so it should be included in `Basic Desktop` group.


How reproducible:
Easy, but a bit time consuming (distro install)


Steps to Reproduce:
1. Install Fedora 21 Server via netinstall with `Basic Desktop` group checked
2. Start Fedora with i3 window manager.


Actual results:
There is an error "Error: status_command not found or is missing a library dependency (exit 127)" in the bottom bar.


Expected results:
It should show time, network status, battery, volume,...

Comment 1 Michael Schwendt 2014-12-16 10:51:23 UTC
> i3status is not required by i3 package, but it is used by its basic
> configuration, so it should be included in `Basic Desktop` group.

That sounds _very_ unusual.

A "yum install i3" here with a GNOME desktop also leads to that error upon logging in, which suggests that i3 really should require i3status.

Comment 2 Christopher Meng 2015-02-21 01:52:04 UTC
Some people asked me long ago for this, I'd said no.

If users want to use i3 4.8+ with i3status, please install with:

yum install i3 i3status (replace yum with dnf if yum is gone)

i3status is an official status menu bar generator, yes I understand this. But it's not a hard dependency of i3(upstream debian package control also only mentions it as Recommends), there are many solutions even including handwritten scripts to perform such feature. I've used conky, j4status and i3block to perform the same thing. Which one should be used by i3 as default? None of them I think.

https://github.com/i3/i3/search?utf8=%E2%9C%93&q=i3status

From link above you can see how upstream set i3.config:

bar {
        status_command i3status

And i3bar manpage:

workspace switching buttons and a statusline generated by i3status(1) or
similar. It is automatically invoked (and configured through) i3.

i3bar supports colors via a JSON protocol starting from v4.2, see
Instead, see the i3 documentation, especially the User’s Guide.

== SEE ALSO

+i3status(1)+, +j4status(1)+ or +conky(1)+ for programs generating a statusline.

---

That means everyone can change i3status to whatever they want, but not limited to i3status only.

Hence I can't add this.

Comment 3 Petr Horáček 2015-02-23 08:07:15 UTC
Ok, is not it better to remove i3status from standard i3 config, so we do not get ugly error message? I know it's minor, but it's not really lucky to see error on the first start.

Comment 4 Christopher Meng 2015-02-23 11:09:59 UTC
(In reply to Petr Horáček from comment #3)
> Ok, is not it better to remove i3status from standard i3 config, so we do
> not get ugly error message? I know it's minor, but it's not really lucky to
> see error on the first start.

I haven't test if a blank status_command will cause any troubles to a fresh Fedora install. Can you help test it if set to empty, i3 can start without trouble?

If Fedora supports rpm weak dependency in dnf/yum, things gonna be cushy for us I think.

Comment 5 Petr Horáček 2015-02-23 13:30:31 UTC
After installation it looks like this: http://pbrd.co/1ABDFe5
If I comment i3status from configurator and then restart, it shows just a blank panel (with workspaces), it does not complain at all.

I don't know, it's not pretty to have red error label on a panel, on the other hand, at least it makes users know, they could install i3status. Possibly the best way would be to comment i3status line in config and add a proper comment.

Maybe I'm just making a mountain out of a molehill.

Comment 6 Martin Preisler 2015-02-23 13:44:23 UTC
(In reply to Petr Horáček from comment #5)
> After installation it looks like this: http://pbrd.co/1ABDFe5
> If I comment i3status from configurator and then restart, it shows just a
> blank panel (with workspaces), it does not complain at all.
> 
> I don't know, it's not pretty to have red error label on a panel, on the
> other hand, at least it makes users know, they could install i3status.
> Possibly the best way would be to comment i3status line in config and add a
> proper comment.
> 
> Maybe I'm just making a mountain out of a molehill.

It has been this way for a long time.

There are 2 solutions:
1) change the default config - this means we would deviate from the upstream config
2) make i3 depend on i3status

Both solutions suck IMO. The error message could be much better but is still understandable enough that people can figure out what to install.

Comment 7 Petr Horáček 2015-02-23 14:01:31 UTC
Ok. I'm not gonna fight for it :)

Comment 8 Christopher Meng 2015-02-24 12:11:17 UTC
(In reply to Petr Horáček from comment #7)
> Ok. I'm not gonna fight for it :)

Martin is right.

And basically i3 Fedora rpm %description:

"Please be aware that i3 is primarily targeted at advanced users and developers."

So I think Fedora i3 users should know how to use i3 by finding missing programs by themselves...Don't blame me, we can actually see exceptions...  ;)

The best solution is to add Suggests: or Recommends: in rpm SPEC and let dnf support this feature since rpm 4.12+ has supportd this for a long time there is no clear documents packagers can find.

Then we can close this bug, but now I need to keep it open for people coming late to this thread.

Comment 9 Jonathan Underwood 2015-08-13 19:21:59 UTC
I just hit this too on a fresh install of i3, coming to it as a first time user. This is not how we should be shipping i3 in Fedora - it should not be broken out of the box for new users coming to i3.

Comment 10 Christopher Meng 2015-08-14 05:21:46 UTC
(In reply to Jonathan Underwood from comment #9)
> I just hit this too on a fresh install of i3, coming to it as a first time
> user. This is not how we should be shipping i3 in Fedora - it should not be
> broken out of the box for new users coming to i3.

TBH, I don't care about new users or not, I only care about minimal environment. But since RPM 4.13 is coming, we might have better solution of weak dependency.

Comment 11 Christopher Meng 2015-08-14 05:26:48 UTC
(In reply to Christopher Meng from comment #10)
> (In reply to Jonathan Underwood from comment #9)
> > I just hit this too on a fresh install of i3, coming to it as a first time
> > user. This is not how we should be shipping i3 in Fedora - it should not be
> > broken out of the box for new users coming to i3.
> 
> TBH, I don't care about new users or not, I only care about minimal
> environment. But since RPM 4.13 is coming, we might have better solution of
> weak dependency.

Mount preceding comment with other:

There are many alternatives of i3status, I intend to package them into repo if they have active development, so Suggestion/Recommendation are both needed in the future.

Comment 12 Jonathan Underwood 2015-08-14 11:01:49 UTC
Recommends added for i3-status.


Note You need to log in before you can comment on or make changes to this bug.