This commit is contained in:
sonichy
2025-05-12 10:13:17 +08:00
parent 51ddc825e9
commit 47fd32872d
4 changed files with 12 additions and 12 deletions

View File

@@ -12,13 +12,6 @@ Display date and time on GNOME taskbar.
[Guide](https://gjs.guide/extensions/development/creating.html)
[Cinnamon_Applet](https://github.com/sonichy/Cinnamon_Applet)
[Calendar](https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/dateMenu.js#L901)
[Tooltip](https://gitlab.com/arcmenu/ArcMenu)
[Dialog](https://gjs.guide/extensions/topics/dialogs.html)
[Settings](https://gjs.guide/extensions/development/preferences.html)
[Settings](https://gjs.guide/guides/gtk/3/16-settings.html#title:-application-settings)
## GSettings schema must be compiled
`glib-compile-schemas schemas/`
## Debug
dbus-run-session -- gnome-shell --nested --wayland

View File

@@ -30,8 +30,8 @@ export default class DatetimeExtension extends Extension {
this._indicator.menu.addMenuItem(menu_calendar);
//https://gjs.guide/extensions/development/preferences.html
const schema = 'org.gnome.shell.extensions.datetime';
this._settings = this.getSettings(schema);
//const schema = 'org.gnome.shell.extensions.datetime';
this._settings = this.getSettings();
const menu_set = new PopupMenu.PopupMenuItem('Set');
menu_set.connect('activate', () => {

View File

@@ -1,10 +1,10 @@
{
"uuid": "datetime@sonichy",
"name": "datetime",
"settings-schema": "org.gnome.shell.extensions.datetime",
"name": "datetime",
"description": "Display date and time on GNOME taskbar",
"author": "sonichy",
"version": "1.0",
"shell-version": [ "45", "46", "47", "48" ],
"url": "https://github.com/sonichy/GNOME_extension"
"url": "https://github.com/sonichy/GNOME_extension",
"settings-schema": "org.gnome.shell.extensions.datetime"
}