22

Like it says in the title. Fresh XFCE install over Ubuntu. Whenever I try to change the clock format through Right-Click>Panel>Preferences, the clock disappears as soon as I close the window. I have to go back to Panel Preferences and remove and re-add the clock applet to make it come back, and then my format changes never stick.

Is there a fix for this, or possibly a less buggy clock applet for the panel I could be using?

Secret_Sloth
  • 321
  • 1
  • 2
  • 5

5 Answers5

16

I had the same problem and found a workaround.

Right click the clock panel (or access from panel preferences) and set the configuration you want but do NOT close the properties window. Instead, while leaving it open, logout and log back in. The clock should reappear with the preferences you set. For some reason closing the properties window seems to reset the settings to blank custom fields, which makes the clock disappear.

Videonauth
  • 33,045
  • 16
  • 104
  • 120
James
  • 161
  • 3
  • 3
    Another workaround I found was to just set the custom format you want, even if it's the same as one of the built in formats. The format specifiers are documented at http://docs.xfce.org/xfce/xfce4-panel/clock. Annoying that you have to do this, but it does seem to work. – Tim Destan Feb 15 '18 at 23:05
  • 1
    Thanks to both of you. I've found that if you just want to use one of the predefined formats but can't due to this bug. Then you can select the predefined format and then select "Custom Format" - the format code is automatically inserted and you can close the window. BTW the code for HH:MM is `%R`. – dotnetCarpenter Aug 03 '18 at 12:12
  • For the custom formats, %T will give you hh:mm:ss. You can also edit the file ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml (look for the word "clock" in it). Change the "digital-format" property to your favorite format. – olafure Feb 28 '20 at 14:52
15

Best workaround as commented by https://askubuntu.com/users/513351/ali-caglayan but as an answer:

Change the properties but don't close the window.

then restart the panel,

xfce4-panel --restart
oxr463
  • 255
  • 1
  • 4
  • 15
John Lawrence Aspden
  • 2,077
  • 4
  • 19
  • 25
8

My way around this was to set it to what I want. and without closing the clock properties.

I open terminal and run this command

killall xfce4-panel

followed by this command

xfce4-panel & 

Then you can close terminal (which may make the panel refresh again). But my settings I picked for my clock remained. The properties thing is just all kinds of borked up. It was broken like this while it was still a beta. Figured it be fixed by the time it it was released. But nope, clearly no.

Troy Foxxin
  • 81
  • 1
  • 1
1

I just ran into the same thing (I'm brand new to XFCE). The panel clock seems to be very sensitive to configuration changes. Some settings combinations simply don't work and the clock disappears. I found the Items tab in the Panel Preferences dialog and discovered that I had wound up with seven instances of the panel clock running; all displaying nothing. I deleted them and installed the Orage Panel Clock which was bundled with XFCE. It's been working fine since.

Ferruccio
  • 111
  • 4
0

As a workaround, don't close the Panel Preferences window with the Close button when you're done. Instead close the window with the "X" button to the top right.

Martin Thornton
  • 5,151
  • 11
  • 30
  • 39
kodmanyagha
  • 150
  • 11
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/955837) – slava Jun 16 '19 at 20:43
  • Did you try my solution? This question has a simple answer and this answer must be accepted i think. – kodmanyagha Jun 16 '19 at 20:48
  • 1
    not working in my case – cipricus Sep 25 '19 at 18:50