clock freezes after modifying layout.js

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I modified the file
"/usr/share/kde4/apps/plasma/layout-templates/org.kde.plasma-desktop.defaultPanel/contents/layout.js".
(Just for ease of testing, I know about kde path stacking.)

Original File (from Debian Wheezy):

------------------------------------------------------------

var panel = new Panel
if (panelIds.length == 1) {
    // we are the only panel, so set the location for the user
    panel.location = 'bottom'
}

panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27
panel.addWidget("launcher")
panel.addWidget("org.kde.showActivityManager")
panel.addWidget("pager")
tasks = panel.addWidget("tasks")
panel.addWidget("systemtray")
panel.addWidget("digital-clock")

tasks.currentConfigGroup = new Array("Launchers")
tasks.writeConfig("browser", "preferred://browser, , , ")
tasks.writeConfig("filemanager", "preferred://filemanager, , , ")

------------------------------------------------------------

Modified File:

------------------------------------------------------------

var panel = new Panel
if (panelIds.length == 1) {
    // we are the only panel, so set the location for the user
    panel.location = 'bottom'
}

panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27
panel.addWidget("launcher")
panel.addWidget("org.kde.showActivityManager")
panel.addWidget("pager")
tasks = panel.addWidget("tasks")
panel.addWidget("systemtray")

// Whonix changes
clock = panel.addWidget("digital-clock")
clock.writeConfig("Share", "false")
clock.writeConfig("announceInterval", "0")
clock.writeConfig("calendarType", "locale")
clock.writeConfig("dateStyle", "4")
clock.writeConfig("defaultTimezone", "UTC")
clock.writeConfig("displayEvents", "true")
clock.writeConfig("displayHolidays", "false")
clock.writeConfig("holidaysRegions", "")
clock.writeConfig("holidaysRegionsDaysOff", "")
clock.writeConfig("plainClockDrawShadow", "true")
clock.writeConfig("plainClockFont", "DejaVu Sans,14,-1,0,50,0,0,0,0,0")
clock.writeConfig("showSeconds", "true")
clock.writeConfig("showTimezone", "true")
clock.writeConfig("timeZones", "UTC")
clock.writeConfig("timezone", "UTC")
clock.writeConfig("useCustomColor", "false")
clock.writeConfig("useCustomShadowColor", "false")
// End of Whonix changes

tasks.currentConfigGroup = new Array("Launchers")
tasks.writeConfig("browser", "preferred://browser, , , ")
tasks.writeConfig("filemanager", "preferred://filemanager, , , ")

------------------------------------------------------------

"Lighter" modified File:

------------------------------------------------------------

var panel = new Panel
if (panelIds.length == 1) {
    // we are the only panel, so set the location for the user
    panel.location = 'bottom'
}

panel.height = screenGeometry(panel.screen).height > 1024 ? 35 : 27
panel.addWidget("launcher")
panel.addWidget("org.kde.showActivityManager")
panel.addWidget("pager")
tasks = panel.addWidget("tasks")
panel.addWidget("systemtray")

// Whonix changes
clock = panel.addWidget("digital-clock")
clock.writeConfig("dateStyle", "4")
clock.writeConfig("defaultTimezone", "UTC")
clock.writeConfig("displayHolidays", "false")
clock.writeConfig("showSeconds", "true")
clock.writeConfig("showTimezone", "true")
clock.writeConfig("timeZones", "UTC")
clock.writeConfig("timezone", "UTC")
// End of Whonix changes

tasks.currentConfigGroup = new Array("Launchers")
tasks.writeConfig("browser", "preferred://browser, , , ")
tasks.writeConfig("filemanager", "preferred://filemanager, , , ")

------------------------------------------------------------

Both times, the clock is configured as I wish, but the seconds are
frozen. To get it running it is required to view the digital clock
settings and press ok. Then it's working.

Did I mess up the configuration somewhere?

Cheers,
adrelanos

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux