After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 92960 - Invisible Rhythmbox problem
Invisible Rhythmbox problem
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
: 97374 (view as bug list)
Depends on:
Blocks: 90477
 
 
Reported: 2002-09-10 17:57 UTC by Mark Finlay
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0


Attachments
This fixes the problem (1.99 KB, patch)
2002-09-12 17:46 UTC, Mark Finlay
none Details | Review

Description Mark Finlay 2002-09-10 17:57:00 UTC
1. If the /apps/rhythmbox/state/window_visible rhythmbox key gets set to zero
and the Notification area applet is not running it is not evident to the
user that he/she has to do 

gconftool-2 -s /apps/rhythmbox/state/window_visible --type=boolean "1" 

to get rhythmbox to show itself. It would be more intuitive if this
key was ignored if the applet is not running.

2. When i upgraded from rb 0.3 to cvs this key was set as 0 - it should
obviously be set as 1 by default.
Comment 1 Mark Finlay 2002-09-10 17:58:46 UTC
Sorry, obviously /apps/rhythmbox/state/window_visible is a gconf key
as apposed to a rhythmbox key.
Comment 2 Olivier Martin 2002-09-10 20:19:30 UTC
gconftool-2 -s /apps/rhythmbox/state/window_visible --type=boolean "1"

**POOOF**
Comment 3 Mark Finlay 2002-09-11 06:57:29 UTC
Yeah i know - but i'm suggesting that that should not have to be done.
Comment 4 Olivier Martin 2002-09-11 11:22:38 UTC
Well, it's visible by default in the .schema file. What more can we do ?
Comment 5 Mark Finlay 2002-09-11 13:30:01 UTC
Surely the gconf entry is only applicable to when one is using the
panel applet. I could be wrong, but that's how i see it.

So to me it makes sense that rb ignore that gconf entry unless the
tray applet is active.

To me that would remove another anoying FAQ question that no-one will
read: "Why does rb never start", "why does rb only work as root"
Comment 6 Jorn Baayen 2002-09-11 15:26:05 UTC
Nope that's not the problem, the tray thing is always created, no
matter where the applet is there or not. Plus, it handles windwo
visibililty independant of the tray.
Comment 7 Olivier Martin 2002-09-11 17:26:37 UTC
We should ensure that RB is visible when we start it. Maybe check for
the key existence, if it's not there default to 1. (or, i dunno, call
the key window_hidden ;).

We can be sure it'll be the most asked question, if we release with this.
Comment 8 Mark Finlay 2002-09-11 17:34:22 UTC
Just to clarify the problem after talking to oliver on Icq.

The key window_visible does not exist in the 0.3 schema and so
when the user upgrades to cvs or 0.4 etc.. there is a problem
because the new schema is not installed as it would be for
a fresh install.

When the user runs rb after upgrading for the first time this key
is created with a {null} value and as such rb is invisible. This 
will happen for EVERY user who upgrades from 0.3 and will cause
a general outcry of "rb is borked" ;)

As oliver suggests, changing the key to window_hidden (and obviously 
reversing the behavior of rb to it) would solve this problem without 
any messy hacks as i suggested earlier in this bug.
Comment 9 Mark Finlay 2002-09-12 17:46:04 UTC
Created attachment 11048 [details] [review]
This fixes the problem
Comment 10 Mark Finlay 2002-09-12 17:49:50 UTC
The above patch: 
1. Changes the key from window_visible to window_hidden in the schema.
[fixes problem for first time users]
2. Changes rb's interpretation of the key so that if the key does
not exist rb will be visible.
[fixes problem for upgraders]
3. Changes the string on the tray applet from "Show Window" to 
"Hide Window" as that is a better description of the modified behavior.
[changes ui to reflect new behavior]
Comment 11 Jorn Baayen 2002-09-12 18:28:30 UTC
Really, this is a hack.  I think this bug needs to be fixed, not
worked around. Be it in gconf or rb.

If it's not fixed before release I'll apply it.. (without the menuitem
label change, though)
Comment 12 Mark Finlay 2002-09-12 19:03:10 UTC
Yeah - i knew you would like the ui change ;)

but you will need to do something if you want the label
to make sense with the rest of the patch applied.

The way to actually "fix" the problem would be to check if the
gconf entry exists on startup and if not create it with the 
default value. The problem is that no key is seen as 0 which means
that the window isnt drawn.
Comment 13 Jorn Baayen 2002-09-12 20:28:23 UTC
To make your hack work with the current label is trivial, just use
!value ;)

And, the way you describe wont fix the problem because like you
explain FALSE will be treated as unset.. and so the window will always
be shown.
Comment 14 Mark Finlay 2002-09-13 21:26:37 UTC
"To make your hack work with the current label is trivial, just use
!value ;)"

I'll leave that to you :)

I tried but ended up with the odd behavior of a rightclick on the 
tray icon having the same effect as a leftclick.
Comment 15 Mark Finlay 2002-09-28 09:24:53 UTC
Donno who fixed it but this is fixed in CVS
Comment 16 Jorn Baayen 2002-11-01 00:24:43 UTC
*** Bug 97374 has been marked as a duplicate of this bug. ***