fix: telegram - for niri to recognize the app ID(WIP)

This commit is contained in:
Ryan Yin
2025-09-19 22:41:40 +08:00
parent 6a74052413
commit 9509c15ac3
3 changed files with 15 additions and 2 deletions

View File

@@ -99,10 +99,10 @@ buildEnv {
genericName = "Firefox Boxed";
comment = "Firefox Browser";
exec = "${exePath} %U";
terminal = false;
icon = "firefox";
startupNotify = true;
startupWMClass = "firefox";
terminal = false;
type = "Application";
categories = [
"Network"

View File

@@ -74,9 +74,9 @@ buildEnv {
genericName = "QQ Boxed";
comment = "Tencent QQ, also known as QQ, is an instant messaging software service and web portal developed by the Chinese technology company Tencent.";
exec = "${exePath} %U";
startupNotify = true;
terminal = false;
icon = "${qq}/share/icons/hicolor/512x512/apps/qq.png";
startupNotify = true;
startupWMClass = "QQ";
type = "Application";
categories = [

View File

@@ -62,6 +62,8 @@ buildEnv {
tryExec = "${exePath}";
exec = "${exePath} -- %u";
icon = appId;
startupNotify = true;
startupWMClass = appId;
terminal = false;
type = "Application";
categories = [
@@ -83,8 +85,19 @@ buildEnv {
"sms"
"tdesktop"
];
actions = {
quit = {
name = "Quit Telegram";
exec = "${exePath} -quit";
icon = "application-exit";
};
};
extraConfig = {
X-Flatpak = appId;
DBusActivatable = "true";
SingleMainWindow = "true";
X-GNOME-UsesNotifications = "true";
X-GNOME-SingleWindow = "true";
};
})
];