diff options
Diffstat (limited to 'src/utils/system.ts')
| -rw-r--r-- | src/utils/system.ts | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/utils/system.ts b/src/utils/system.ts index 31e9cfd..8180e48 100644 --- a/src/utils/system.ts +++ b/src/utils/system.ts @@ -56,13 +56,11 @@ export const notify = (props: { export const osId = GLib.get_os_info("ID") ?? "unknown"; export const osIdLike = GLib.get_os_info("ID_LIKE"); -export const osIcon = String.fromCodePoint( - (() => { - if (osIcons.hasOwnProperty(osId)) return osIcons[osId]; - if (osIdLike) for (const id of osIdLike.split(" ")) if (osIcons.hasOwnProperty(id)) return osIcons[id]; - return 0xf31a; - })() -); +export const osIcon = (() => { + if (osIcons.hasOwnProperty(osId)) return osIcons[osId]; + if (osIdLike) for (const id of osIdLike.split(" ")) if (osIcons.hasOwnProperty(id)) return osIcons[id]; + return ""; +})(); export const currentTime = Variable(GLib.DateTime.new_now_local()).poll(1000, () => GLib.DateTime.new_now_local()); export const bindCurrentTime = (format: string, fallback?: (time: GLib.DateTime) => string) => |