【发布时间】:2020-07-17 20:40:59
【问题描述】:
我正在开发一个项目,该项目将从 gjs 脚本创建通知。 没有错误,但未显示通知。 有什么建议吗? 代码:
#!/usr/bin/gjs
const Gio = imports.gi.Gio;
var Application = new Gio.Application({applicationId:"sk.project.app", flags:32});
var Notification = new Gio.Notification();
Notification.set_body("message here");
Application.send_notification(null, Notification);
【问题讨论】:
标签: notifications gio gjs