Consider a solution that allows your system to be used in other DE's like Gnome, KDE, Cinnamon, Budgie ...
(com.github.artegeek.planner:11177): GLib-GIO-ERROR **: 20:16:46.700: Settings schema 'io.elementary.desktop.wingpanel.datetime' is not installed
[1] 11177 trace trap (core dumped) com.github.artegeek.planner
I think this problem happens because I'm using libgranite.
But first, I have to see what Planner looks like outside the official theme of elementary.
I think it's not Granite because I use other elementary applications in Arch + Gnome.
On DeadlineButton.vala#L42 you use
Granite.DateTime.get_relative_datetime `(deadline);
Granite's get_relative_datetime() uses this function which uses
var h24_settings = new Settings ("io.elementary.desktop.wingpanel.datetime");
@btd1337 The problem has already been solved. Try compiling the latest version in the repository
@alainm23 Not solved for me:
nov 28 00:50:41 com.github.arte[20056]: Attempting to add a widget with type GtkImage to a container of type GtkToggleButton, but the widget is already inside a contain>
nov 28 00:50:41 com.github.arte[20056]: Settings schema 'io.elementary.desktop.wingpanel.datetime' is not installed
nov 28 00:50:42 systemd-coredump[20062]: Process 20056 (com.github.arte) of user 1000 dumped core.
Stack trace of thread 20056:
#0 0x00007fb692f379b6 n/a (libglib-2.0.so.0)
#1 0x00007fb692f37b9e g_log_default_handler (libglib-2.0.so.0)
#2 0x00007fb692f38341 g_logv (libglib-2.0.so.0)
#3 0x00007fb692f38560 g_log (libglib-2.0.so.0)
#4 0x00007fb6924ebda5 n/a (libgio-2.0.so.0)
#5 0x00007fb693034652 n/a (libgobject-2.0.so.0)
#6 0x00007fb693034eb4 g_object_new_valist (libgobject-2.0.so.0)
#7 0x00007fb69303584a g_object_new (libgobject-2.0.so.0)
#8 0x00007fb692e6ef41 n/a (libgranite.so.5)
#9 0x00007fb692e8e9a2 n/a (libgranite.so.5)
#10 0x00007fb69303407b n/a (libgobject-2.0.so.0)
#11 0x00007fb69303576d g_object_new_with_properties (libgobject-2.0.so.0)
#12 0x00007fb69303587a g_object_new (libgobject-2.0.so.0)
#13 0x000055eb75cedc89 n/a (com.github.artegeek.planner)
#14 0x00007fb693034a66 n/a (libgobject-2.0.so.0)
#15 0x00007fb693034eb4 g_object_new_valist (libgobject-2.0.so.0)
#16 0x00007fb69303584a g_object_new (libgobject-2.0.so.0)
#17 0x000055eb75ced503 n/a (com.github.artegeek.planner)
#18 0x000055eb75cdb810 n/a (com.github.artegeek.planner)
#19 0x00007fb69303407b n/a (libgobject-2.0.so.0)
#20 0x00007fb693034eb4 g_object_new_valist (libgobject-2.0.so.0)
#21 0x00007fb69303584a g_object_new (libgobject-2.0.so.0)
#22 0x000055eb75ce8f24 n/a (com.github.artegeek.planner)
#23 0x00007fb69303407b n/a (libgobject-2.0.so.0)
#24 0x00007fb693034eb4 g_object_new_valist (libgobject-2.0.so.0)
#25 0x00007fb69303584a g_object_new (libgobject-2.0.so.0)
#26 0x000055eb75ce857e n/a (com.github.artegeek.planner)
#27 0x000055eb75cd3d14 n/a (com.github.artegeek.planner)
#28 0x00007fb69303407b n/a (libgobject-2.0.so.0)
#29 0x00007fb693034eb4 g_object_new_valist (libgobject-2.0.so.0)
#30 0x00007fb69303584a g_object_new (libgobject-2.0.so.0)
#31 0x000055eb75cd0deb n/a (com.github.artegeek.planner)
#32 0x00007fb69303407b n/a (libgobject-2.0.so.0)
#33 0x00007fb693034eb4 g_object_new_valist (libgobject-2.0.so.0)
#34 0x00007fb69303584a g_object_new (libgobject-2.0.so.0)
#35 0x000055eb75cd095e n/a (com.github.artegeek.planner)
#36 0x000055eb75ccb103 n/a (com.github.artegeek.planner)
#37 0x00007fb69303407b n/a (libgobject-2.0.so.0)
#38 0x00007fb693034eb4 g_object_new_valist (libgobject-2.0.so.0)
#39 0x00007fb69303584a g_object_new (libgobject-2.0.so.0)
#40 0x000055eb75ccaeb8 n/a (com.github.artegeek.planner)
#41 0x000055eb75cca3aa n/a (com.github.artegeek.planner)
#42 0x00007fb6930303d5 g_closure_invoke (libgobject-2.0.so.0)
#43 0x00007fb69301c99f n/a (libgobject-2.0.so.0)
#44 0x00007fb69302101e g_signal_emit_valist (libgobject-2.0.so.0)
#45 0x00007fb693021a80 g_signal_emit (libgobject-2.0.so.0)
#46 0x00007fb6925030f9 n/a (libgio-2.0.so.0)
#47 0x00007fb69250274b g_application_run (libgio-2.0.so.0)
#48 0x000055eb75cca83f n/a (com.github.artegeek.planner)
#49 0x00007fb691f46223 __libc_start_main (libc.so.6)
#50 0x000055eb75cca07e n/a (com.github.artegeek.planner)
Stack trace of thread 20060:
#0 0x00007fb692012c21 __poll (libc.so.6)
#1 0x00007fb692f49ee0 n/a (libglib-2.0.so.0)
#2 0x00007fb692f49fce g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007fb69332bbde n/a (libdconfsettings.so)
#4 0x00007fb692f133eb n/a (libglib-2.0.so.0)
#5 0x00007fb6920efa9d start_thread (libpthread.so.0)
#6 0x00007fb69201db23 __clone (libc.so.6)
Stack trace of thread 20059:
#0 0x00007fb692012c21 __poll (libc.so.6)
#1 0x00007fb692f49ee0 n/a (libglib-2.0.so.0)
#2 0x00007fb692f4af62 g_main_loop_run (libglib-2.0.so.0)
#3 0x00007fb6924c3c28 n/a (libgio-2.0.so.0)
#4 0x00007fb692f133eb n/a (libglib-2.0.so.0)
#5 0x00007fb6920efa9d start_thread (libpthread.so.0)
#6 0x00007fb69201db23 __clone (libc.so.6)
Stack trace of thread 20058:
#0 0x00007fb692012c21 __poll (libc.so.6)
#1 0x00007fb692f49ee0 n/a (libglib-2.0.so.0)
#2 0x00007fb692f49fce g_main_context_iteration (libglib-2.0.so.0)
#3 0x00007fb692f4a022 n/a (libglib-2.0.so.0)
#4 0x00007fb692f133eb n/a (libglib-2.0.so.0)
#5 0x00007fb6920efa9d start_thread (libpthread.so.0)
#6 0x00007fb69201db23 __clone (libc.so.6)
Look for the problem and solve it, try compiling the latest version in the repository and please let me know if it gives you an error or not. thank you for the feedback 馃榿
The same error remains...
Well, I'll see the need to stop using Granite.DateTime, in the afternoon I solve it, do not despair
@btd1337 You are sure that you are still giving this error, and have been reviewing the code of Granite.DateTime and at no time the functions I am using have any reference to any specific property of elementary.
The error persists...
Were you able to run on another DE?
It is still using something from wingpanel's datetime
$> G_MESSAGES_DEBUG=all com.github.artegeek.planner
(process:29288): dconf-DEBUG: 22:43:56.329: watch_fast: "/com/github/artegeek/planner/" (establishing: 0, active: 0)
(process:29288): dconf-DEBUG: 22:43:56.329: watch_established: "/com/github/artegeek/planner/" (establishing: 1)
** (process:29288): DEBUG: 22:43:56.330: Database.vala:47: Table PROJECTS created
** (process:29288): DEBUG: 22:43:56.330: Database.vala:65: Table TASKS created
** (process:29288): DEBUG: 22:43:56.330: Database.vala:71: Table TASKS created
(com.github.artegeek.planner:29288): Gtk-DEBUG: 22:43:56.353: Connecting to session manager
(com.github.artegeek.planner:29288): Gtk-WARNING **: 22:43:56.387: Attempting to add a widget with type GtkImage to a container of type GtkToggleButton, but the widget is already inside a container of type GtkToggleButton, please remove the widget from its existing container first.
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.414: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.414: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.414: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.415: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.415: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.415: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.415: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.416: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.416: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.427: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.428: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.428: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.429: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.429: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.429: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.429: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.429: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.429: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.434: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.434: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.434: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): Gtk-CRITICAL **: 22:43:56.436: gtk_stack_add_named: assertion 'GTK_IS_WIDGET (child)' failed
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.442: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.442: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.442: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.444: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.444: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.444: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.444: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.444: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.446: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.453: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.454: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.454: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.455: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.455: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.455: watch_fast: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0, active: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.455: unwatch_fast: "/io/elementary/desktop/wingpanel/datetime/" (active: 0, establishing: 1)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.455: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.455: watch_established: "/io/elementary/desktop/wingpanel/datetime/" (establishing: 0)
** (com.github.artegeek.planner:29288): CRITICAL **: 22:43:56.456: widgets_when_button_set_date: assertion 'date != NULL' failed
true(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.547: change_fast
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.547: change_notify: /com/github/artegeek/planner/window-size
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.581: change_fast
(com.github.artegeek.planner:29288): dconf-DEBUG: 22:43:56.581: change_notify: /com/github/artegeek/planner/window-position
Granite.Widgets.TimePicker uses the function is_clock_format_12h () which uses io.elementary.desktop.wingpanel.datetime
This library doesn't solve the problem?
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstClock.html
Fuck, I think I'll create my own Widget to define a time and put in the settings an option to be able to choose a 24 or 12 hour format without relying on some elementary default settings.
@cjfloss Thank you very much, you have a good eye.

@btd1337 Now, brother, compile the latest version, I think I can finally close this issue 馃槑
Now works! Thanks bro!

Most helpful comment
@cjfloss Thank you very much, you have a good eye.