From 594aba2544a42f8cba34e64b43c9783c7f55f76c Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 11 Feb 2024 22:22:45 +0100 Subject: [PATCH 01/80] Remove auto versioning for arch package --- dist/arch/gnome/PKGBUILD | 4 ++-- dist/arch/kde/PKGBUILD | 4 ++-- dist/arch/minimal/PKGBUILD | 4 ++-- dist/rpm/gnome/_service | 5 ++++- dist/rpm/kde/_service | 5 ++++- dist/rpm/minimal/_service | 5 ++++- update_version.sh | 11 +++++++++++ 7 files changed, 29 insertions(+), 9 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index cb540ad..4f137c2 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Maxime Rijnders pkgname=systray-x-gnome -pkgver=0 -pkgrel=0 +pkgver=0.9.8 +pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (GNOME)' arch=(x86_64) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index fefb022..a733160 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Maxime Rijnders pkgname=systray-x -pkgver=0 -pkgrel=0 +pkgver=0.9.8 +pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (KDE)' arch=(x86_64) diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 8b35ab5..63b0f76 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: Maxime Rijnders pkgname=systray-x-minimal -pkgver=0 -pkgrel=0 +pkgver=0.9.8 +pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (Unity/XFCE/other)' arch=(x86_64) diff --git a/dist/rpm/gnome/_service b/dist/rpm/gnome/_service index 92d4fd8..97d9845 100644 --- a/dist/rpm/gnome/_service +++ b/dist/rpm/gnome/_service @@ -22,5 +22,8 @@ *.tar xz - + + systray-x-gnome.dsc + systray-x-gnome.spec + diff --git a/dist/rpm/kde/_service b/dist/rpm/kde/_service index d046639..a68c895 100644 --- a/dist/rpm/kde/_service +++ b/dist/rpm/kde/_service @@ -19,5 +19,8 @@ *.tar xz - + + systray-x.dsc + systray-x.spec + diff --git a/dist/rpm/minimal/_service b/dist/rpm/minimal/_service index 88d3ed4..1fb9b19 100644 --- a/dist/rpm/minimal/_service +++ b/dist/rpm/minimal/_service @@ -21,5 +21,8 @@ *.tar xz - + + systray-x-minimal.dsc + systray-x-minimal.spec + diff --git a/update_version.sh b/update_version.sh index a542ad5..e8498e1 100755 --- a/update_version.sh +++ b/update_version.sh @@ -19,6 +19,17 @@ SERVICE_FILE="./dist/rpm/minimal/_service" sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE + +SERVICE_FILE="./dist/arch/kde/PKGBUILD" +sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE + +SERVICE_FILE="./dist/arch/gnome/PKGBUILD" +sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE + +SERVICE_FILE="./dist/arch/minimal/PKGBUILD" +sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE + + MANIFEST_FILE="./webext/manifest.json" sed -i -e "s?\(^.*\"version\": \"\).*\(\",\)?\1$VERSION\2?" $MANIFEST_FILE From 581a2014b2f11a7b2d0fa2de9e8b30dbacdb266f Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 12 Feb 2024 00:13:18 +0100 Subject: [PATCH 02/80] Remove auto versioning for deb packages --- dist/deb/gnome/debian.changelog | 2 +- dist/deb/gnome/systray-x-gnome.dsc | 2 +- dist/deb/kde/debian.changelog | 2 +- dist/deb/kde/systray-x.dsc | 2 +- dist/deb/minimal/debian.changelog | 2 +- dist/deb/minimal/systray-x-minimal.dsc | 2 +- dist/rpm/gnome/_service | 1 - dist/rpm/kde/_service | 1 - dist/rpm/minimal/_service | 1 - update_version.sh | 16 ++++++++++++++++ 10 files changed, 22 insertions(+), 9 deletions(-) diff --git a/dist/deb/gnome/debian.changelog b/dist/deb/gnome/debian.changelog index bbe041e..734f9f5 100644 --- a/dist/deb/gnome/debian.changelog +++ b/dist/deb/gnome/debian.changelog @@ -1,4 +1,4 @@ -systray-x-gnome (0.9.8-0) unstable; urgency=low +systray-x-gnome (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/gnome/systray-x-gnome.dsc b/dist/deb/gnome/systray-x-gnome.dsc index be2642e..9a21e41 100644 --- a/dist/deb/gnome/systray-x-gnome.dsc +++ b/dist/deb/gnome/systray-x-gnome.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-gnome -Version: 0-0 +Version: 0.9.8-1 Binary: systray-x-gnome Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/kde/debian.changelog b/dist/deb/kde/debian.changelog index 7649218..c870a3a 100644 --- a/dist/deb/kde/debian.changelog +++ b/dist/deb/kde/debian.changelog @@ -1,4 +1,4 @@ -systray-x (0.9.8-0) unstable; urgency=low +systray-x (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/kde/systray-x.dsc b/dist/deb/kde/systray-x.dsc index 820f28a..a33498e 100644 --- a/dist/deb/kde/systray-x.dsc +++ b/dist/deb/kde/systray-x.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x -Version: 0-0 +Version: 0.9.8-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/minimal/debian.changelog b/dist/deb/minimal/debian.changelog index 45d72af..26261f1 100644 --- a/dist/deb/minimal/debian.changelog +++ b/dist/deb/minimal/debian.changelog @@ -1,4 +1,4 @@ -systray-x-minimal (0.9.8-0) unstable; urgency=low +systray-x-minimal (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/minimal/systray-x-minimal.dsc b/dist/deb/minimal/systray-x-minimal.dsc index a4f58c8..efe1c10 100644 --- a/dist/deb/minimal/systray-x-minimal.dsc +++ b/dist/deb/minimal/systray-x-minimal.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-minimal -Version: 0-0 +Version: 0.9.8-1 Binary: systray-x-minimal Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/rpm/gnome/_service b/dist/rpm/gnome/_service index 97d9845..16cffd9 100644 --- a/dist/rpm/gnome/_service +++ b/dist/rpm/gnome/_service @@ -23,7 +23,6 @@ xz - systray-x-gnome.dsc systray-x-gnome.spec diff --git a/dist/rpm/kde/_service b/dist/rpm/kde/_service index a68c895..98f3604 100644 --- a/dist/rpm/kde/_service +++ b/dist/rpm/kde/_service @@ -20,7 +20,6 @@ xz - systray-x.dsc systray-x.spec diff --git a/dist/rpm/minimal/_service b/dist/rpm/minimal/_service index 1fb9b19..7f26468 100644 --- a/dist/rpm/minimal/_service +++ b/dist/rpm/minimal/_service @@ -22,7 +22,6 @@ xz - systray-x-minimal.dsc systray-x-minimal.spec diff --git a/update_version.sh b/update_version.sh index e8498e1..cd4145d 100755 --- a/update_version.sh +++ b/update_version.sh @@ -20,6 +20,22 @@ sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE +SERVICE_FILE="./dist/deb/kde/debian.changelog" +sed -i -e "0,/systray-x/{s?\(^systray-x \).*\( unstable.*\)?\1($VERSION-1)\2?}" $SERVICE_FILE +SERVICE_FILE="./dist/deb/kde/systray-x.dsc" +sed -i -e "s?\(^Version: \).*?\1$VERSION-1?" $SERVICE_FILE + +SERVICE_FILE="./dist/deb/gnome/debian.changelog" +sed -i -e "0,/systray-x/{s?\(^systray-x-gnome \).*\( unstable.*\)?\1($VERSION-1)\2?}" $SERVICE_FILE +SERVICE_FILE="./dist/deb/gnome/systray-x-gnome.dsc" +sed -i -e "s?\(^Version: \).*?\1$VERSION-1?" $SERVICE_FILE + +SERVICE_FILE="./dist/deb/minimal/debian.changelog" +sed -i -e "0,/systray-x/{s?\(^systray-x-minimal \).*\( unstable.*\)?\1($VERSION-1)\2?}" $SERVICE_FILE +SERVICE_FILE="./dist/deb/minimal/systray-x-minimal.dsc" +sed -i -e "s?\(^Version: \).*?\1$VERSION-1?" $SERVICE_FILE + + SERVICE_FILE="./dist/arch/kde/PKGBUILD" sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE From 87aa90fd2dd56b90dd34732adb07f4a38dd16b9f Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 12 Feb 2024 13:06:02 +0100 Subject: [PATCH 03/80] Update version handling --- dist/rpm/VERSION | 4 ++-- dist/rpm/gnome/_service | 2 +- dist/rpm/kde/_service | 2 +- dist/rpm/minimal/_service | 2 +- update_version.sh | 29 ++++++++++++++++++++--------- 5 files changed, 25 insertions(+), 14 deletions(-) diff --git a/dist/rpm/VERSION b/dist/rpm/VERSION index 326a83b..9af9985 100644 --- a/dist/rpm/VERSION +++ b/dist/rpm/VERSION @@ -1,4 +1,4 @@ VERSION=0.9.8 -BUILD_NUMBER=1064 -GIT_HASH=ac868b317d5348124db1a506b0a32a1c30ba7ea6 +BUILD_NUMBER=1067 +GIT_HASH=581a2014b2f11a7b2d0fa2de9e8b30dbacdb266f GIT_BRANCH=develop diff --git a/dist/rpm/gnome/_service b/dist/rpm/gnome/_service index 16cffd9..f56678f 100644 --- a/dist/rpm/gnome/_service +++ b/dist/rpm/gnome/_service @@ -2,7 +2,7 @@ https://github.com/Ximi1970/systray-x.git git - 0.9.8 + release-0.9.8 0.9.8 systray-x-gnome dist/rpm/gnome/systray-x-gnome.changes diff --git a/dist/rpm/kde/_service b/dist/rpm/kde/_service index 98f3604..b99815b 100644 --- a/dist/rpm/kde/_service +++ b/dist/rpm/kde/_service @@ -2,7 +2,7 @@ https://github.com/Ximi1970/systray-x.git git - 0.9.8 + release-0.9.8 0.9.8 dist/rpm/kde/systray-x.changes dist/rpm/kde/systray-x.spec diff --git a/dist/rpm/minimal/_service b/dist/rpm/minimal/_service index 7f26468..bcf4a3b 100644 --- a/dist/rpm/minimal/_service +++ b/dist/rpm/minimal/_service @@ -2,7 +2,7 @@ https://github.com/Ximi1970/systray-x.git git - 0.9.8 + release-0.9.8 0.9.8 systray-x-minimal dist/rpm/minimal/systray-x-minimal.changes diff --git a/update_version.sh b/update_version.sh index cd4145d..dcbbea1 100755 --- a/update_version.sh +++ b/update_version.sh @@ -1,49 +1,60 @@ #!/bin/bash +if [[ -z $2 ]] ; then + RELEASE=1 +else + RELEASE=$2 +fi + VERSION=$1 +echo $VERSION-$RELEASE + VERSION_AR=(${VERSION//./ }) VERSION_MAJOR=${VERSION_AR[0]} VERSION_MINOR=${VERSION_AR[1]} VERSION_BUILD=${VERSION_AR[2]} SERVICE_FILE="./dist/rpm/kde/_service" -sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE +sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1release-$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE SERVICE_FILE="./dist/rpm/gnome/_service" -sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE +sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1release-$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE SERVICE_FILE="./dist/rpm/minimal/_service" -sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE +sed -i -e "s?\(^.*\"revision\">\).*\(\)?\1release-$VERSION\2?" $SERVICE_FILE sed -i -e "s?\(^.*\"versionformat\">\).*\(\)?\1$VERSION\2?" $SERVICE_FILE SERVICE_FILE="./dist/deb/kde/debian.changelog" -sed -i -e "0,/systray-x/{s?\(^systray-x \).*\( unstable.*\)?\1($VERSION-1)\2?}" $SERVICE_FILE +sed -i -e "0,/systray-x/{s?\(^systray-x \).*\( unstable.*\)?\1($VERSION-$RELEASE)\2?}" $SERVICE_FILE SERVICE_FILE="./dist/deb/kde/systray-x.dsc" -sed -i -e "s?\(^Version: \).*?\1$VERSION-1?" $SERVICE_FILE +sed -i -e "s?\(^Version: \).*?\1$VERSION-$RELEASE?" $SERVICE_FILE SERVICE_FILE="./dist/deb/gnome/debian.changelog" -sed -i -e "0,/systray-x/{s?\(^systray-x-gnome \).*\( unstable.*\)?\1($VERSION-1)\2?}" $SERVICE_FILE +sed -i -e "0,/systray-x/{s?\(^systray-x-gnome \).*\( unstable.*\)?\1($VERSION-$RELEASE)\2?}" $SERVICE_FILE SERVICE_FILE="./dist/deb/gnome/systray-x-gnome.dsc" -sed -i -e "s?\(^Version: \).*?\1$VERSION-1?" $SERVICE_FILE +sed -i -e "s?\(^Version: \).*?\1$VERSION-$RELEASE?" $SERVICE_FILE SERVICE_FILE="./dist/deb/minimal/debian.changelog" -sed -i -e "0,/systray-x/{s?\(^systray-x-minimal \).*\( unstable.*\)?\1($VERSION-1)\2?}" $SERVICE_FILE +sed -i -e "0,/systray-x/{s?\(^systray-x-minimal \).*\( unstable.*\)?\1($VERSION-$RELEASE)\2?}" $SERVICE_FILE SERVICE_FILE="./dist/deb/minimal/systray-x-minimal.dsc" -sed -i -e "s?\(^Version: \).*?\1$VERSION-1?" $SERVICE_FILE +sed -i -e "s?\(^Version: \).*?\1$VERSION-$RELEASE?" $SERVICE_FILE SERVICE_FILE="./dist/arch/kde/PKGBUILD" sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE +sed -i -e "s?\(^pkgrel=\).*?\1$RELEASE?" $SERVICE_FILE SERVICE_FILE="./dist/arch/gnome/PKGBUILD" sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE +sed -i -e "s?\(^pkgrel=\).*?\1$RELEASE?" $SERVICE_FILE SERVICE_FILE="./dist/arch/minimal/PKGBUILD" sed -i -e "s?\(^pkgver=\).*?\1$VERSION?" $SERVICE_FILE +sed -i -e "s?\(^pkgrel=\).*?\1$RELEASE?" $SERVICE_FILE MANIFEST_FILE="./webext/manifest.json" From 8da125e8b62d68575c10c1ee5862f018f5832805 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 12 Feb 2024 15:29:34 +0100 Subject: [PATCH 04/80] Fix arch package --- dist/arch/gnome/PKGBUILD | 1 + dist/arch/kde/PKGBUILD | 1 + dist/arch/minimal/PKGBUILD | 1 + dist/rpm/minimal/_service | 1 - 4 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index 4f137c2..fe5b5aa 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -10,6 +10,7 @@ url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( 'qt5-base' + 'qt5-x11extras' 'gnome-shell-extension-appindicator' 'thunderbird>=91' 'thunderbird<121' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index a733160..3e602c4 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -10,6 +10,7 @@ url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( 'qt5-base' + 'qt5-x11extras' 'knotifications5' 'thunderbird>=91' 'thunderbird<121' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 63b0f76..94e7ee3 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -10,6 +10,7 @@ url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( 'qt5-base' + 'qt5-x11extras' 'thunderbird>=91' 'thunderbird<121' ) diff --git a/dist/rpm/minimal/_service b/dist/rpm/minimal/_service index bcf4a3b..60967da 100644 --- a/dist/rpm/minimal/_service +++ b/dist/rpm/minimal/_service @@ -12,7 +12,6 @@ dist/deb/minimal/debian.compat dist/deb/minimal/debian.control dist/deb/minimal/debian.rules - dist/deb/minimal/debian.postinst dist/deb/minimal/systray-x-minimal.dsc dist/arch/minimal/PKGBUILD From ae3f31e7fa105795a8f1820d4cf2f1781a0cb548 Mon Sep 17 00:00:00 2001 From: UM-Li Date: Thu, 7 Mar 2024 15:20:35 +0100 Subject: [PATCH 05/80] Simplified Chinese translation --- README.md | 1 + app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 3 +- .../languages/SysTray-X.zh-CN.qm | Bin 0 -> 6898 bytes .../languages/SysTray-X.zh-CN.ts | 527 +++++++++++++++++ webext/_locales/zh-CN/messages.json | 556 ++++++++++++++++++ 5 files changed, 1086 insertions(+), 1 deletion(-) create mode 100644 app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.qm create mode 100644 app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.ts create mode 100644 webext/_locales/zh-CN/messages.json diff --git a/README.md b/README.md index 88a9a91..0e51a10 100644 --- a/README.md +++ b/README.md @@ -589,6 +589,7 @@ it : lgbaldoni nl : pt_BR : fabianski7 ru_RU : agvantibo +zh_CN : UM-Li ### Remarks diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index aa552c9..a600b96 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -45,7 +45,8 @@ TRANSLATIONS = \ languages/$${TARGET}.it.ts \ languages/$${TARGET}.nl.ts \ languages/$${TARGET}.pt-BR.ts \ - languages/$${TARGET}.ru.ts + languages/$${TARGET}.ru.ts \ + languages/$${TARGET}.zh-CN.ts # The following define makes your compiler emit warnings if you use # any feature of Qt which has been marked as deprecated (the exact warnings diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.qm new file mode 100644 index 0000000000000000000000000000000000000000..b7fa85a8a320c9539f36dc9eca0d98454e2cc0a3 GIT binary patch literal 6898 zcmb7I3vd+W9siQ-ZT23y3kjqUU|fMlUU>n61nH0jkN~+nE+k=sguS~jcPn?h+ugmy z#7Duw5eQ(~0wOXvs34`SWopL)rB<0jYgU%Ut*$6B=Vv;7E- zXhTo^U=qk%nNjL^8=;)}8MB{w1tHh5jQKmigulO=vA2E$=)FGU{5Q7{;x1sO5ea$N%9zpia^?wF^g6x&0dqMw)vmZKi0_;1L{a#=S_~-NN(=*`r z+-z>M>nnJNxUCab13k|jyAFD>^SBdpK~DZQ>+AzSXPar&rd5FcW33x&z;Eb9>!I%g zUET)U!I%1gZl&!n`4hn(|FZq{;s?P0Rl7ZW3G}&cFYSFA{Qb4Pq5nq^$N$-dV~2ol zhW%&T8Ub&yfAaMi(D#q_Yl~k4Jy}Pd|5?b3QpbW1ATCUqqiz+*&w0fWx^WTg9P8Mf z0d{5Va(r~`GWg?8&Z62YpkFZO@;|^2dCQ#4TW>u)T9Ybt7q_Nl!#1+Gw7-yova3`<@&zkW69+b|zMVkKRz<{+KQ*llEdh-*6ilGE zED^LJSkJoK5X67Kc4f=z?UBj-5WjU6Ft!zmC=5?Inv3QnxO5^llCPG-iXe%y#8)Z` z@9pMW#jsdDcTQ@jv+9z-^aKsLW~^!ePHmF|gcF-|gpo>J#)bt=$7)KCrHK1N?2QCk zM1KJ5M%+1kxbF@3%>*T^ZrsI(1u+!WVlZHIDpzgE>iv*v-`XX zI*@H_6V`M-nr=f;&!9r0)H6(Z&m2TO)0BGFAnI8uscnI&y>|wA%&|gJvEVmzTBICo ztwi;x2JyZ#buabq!wNnc8gN=}Wql3rlOvMOhp`@%{Y3hRdKGtI6-z#>C7e~JuJ(Hp z)z(@W5(82gOS&0^Br=6Cker$cHS0Nnm4uYARjPpqk)RnlF_c<8J)KWc8MdmBAg$#^ zpDdY3V%)`UJH_Nw$+|9wc^`;Uu^H^qPZMDF7%YT4Onu<_A_3%xfmAUNG(*|Kb(?+< zr4jy9J*`!$+@;}?k`gl=Js*WPQV3fOg$;*H=(#?t_e%3O!R!P~P?j}QKS-9I9!hVi z4q?Hl1VcoKYtVLF^;x&Skq9xDU?UKcJoqLBji?R*h!+$kB>Ds$3YLjk3`ungwN#T7 zHzDT;`IAqy^iqh;fbe>^V&;j$c28q%$9K9b;GC5rerMma@3(*M>)KJ0kjCSyBPtvw zo!5eL7hlQ;ML#B=RoxfS%`%%^|IfDF?i#9+y*i?iJWZF}NoCPOi{TK_83%ndh$2Wr zep2C)7g~)9pZUEX_r6AD=P$$^LL{W~O~Hud$EsIU&1wbLA@voK7*Yl~aRxpTMUzl4 zNpc-=SQ?|*09xhp6i{)waa>rGpcnR-Ni>vgDs4PS(XKdJ(*;$JC?@JUNc4%vdtUHd zq6|hZ6g4Fzbn|}F`1meS^2=Q&T$rR2$ke1MUoEV1l*+OZYF>p5H;V|1lr z2#S|vUF?XJxpY!TKYw)Vg?{eQPx~Ei8$8AE*!!&sC1_%;paw(AcZ` zrt@B-`Asn^M9f;ByO^4lQ!D!YAw0ZxIRLZAV8dva10Y8Xl(t<)kAG5=;cC+#eW!Op zz)DW;pz<*?j^%|=D0Y0!Mwi?;A3VGHqPMm4W9qGOsW?FZcpdf=ljJCL&m(%p`Sm;6 z>dE({n)+?Z8wO`7&U89&lvv&uggpfskBN}cQ6W*|Q;Ha$B;p=eb8*e7CvqvP^w#Ia z(ftlGuR_ron86DN^O+u-U3p_JAEM2%_;7gR8kuU71^b4HXKYb&-F839^z3fdM4DO}dj@h!1yeNHb21AzIw)D3OW(PR+=6%jxuBcI`O?8PeV z2_aLnIjpp`tXjS10V--l45_HH0)kC$b3*WJaO~+zjdEW*o<;w zKp0eETs4VfVX6z57kBnqcXd-OMh#rSBwQhwFeQ7qjlykBvNF7>VgSPt%rHiZ0fdzx z(#;bb8O)OU1slC>F)^m9Wis@sA(pAm4Zd^kn^Awci^=KVw7&D~rc<38wibEkG;JYc z_R6``70Xw^rmF`ruMAwp@P6aol%!h15=Oed7A+lwUho+QQsV{5&v(cnSk=r?vjdhj9Zt85O~`(i940i;Qbm;v6oP1FgnApEGJPB7ph?fTL(of+WKneW>BK z0cuD9S&AAWqOrv%Qx_z6Oatdhz}bpO#VRFZ|J@ogNfQ;^WyH4AWDyVDo&EiVL&cgz zI(~~wT{MlJjf$l334VVutZzPggA4Z?L`z59k7QFbd^zc! + + + + AboutDialog + + + About SysTray-X + 关于 SysTray-X + + + + SysTray-X Companion App by Ximi1970 + SysTray-X 配套应用,作者 Ximi1970 + + + + Version: + 版本: + + + + 0.0.1 + 0.0.1 + + + + Build: + 构建: + + + + + 0 + 0 + + + + Hash: + Hash: + + + + Branch: + 分支: + + + + master + master + + + + DebugWidget + + + SysTray-X Debug + SysTray-X 调试 + + + + Unread mail: + 未读邮件: + + + + + 0 + 0 + + + + New mail: + 新邮件: + + + + Test 1 + 测试 1 + + + + Test 2 + 测试 2 + + + + Test 3 + 测试 3 + + + + Test 4 + 测试 4 + + + + PreferencesDialog + + + SysTray-X Preferences + SysTray-X 首选项 + + + + Windows + 窗口 + + + + Close + 关闭按钮 + + + + Default close + 普通关闭 + + + + Minimize main to tray, close children + 主窗口收回托盘,子窗口关闭 + + + + Minimize all windows to tray + 所有窗口收回托盘 + + + + Minimize main, close children + 主窗口最小化,子窗口关闭 + + + + Minimize all windows + 所有窗口最小化 + + + + Startup + 启动方式 + + + + Default startup + 普通启动 + + + + Start application minimized + 最小化启动 + + + + Start application in tray + 启动至托盘 + + + + Restore startup positions + 启动时恢复窗口位置 + + + + Minimize + 最小化按钮 + + + + + Default minimize + 最小化 + + + + + Minimize to tray + 收回托盘 + + + + Minimize to tray, method 2 + 收回托盘,方法 2 + + + + + + + Icon + 图标 + + + + Default icon + 默认 + + + + + Default Thunderbird + Thunderbird 默认 + + + + Lookthrough icon + 透明 + + + + + Custom icon + 自定义 + + + + + Choose + 选择图标 + + + + KDE integration (Hide) + KDE 集成(隐藏) + + + + Mail notification icon + 有未读邮件时 + + + + Blank icon + 空白 + + + + New mail icon + 新邮件 + + + + No icon + + + + + Invert icon + 反色 + + + + Count + 计数 + + + + Show message count + 显示消息计数 + + + + Show new indicator + 显示新消息提示 + + + + Startup delay + 启动延迟秒数 + + + + Count type + 计数类型 + + + + Unread + 未读消息 + + + + New + 新消息 + + + + Number properties + 数字属性 + + + + Margins (left, top, right, bottom): + 边距(左,上,中,下): + + + + Number color + 颜色 + + + + Number size + 字号 + + + + Alignment + 位置 + + + + Top left + 左上 + + + + Top centre + 中上 + + + + Top right + 右上 + + + + Middle left + 左中 + + + + Middle centre + 正中 + + + + Middle right + 右中 + + + + Bottom left + 左下 + + + + Bottom centre + 中下 + + + + Bottom right + 右下 + + + + New indicator + 新消息提示 + + + + Icon round + 圆点 + + + + Icon star + 星形 + + + + Shade + 背景色 + + + + Special options + 特殊 + + + + API count method + 由 API 提供计数方法 + + + + Apps + 应用 + + + + Close application + 关闭应用时 + + + + + Browse... + 浏览... + + + + + Arguments: + 参数: + + + + Start application + 启动应用时 + + + + Mail + 邮件 + + + + Use the preferences dialog in Thunderbird to select the accounts and folders + 在 Thunderbird 的插件首选项中选择要监视的账户和文件夹 + + + + Shortcuts + 快捷键 + + + + Current show / hide shortcut: + 当前显示 / 隐藏快捷键: + + + + New show / hide shortcut: + 新的显示 / 隐藏快捷键: + + + + Clear + 清空 + + + + Debug + 调试 + + + + Display debug window + 显示调试窗口 + + + + Cancel + 取消 + + + + Save + 保存 + + + + + Open Image + 打开图片 + + + + + Image Files (*.png *.jpg *.bmp) + 图片文件(*.png *.jpg *.bmp) + + + + + Select application + 选择应用 + + + + SysTrayX + + + &Show/Hide + 显示 / 隐藏(&S) + + + + &Preferences + 首选项(&P) + + + + &About + 关于(&A) + + + + &Quit + 退出(&Q) + + + + Close + 关闭 + + + + SysTrayXIcon + + + SysTray-X: Thunderbird add-on companion app + SysTray-X:Thunderbird 插件配套应用 + + + + SysTrayXStatusNotifier + + + Thunderbird add-on companion app + Thunderbird 插件配套应用 + + + diff --git a/webext/_locales/zh-CN/messages.json b/webext/_locales/zh-CN/messages.json new file mode 100644 index 0000000..3625d63 --- /dev/null +++ b/webext/_locales/zh-CN/messages.json @@ -0,0 +1,556 @@ +{ + "extension_name": { + "message": "SysTray-X", + "description": "Name of the webextension" + }, + + "extension_description": { + "message": "系统托盘控制插件,请下载安装配套应用。", + "description": "Webextension descriptions" + }, + + "preferences": { + "message": "SysTray-X 首选项", + "description": "Title of preferences page" + }, + + "intro_line_1": { + "message": "该插件需要和外部应用配合工作,请在这里获取:", + "description": "Introduction line 1" + }, + + "intro_link": { + "message": "下载 SysTray-X 配套应用", + "description": "Link description" + }, + + "tab_windows": { + "message": "窗口", + "description": "Tab for Window options" + }, + + "tab_icon": { + "message": "图标", + "description": "Tab for Icon options" + }, + + "tab_count": { + "message": "计数", + "description": "Tab for Count options" + }, + + "tab_apps": { + "message": "应用", + "description": "Tab for Apps options" + }, + + "tab_mail": { + "message": "邮件", + "description": "Tab for Mail options" + }, + + "tab_shortcuts": { + "message": "快捷键", + "description": "Tab for Shortcuts options" + }, + + "tab_debug": { + "message": "调试", + "description": "Tab for Debug options" + }, + + "windows": { + "message": "窗口", + "description": "Title for Windows options" + }, + + "windows_min_options": { + "message": "最小化按钮", + "description": "Caption for Minimize options" + }, + + "windows_min_default": { + "message": "最小化", + "description": "Minimize option 0" + }, + + "windows_min_to_tray": { + "message": "收回托盘", + "description": "Minimize to tray" + }, + + "windows_min_icon_options": { + "message": "托盘图标", + "description": "Caption for Icon options" + }, + + "windows_min_default_icon": { + "message": "最小化", + "description": "Minimize option 0" + }, + + "windows_min_to_tray_icon": { + "message": "收回托盘", + "description": "Minimize to tray" + }, + + "windows_min_to_tray_1": { + "message": "收回托盘,方法 1", + "description": "Minimize option 1" + }, + + "windows_min_to_tray_2": { + "message": "收回托盘,方法 2", + "description": "Minimize option 2" + }, + + "windows_close_options": { + "message": "关闭按钮", + "description": "Caption for Close options" + }, + + "windows_close_default": { + "message": "普通关闭", + "description": "Close option 0" + }, + + "windows_close_1": { + "message": "主窗口最小化,子窗口关闭", + "description": "Close option 1" + }, + + "windows_close_2": { + "message": "所有窗口最小化", + "description": "Close option 2" + }, + + "windows_close_tray_1": { + "message": "主窗口收回托盘,子窗口关闭", + "description": "Close option 3" + }, + + "windows_close_tray_2": { + "message": "所有窗口收回托盘", + "description": "Close option 4" + }, + + "windows_startup_options": { + "message": "启动方式", + "description": "Startup" + }, + + "windows_default_startup": { + "message": "普通启动", + "description": "Default startup" + }, + + "windows_minimized_startup": { + "message": "最小化启动", + "description": "Start application minimized" + }, + + "windows_docked_startup": { + "message": "启动至托盘", + "description": "Start application in tray" + }, + + "restore_positions_on_startup": { + "message": "启动时恢复窗口位置", + "description": "Restore the window positions on startup" + }, + + "icons": { + "message": "图标", + "description": "Title for Icons options" + }, + + "icons_default_options": { + "message": "默认", + "description": "Caption for Default Icon options" + }, + + "icons_default_tb": { + "message": "Thunderbird 默认", + "description": "Default icon option 1" + }, + + "icons_default_lookthrough": { + "message": "透明", + "description": "Default icon option 2" + }, + + "icons_default_custom": { + "message": "自定义", + "description": "Default icon option 3" + }, + + "icons_default_custom_choose": { + "message": "选择图标...", + "description": "Default icon option 3 button" + }, + + "icons_default_kde_integration": { + "message": "KDE 集成(隐藏)", + "description": "Default icon KDE integration" + }, + + "icons_unread_options": { + "message": "有未读邮件时", + "description": "Caption for Unread Icon options" + }, + + "icons_unread_blank": { + "message": "空白", + "description": "Unread Icon option 1" + }, + + "icons_unread_new": { + "message": "新邮件", + "description": "Unread Icon option 2" + }, + + "icons_unread_custom": { + "message": "自定义", + "description": "Unread Icon option 3" + }, + + "icons_unread_custom_choose": { + "message": "选择图标...", + "description": "Unread Icon option 3 button" + }, + + "icons_unread_no": { + "message": "无", + "description": "Unread Icon option 4" + }, + + "icons_invert_icon": { + "message": "反色", + "description": "Invert icon" + }, + + "count": { + "message": "计数", + "description": "Title for Count options" + }, + + "count_number_display": { + "message": "显示消息计数", + "description": "Show message count" + }, + + "count_new_indicator_display": { + "message": "显示新消息提示", + "description": "Show the new message indicator" + }, + + "count_startup_delay": { + "message": "启动延迟秒数", + "description": "Startup delay" + }, + + "count_number_count_type": { + "message": "计数类型", + "description": "Count type options" + }, + + "count_number_count_unread": { + "message": "未读消息", + "description": "Count unread mails" + }, + + "count_number_count_new": { + "message": "新消息", + "description": "Count new mails" + }, + + "count_api_count_method": { + "message": "由 API 提供计数方法", + "description": "API count method" + }, + + "count_number_options": { + "message": "数字", + "description": "Caption for Number options" + }, + + "count_number_color": { + "message": "颜色:", + "description": "Color of the number" + }, + + "count_number_size": { + "message": "字号:", + "description": "Size of the number" + }, + + "count_number_alignment": { + "message": "位置:", + "description": "Number alignment" + }, + + "count_number_top_left": { + "message": "左上", + "description": "Number alignment top left" + }, + + "count_number_top_center": { + "message": "中上", + "description": "Number alignment top center" + }, + + "count_number_top_right": { + "message": "右上", + "description": "Number alignment top right" + }, + + "count_number_middle_left": { + "message": "左中", + "description": "Number alignment middle left" + }, + + "count_number_middle_center": { + "message": "正中", + "description": "Number alignment middle center" + }, + + "count_number_middle_right": { + "message": "右中", + "description": "Number alignment middle right" + }, + + "count_number_bottom_left": { + "message": "左下", + "description": "Number alignment bottom left" + }, + + "count_number_bottom_center": { + "message": "中下", + "description": "Number alignment bottom center" + }, + + "count_number_bottom_right": { + "message": "右下", + "description": "Number alignment bottom right" + }, + + "count_number_margins": { + "message": "边距(左,上,中,下)", + "description": "Number margins (left, top, right, bottom)" + }, + + "count_new_indicator": { + "message": "新消息提示", + "description": "New indicator type" + }, + + "count_new_indicator_round": { + "message": "圆点", + "description": "Round indicator" + }, + + "count_new_indicator_star": { + "message": "星形", + "description": "Star indicator" + }, + + "count_new_shade_color": { + "message": "背景色:", + "description": "Shade the icon" + }, + + "apps": { + "message": "应用", + "description": "Title for Apps options" + }, + + "apps_start_application": { + "message": "启动应用时", + "description": "The start application parameters" + }, + + "apps_start_app": { + "message": "应用:", + "description": "The start application" + }, + + "apps_start_app_args": { + "message": "参数:", + "description": "Arguments for a start application" + }, + + "apps_close_application": { + "message": "关闭应用时", + "description": "The close application parameters" + }, + + "apps_close_app": { + "message": "应用:", + "description": "The close application" + }, + + "apps_close_app_args": { + "message": "参数:", + "description": "Arguments for a close application" + }, + + "accounts": { + "message": "账户", + "description": "Title for Accounts options" + }, + + "shortcuts": { + "message": "快捷键", + "description": "Title for Shortcuts options" + }, + + "shortcuts_showhide_shortcut": { + "message": "显示 / 隐藏 Thunderbird:", + "description": "Label for the show / hide shortcut edit box" + }, + + "shortcuts_clear_button": { + "message": "清空", + "description": "Clear" + }, + + "debug": { + "message": "调试", + "description": "Title for Debug options" + }, + + "debug_display": { + "message": "显示调试窗口", + "description": "Display the debug window" + }, + + "save_preferences": { + "message": "保存首选项", + "description": "Save preferences" + }, + + "save_preferences_button": { + "message": "保存", + "description": "Save preferences button" + }, + + "reset_preferences": { + "message": "重置首选项", + "description": "Reset preferences" + }, + + "reset_preferences_button": { + "message": "重置", + "description": "Reset preferences button" + }, + + "about_title": { + "message": "关于 SysTray-X", + "description": "About box title" + }, + + "about_line_1": { + "message": "SysTray-X 配套应用,作者 Ximi1970", + "description": "Line 1" + }, + + "about_version": { + "message": "版本:", + "description": "Version" + }, + + "about_build": { + "message": "构建:", + "description": "Build" + }, + + "about_hash": { + "message": "Hash:", + "description": "Hash" + }, + + "about_branch": { + "message": "分支:", + "description": "Branch" + }, + + "debug_title": { + "message": "SysTray-X 调试", + "description": "Debug window title" + }, + + "debug_test_1": { + "message": "测试 1", + "description": "Button 1" + }, + + "debug_test_2": { + "message": "测试 2", + "description": "Button 2" + }, + + "debug_test_3": { + "message": "测试 3", + "description": "Button 3" + }, + + "debug_unread": { + "message": "未读邮件:", + "description": "Unread label" + }, + + "menu_showhide": { + "message": "显示 / 隐藏(&S)", + "description": "Show Hide menu entry" + }, + + "menu_preferences": { + "message": "首选项(&P)", + "description": "Preferences menu entry" + }, + + "menu_about": { + "message": "关于(&A)", + "description": "About menu entry" + }, + + "menu_quit": { + "message": "退出(&Q)", + "description": "Quit menu entry" + }, + + "menu_close": { + "message": "关闭", + "description": "Close button" + }, + + "mail_notification_icon": { + "message": "邮件提示图标", + "description": "Mail icon selection title" + }, + + "number_properties": { + "message": "数字属性", + "description": "Number properties title" + }, + + "image_open": { + "message": "打开图片", + "description": "File image dialog" + }, + + "image_files": { + "message": "图片文件(*.png *.jpg *.bmp)", + "description": "File image selection" + }, + + "image_save": { + "message": "保存", + "description": "File image save" + }, + + "image_cancel": { + "message": "取消", + "description": "File image cancel" + } +} From 24e2738a918c0ac33d2e8fc4db46084075638ecf Mon Sep 17 00:00:00 2001 From: Maxime Rijnders Date: Sat, 9 Mar 2024 11:44:10 +0100 Subject: [PATCH 06/80] Update issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index d54019b..75537c9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -20,7 +20,7 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. Linux, Windows] + - OS / distribution: [e.g. Linux - openSuSE Leap 15.5, Windows 11] - Architecture (32 or 64 bit) - Desktop type / Window Manager (KDE, Xfce, Cinnamon, MATE etc) - Thunderbird version and arch (Tb xx.xx.x, 32 or 64 bit) From 95cdd7e3db433c2cca92a1a6202b02b28294e428 Mon Sep 17 00:00:00 2001 From: Thomas Bertels <3265870+tbertels@users.noreply.github.com> Date: Thu, 21 Mar 2024 21:05:11 +0100 Subject: [PATCH 07/80] aboutdialog.ui: +URL link Link to https://github.com/Ximi1970/systray-x --- app/SysTray-X/SysTray-X-app/aboutdialog.ui | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/SysTray-X/SysTray-X-app/aboutdialog.ui b/app/SysTray-X/SysTray-X-app/aboutdialog.ui index 6bfa01c..1457e60 100644 --- a/app/SysTray-X/SysTray-X-app/aboutdialog.ui +++ b/app/SysTray-X/SysTray-X-app/aboutdialog.ui @@ -23,7 +23,10 @@ - SysTray-X Companion App by Ximi1970 + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + true From 4c0bc46dd0f4c6dc0bf70ec776c7e6da1eb6fa50 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 22:37:06 +0200 Subject: [PATCH 08/80] Disable incompatable shortcuts for Qt6 --- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 65 +++++++++++++++---- .../SysTray-X-app/nativeeventfilter-x11.cpp | 12 +++- .../SysTray-X-app/preferencesdialog.cpp | 8 +++ app/SysTray-X/SysTray-X-app/systrayx.cpp | 10 +-- 4 files changed, 76 insertions(+), 19 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index a600b96..f62ee35 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -22,9 +22,19 @@ include( ../SysTray-X.pri ) QT += core gui unix:!macx: { contains(DEFINES,KDE_INTEGRATION) { - QT += dbus KNotifications + lessThan(QT_MAJOR_VERSION, 6): { + QT += dbus KNotifications + } + else + { + INCLUDEPATH += /usr/include/KF6/KStatusNotifierItem + LIBS += -lKF6StatusNotifierItem + } + } + + lessThan(QT_MAJOR_VERSION, 6): { + QT += x11extras } - QT += x11extras } greaterThan(QT_MAJOR_VERSION, 4): QT += widgets @@ -152,8 +162,6 @@ win32: { SOURCES += \ main.cpp \ - nativeeventfilterbase.cpp \ - shortcut.cpp \ systrayxlink.cpp \ systrayxicon.cpp \ systrayx.cpp \ @@ -161,25 +169,39 @@ SOURCES += \ preferencesdialog.cpp \ preferences.cpp \ windowctrl.cpp + +lessThan(QT_MAJOR_VERSION, 6): { + SOURCES += \ + shortcut.cpp \ + nativeeventfilterbase.cpp +} + unix: { -SOURCES += \ - nativeeventfilter-x11.cpp \ - windowctrl-unix.cpp + SOURCES += \ + windowctrl-unix.cpp + contains(DEFINES,KDE_INTEGRATION) { SOURCES += \ systrayxstatusnotifier.cpp } + + lessThan(QT_MAJOR_VERSION, 6): { + SOURCES += \ + nativeeventfilter-x11.cpp + } } win32: { SOURCES += \ - nativeeventfilter-win.cpp \ windowctrl-win.cpp + + lessThan(QT_MAJOR_VERSION, 6): { + SOURCES += \ + nativeeventfilter-win.cpp + } } HEADERS += \ debug.h \ - nativeeventfilterbase.h \ - shortcut.h \ systrayxlink.h \ systrayxicon.h \ systrayx.h \ @@ -187,20 +209,35 @@ HEADERS += \ preferencesdialog.h \ preferences.h \ windowctrl.h + +lessThan(QT_MAJOR_VERSION, 6): { + HEADERS += \ + shortcut.h \ + nativeeventfilterbase.h +} + unix: { -HEADERS += \ - nativeeventfilter-x11.h \ + HEADERS += \ windowctrl-unix.h contains(DEFINES,KDE_INTEGRATION) { HEADERS += \ systrayxstatusnotifier.h } + + lessThan(QT_MAJOR_VERSION, 6): { + HEADERS += \ + nativeeventfilter-x11.h + } } win32: { -HEADERS += \ - nativeeventfilter-win.h \ + HEADERS += \ windowctrl-win.h + + lessThan(QT_MAJOR_VERSION, 6): { + HEADERS += \ + nativeeventfilter-win.h + } } FORMS += \ diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index 4e9c781..ce1554a 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -9,7 +9,9 @@ /* * Qt includes */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include +#endif #include @@ -127,7 +129,11 @@ bool NativeEventFilterX11::connectShortcut( Qt::Key key_code, Qt::KeyboardModifi /* * Get the X11 display */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Display *display = QX11Info::display(); +#else + Display *display = 0; +#endif /* * Get the final key code @@ -153,7 +159,11 @@ bool NativeEventFilterX11::connectShortcut( Qt::Key key_code, Qt::KeyboardModifi */ bool NativeEventFilterX11::disconnectShortcut() { - Display* display = QX11Info::display(); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + Display *display = QX11Info::display(); +#else + Display *display = 0; +#endif /* * Ungrab the key diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp index 80b7602..a2cc15f 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp @@ -1087,6 +1087,7 @@ void PreferencesDialog::slotTruncateShowHideShortcut() { QKeySequence key_seq = m_ui->showHideKeySequenceEdit->keySequence(); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) /* * Workaround for a Qt5 bug in QKeySequenceEdit object, Meta/Win key is not handled correctly. */ @@ -1101,6 +1102,13 @@ void PreferencesDialog::slotTruncateShowHideShortcut() } QKeySequence shortcut( value ); + +#else + + QKeySequence shortcut( key_seq[ 0 ] ); + +#endif + m_ui->showHideKeySequenceEdit->setKeySequence( shortcut ); } diff --git a/app/SysTray-X/SysTray-X-app/systrayx.cpp b/app/SysTray-X/SysTray-X-app/systrayx.cpp index a99caa8..2612988 100644 --- a/app/SysTray-X/SysTray-X-app/systrayx.cpp +++ b/app/SysTray-X/SysTray-X-app/systrayx.cpp @@ -9,7 +9,7 @@ #include "systrayxicon.h" #include "systrayxstatusnotifier.h" #include "windowctrl.h" -#include "shortcut.h" +//#include "shortcut.h" /* * Qt includes @@ -189,7 +189,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) m_preferences->displayDebug(); -/* + m_preferences->setBrowserVersion( "115.1.0" ); // m_preferences->setBrowserVersion( "102.2.3" ); m_preferences->setShowHideShortcut( QKeySequence( Qt::CTRL | Qt::Key_P ) ); @@ -206,7 +206,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) // m_preferences->setStartApp( "/home/maxime/test.sh" ); // m_preferences->setStartAppArgs( "/home/maxime/startup.txt StartupString" ); // slotStartApp(); -*/ + } @@ -726,7 +726,7 @@ void SysTrayX::slotLoadLanguage( QString locale ) } QString locale_path = "SysTray-X."+ locale; - m_translator.load( locale_path, ":/languages/" ); + (void)m_translator.load( locale_path, ":/languages/" ); // bool status = m_translator.load( locale_path, ":/languages/" ); // emit signalConsole( QString( "Language loaded %1").arg(status)); qApp->installTranslator( &m_translator ); @@ -775,6 +775,7 @@ void SysTrayX::slotCloseApp() void SysTrayX::slotShowHideShortcutChange() { +#ifdef ENABLE_SHORTCUT if( m_show_hide_shortcut != nullptr ) { disconnect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); @@ -785,4 +786,5 @@ void SysTrayX::slotShowHideShortcutChange() m_show_hide_shortcut = new Shortcut( m_preferences->getShowHideShortcut(), this ); connect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); +#endif } From 363ffb5f85b3af21f65ade0ba7e20eb1bc665ca3 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 22:43:15 +0200 Subject: [PATCH 09/80] Use qmake6 if available --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9631a87..df98b78 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,16 @@ else ifeq (GNU/Linux,$(shell uname -o)) SYSTEM = Linux - QMAKE = qmake-qt5 - ifeq (, $(shell which qmake-qt5 2>/dev/null)) - ifeq (, $(shell which qmake 2>/dev/null)) - $(error "No qmake in $(PATH)") + QMAKE = qmake6 + ifeq (, $(shell which qmake6 2>/dev/null)) + QMAKE = qmake-qt5 + ifeq (, $(shell which qmake-qt5 2>/dev/null)) + ifeq (, $(shell which qmake 2>/dev/null)) + $(error "No qmake in $(PATH)") + endif + QMAKE = qmake + endif endif - QMAKE = qmake - endif else $(error "Unknown system") endif From 33036027821409b07acc1e186854254728d40f57 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 23:50:52 +0200 Subject: [PATCH 10/80] Fix shortcuts --- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 48 +++++-------------- .../SysTray-X-app/nativeeventfilter-x11.cpp | 15 ++++-- .../SysTray-X-app/nativeeventfilter-x11.h | 6 ++- .../SysTray-X-app/nativeeventfilterbase.cpp | 1 - .../SysTray-X-app/nativeeventfilterbase.h | 1 + app/SysTray-X/SysTray-X-app/shortcut.cpp | 4 +- app/SysTray-X/SysTray-X-app/systrayx.cpp | 8 ++-- 7 files changed, 35 insertions(+), 48 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index f62ee35..a6988ef 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -19,7 +19,7 @@ include( ../SysTray-X.pri ) # # Set the Qt modules # -QT += core gui +QT += core gui widgets unix:!macx: { contains(DEFINES,KDE_INTEGRATION) { lessThan(QT_MAJOR_VERSION, 6): { @@ -37,8 +37,6 @@ unix:!macx: { } } -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets - # # Define the target # @@ -161,74 +159,54 @@ win32: { SOURCES += \ + debugwidget.cpp \ main.cpp \ + nativeeventfilterbase.cpp \ systrayxlink.cpp \ systrayxicon.cpp \ systrayx.cpp \ - debugwidget.cpp \ preferencesdialog.cpp \ preferences.cpp \ - windowctrl.cpp - -lessThan(QT_MAJOR_VERSION, 6): { - SOURCES += \ shortcut.cpp \ - nativeeventfilterbase.cpp -} + windowctrl.cpp unix: { SOURCES += \ - windowctrl-unix.cpp + nativeeventfilter-x11.cpp \ + windowctrl-unix.cpp contains(DEFINES,KDE_INTEGRATION) { SOURCES += \ systrayxstatusnotifier.cpp } - - lessThan(QT_MAJOR_VERSION, 6): { - SOURCES += \ - nativeeventfilter-x11.cpp - } } win32: { SOURCES += \ + nativeeventfilter-win.cpp windowctrl-win.cpp - - lessThan(QT_MAJOR_VERSION, 6): { - SOURCES += \ - nativeeventfilter-win.cpp - } } HEADERS += \ debug.h \ + debugwidget.h \ + nativeeventfilterbase.h \ + preferencesdialog.h \ + preferences.h \ systrayxlink.h \ systrayxicon.h \ systrayx.h \ - debugwidget.h \ - preferencesdialog.h \ - preferences.h \ - windowctrl.h - -lessThan(QT_MAJOR_VERSION, 6): { - HEADERS += \ shortcut.h \ - nativeeventfilterbase.h -} + windowctrl.h unix: { HEADERS += \ + nativeeventfilter-x11.h \ windowctrl-unix.h contains(DEFINES,KDE_INTEGRATION) { HEADERS += \ systrayxstatusnotifier.h } - - lessThan(QT_MAJOR_VERSION, 6): { - HEADERS += \ - nativeeventfilter-x11.h - } } win32: { HEADERS += \ diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index ce1554a..16c2526 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -24,7 +24,12 @@ const int NativeEventFilterX11::m_valid_mods_mask = ShiftMask | ControlMask | Mo /* * Catch the key press */ + +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* message, long* result ) +#else +bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) +#endif { Q_UNUSED( eventType ) Q_UNUSED( result ) @@ -50,8 +55,8 @@ bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* */ bool NativeEventFilterX11::connectShortcut( QKeySequence key_seq ) { - Qt::Key key_code = Qt::Key( key_seq[ 0 ] & static_cast< int >( ~Qt::KeyboardModifierMask ) ); - Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & static_cast( Qt::KeyboardModifierMask ) ); + Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & static_cast< int >( ~Qt::KeyboardModifierMask ) ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & static_cast( Qt::KeyboardModifierMask ) ); return connectShortcut( key_code, key_modifiers ); } @@ -132,7 +137,8 @@ bool NativeEventFilterX11::connectShortcut( Qt::Key key_code, Qt::KeyboardModifi #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Display *display = QX11Info::display(); #else - Display *display = 0; + QNativeInterface::QX11Application *x11App = qApp->nativeInterface(); + Display *display = x11App->display(); #endif /* @@ -162,7 +168,8 @@ bool NativeEventFilterX11::disconnectShortcut() #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Display *display = QX11Info::display(); #else - Display *display = 0; + QNativeInterface::QX11Application *x11App = qApp->nativeInterface(); + Display *display = x11App->display(); #endif /* diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h index 0cf9203..cd67c99 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h @@ -33,7 +33,11 @@ class NativeEventFilterX11 : public NativeEventFilterBase * * @return Result */ - bool nativeEventFilter( const QByteArray& eventType, void* message, long* result ) override; +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + bool nativeEventFilter( const QByteArray& eventType, void* message, long* result ) override; +#else + bool nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) override; +#endif protected: diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp index 887fc62..31118d5 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp @@ -12,7 +12,6 @@ /* * Qt includes */ -#include #include diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h index 5f5ab2d..1829736 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h @@ -15,6 +15,7 @@ #include #include #include +#include /* * Predefines diff --git a/app/SysTray-X/SysTray-X-app/shortcut.cpp b/app/SysTray-X/SysTray-X-app/shortcut.cpp index 87f021b..d1e8249 100644 --- a/app/SysTray-X/SysTray-X-app/shortcut.cpp +++ b/app/SysTray-X/SysTray-X-app/shortcut.cpp @@ -49,8 +49,8 @@ Shortcut::~Shortcut() */ bool Shortcut::setShortcut( QKeySequence key_seq ) { - Qt::Key key_code = Qt::Key( key_seq[ 0 ] & ~Qt::KeyboardModifierMask ); - Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & Qt::KeyboardModifierMask); + Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & ~Qt::KeyboardModifierMask ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & Qt::KeyboardModifierMask); return setShortcut( key_code, key_modifiers ); } diff --git a/app/SysTray-X/SysTray-X-app/systrayx.cpp b/app/SysTray-X/SysTray-X-app/systrayx.cpp index 2612988..17e57d3 100644 --- a/app/SysTray-X/SysTray-X-app/systrayx.cpp +++ b/app/SysTray-X/SysTray-X-app/systrayx.cpp @@ -9,7 +9,7 @@ #include "systrayxicon.h" #include "systrayxstatusnotifier.h" #include "windowctrl.h" -//#include "shortcut.h" +#include "shortcut.h" /* * Qt includes @@ -189,7 +189,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) m_preferences->displayDebug(); - +/* m_preferences->setBrowserVersion( "115.1.0" ); // m_preferences->setBrowserVersion( "102.2.3" ); m_preferences->setShowHideShortcut( QKeySequence( Qt::CTRL | Qt::Key_P ) ); @@ -206,7 +206,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) // m_preferences->setStartApp( "/home/maxime/test.sh" ); // m_preferences->setStartAppArgs( "/home/maxime/startup.txt StartupString" ); // slotStartApp(); - +*/ } @@ -775,7 +775,6 @@ void SysTrayX::slotCloseApp() void SysTrayX::slotShowHideShortcutChange() { -#ifdef ENABLE_SHORTCUT if( m_show_hide_shortcut != nullptr ) { disconnect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); @@ -786,5 +785,4 @@ void SysTrayX::slotShowHideShortcutChange() m_show_hide_shortcut = new Shortcut( m_preferences->getShowHideShortcut(), this ); connect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); -#endif } From c67d864a5c3d573a2e39973862d10d8fdfb6c0ae Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 1 Apr 2024 00:15:47 +0200 Subject: [PATCH 11/80] Fix Qt5 build --- Makefile | 8 ++++---- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 3 +-- app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp | 6 +++++- app/SysTray-X/SysTray-X-app/shortcut.cpp | 6 +++++- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index df98b78..e30c677 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ else ifeq (GNU/Linux,$(shell uname -o)) SYSTEM = Linux - QMAKE = qmake6 - ifeq (, $(shell which qmake6 2>/dev/null)) - QMAKE = qmake-qt5 - ifeq (, $(shell which qmake-qt5 2>/dev/null)) + QMAKE = qmake-qt5 + ifeq (, $(shell which qmake-qt5 2>/dev/null)) + QMAKE = qmake6 + ifeq (, $(shell which qmake6 2>/dev/null)) ifeq (, $(shell which qmake 2>/dev/null)) $(error "No qmake in $(PATH)") endif diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index a6988ef..42d2535 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -25,8 +25,7 @@ unix:!macx: { lessThan(QT_MAJOR_VERSION, 6): { QT += dbus KNotifications } - else - { + greaterThan(QT_MAJOR_VERSION, 5): { INCLUDEPATH += /usr/include/KF6/KStatusNotifierItem LIBS += -lKF6StatusNotifierItem } diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index 16c2526..95383be 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -55,9 +55,13 @@ bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* */ bool NativeEventFilterX11::connectShortcut( QKeySequence key_seq ) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + Qt::Key key_code = Qt::Key( key_seq[ 0 ] & static_cast< int >( ~Qt::KeyboardModifierMask ) ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & static_cast( Qt::KeyboardModifierMask ) ); +#else Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & static_cast< int >( ~Qt::KeyboardModifierMask ) ); Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & static_cast( Qt::KeyboardModifierMask ) ); - +#endif return connectShortcut( key_code, key_modifiers ); } diff --git a/app/SysTray-X/SysTray-X-app/shortcut.cpp b/app/SysTray-X/SysTray-X-app/shortcut.cpp index d1e8249..8d90da5 100644 --- a/app/SysTray-X/SysTray-X-app/shortcut.cpp +++ b/app/SysTray-X/SysTray-X-app/shortcut.cpp @@ -49,9 +49,13 @@ Shortcut::~Shortcut() */ bool Shortcut::setShortcut( QKeySequence key_seq ) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + Qt::Key key_code = Qt::Key( key_seq[ 0 ] & ~Qt::KeyboardModifierMask ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & Qt::KeyboardModifierMask); +#else Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & ~Qt::KeyboardModifierMask ); Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & Qt::KeyboardModifierMask); - +#endif return setShortcut( key_code, key_modifiers ); } From 0f13dbfca231137174264eed7946c5a31d57ecd3 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 1 Apr 2024 23:09:21 +0200 Subject: [PATCH 12/80] Update windows build --- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 2 +- app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp | 10 +++++++++- app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h | 4 ++++ app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp | 1 - app/SysTray-X/SysTray-X-app/windowctrl.h | 5 +++-- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index 42d2535..bd5b944 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -181,7 +181,7 @@ unix: { } win32: { SOURCES += \ - nativeeventfilter-win.cpp + nativeeventfilter-win.cpp \ windowctrl-win.cpp } diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp index 320f1b1..babb8be 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp @@ -90,7 +90,11 @@ const QMap< Qt::Key, int > NativeEventFilterWin::m_virtual_key_map { /* * Catch the key press */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool NativeEventFilterWin::nativeEventFilter( const QByteArray& eventType, void* message, long* result ) +#else +bool NativeEventFilterWin::nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) +#endif { Q_UNUSED( eventType ) Q_UNUSED( result ) @@ -114,9 +118,13 @@ bool NativeEventFilterWin::nativeEventFilter( const QByteArray& eventType, void* */ bool NativeEventFilterWin::connectShortcut( QKeySequence key_seq ) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Qt::Key key_code = Qt::Key( key_seq[ 0 ] & static_cast< int >( ~Qt::KeyboardModifierMask ) ); Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & static_cast( Qt::KeyboardModifierMask ) ); - +#else + Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & static_cast< int >( ~Qt::KeyboardModifierMask ) ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & static_cast( Qt::KeyboardModifierMask ) ); +#endif return connectShortcut( key_code, key_modifiers ); } diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h index ff16f44..71c51ee 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h @@ -38,7 +38,11 @@ class NativeEventFilterWin : public NativeEventFilterBase * * @return Result */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool nativeEventFilter( const QByteArray& eventType, void* message, long* result ) override; +#else + bool nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) override; +#endif protected: diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index 95383be..4efeae9 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -24,7 +24,6 @@ const int NativeEventFilterX11::m_valid_mods_mask = ShiftMask | ControlMask | Mo /* * Catch the key press */ - #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* message, long* result ) #else diff --git a/app/SysTray-X/SysTray-X-app/windowctrl.h b/app/SysTray-X/SysTray-X-app/windowctrl.h index 6aeda44..f5549ab 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl.h +++ b/app/SysTray-X/SysTray-X-app/windowctrl.h @@ -5,7 +5,8 @@ * Qt includes */ #include - +#include +#include /* * Local includes @@ -23,7 +24,7 @@ * Predefines */ class QWindow; -class Preferences; +//class Preferences; /** * @brief The WindowCtrl class. From 467a2a08aee7df3a125aef7fc6479d633e901840 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 15:48:11 +0200 Subject: [PATCH 13/80] Update rpm and arch packages for Qt6 --- dist/arch/gnome/PKGBUILD | 6 ++---- dist/arch/kde/PKGBUILD | 10 ++++------ dist/arch/minimal/PKGBUILD | 6 ++---- dist/rpm/gnome/systray-x-gnome.spec | 12 ++++++++++-- dist/rpm/kde/systray-x.spec | 16 +++++++++++++--- dist/rpm/minimal/systray-x-minimal.spec | 12 ++++++++++-- 6 files changed, 41 insertions(+), 21 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index fe5b5aa..f52c6a7 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -9,8 +9,7 @@ arch=(x86_64) url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( - 'qt5-base' - 'qt5-x11extras' + 'qt6-base' 'gnome-shell-extension-appindicator' 'thunderbird>=91' 'thunderbird<121' @@ -20,8 +19,7 @@ makedepends=( 'unzip' 'zip' 'libx11' - 'qt5-base' - 'qt5-x11extras' + 'qt6-base' ) provides=( 'systray-x' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 3e602c4..1cd839e 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -9,9 +9,8 @@ arch=(x86_64) url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( - 'qt5-base' - 'qt5-x11extras' - 'knotifications5' + 'qt-base' + 'kf6-knotifications' 'thunderbird>=91' 'thunderbird<121' ) @@ -20,9 +19,8 @@ makedepends=( 'unzip' 'zip' 'libx11' - 'qt5-base' - 'qt5-x11extras' - 'knotifications5' + 'qt6-base' + 'kf6-knotifications' ) provides=( 'systray-x' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 94e7ee3..db090fb 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -9,8 +9,7 @@ arch=(x86_64) url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( - 'qt5-base' - 'qt5-x11extras' + 'qt6-base' 'thunderbird>=91' 'thunderbird<121' ) @@ -19,8 +18,7 @@ makedepends=( 'unzip' 'zip' 'libx11' - 'qt5-base' - 'qt5-x11extras' + 'qt6-base' ) provides=( 'systray-x' diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index 179b936..a6bf07b 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -26,18 +26,26 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip +%if 0%{?suse_version} > 1600 +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Widgets) +%else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) +%if 0%{?fedora_version} || 0%{?centos_version} +BuildRequires: qt5-qtx11extras-devel +%else +BuildRequires: libqt5-qtx11extras-devel +%endif +%endif BuildRequires: pkgconfig(x11) Requires: gnome-shell-extension-appindicator %if 0%{?fedora_version} || 0%{?centos_version} -BuildRequires: qt5-qtx11extras-devel Requires: thunderbird >= 91 Requires: thunderbird < 121 %else -BuildRequires: libqt5-qtx11extras-devel Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index c903683..da3f9f3 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -26,21 +26,31 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip +%if 0%{?suse_version} > 1600 +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Widgets) +BuildRequires: kf6-knotifications-devel +Requires: libKF6Notifications6 +%else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: qt5-qtx11extras-devel BuildRequires: kf5-knotifications-devel Requires: kf5-knotifications -Requires: thunderbird >= 91 -Requires: thunderbird < 121 %else BuildRequires: libqt5-qtx11extras-devel BuildRequires: knotifications-devel Requires: libKF5Notifications5 +%endif +%endif +BuildRequires: pkgconfig(x11) +%if 0%{?fedora_version} || 0%{?centos_version} +Requires: thunderbird >= 91 +Requires: thunderbird < 121 +%else Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index bbc1fac..4a3bfdf 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -26,17 +26,25 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip +%if 0%{?suse_version} > 1600 +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Widgets) +%else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: qt5-qtx11extras-devel +%else +BuildRequires: libqt5-qtx11extras-devel +%endif +%endif +BuildRequires: pkgconfig(x11) +%if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 Requires: thunderbird < 121 %else -BuildRequires: libqt5-qtx11extras-devel Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif From bd1cd4cf285cbb6d9ef8f9b59362fb8dfe626cd4 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 16:00:39 +0200 Subject: [PATCH 14/80] Update arch pacakge --- dist/arch/kde/PKGBUILD | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 1cd839e..7b09d8d 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -9,8 +9,8 @@ arch=(x86_64) url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( - 'qt-base' - 'kf6-knotifications' + 'qt6-base' + 'knotifications' 'thunderbird>=91' 'thunderbird<121' ) @@ -20,7 +20,7 @@ makedepends=( 'zip' 'libx11' 'qt6-base' - 'kf6-knotifications' + 'knotifications' ) provides=( 'systray-x' From e3fc83085b102659c23704576e41c61b6bdf5777 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 16:25:33 +0200 Subject: [PATCH 15/80] Update packages --- dist/arch/kde/PKGBUILD | 4 ++-- dist/rpm/kde/systray-x.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 7b09d8d..132a477 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -10,7 +10,7 @@ url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( 'qt6-base' - 'knotifications' + 'kstatusnotifieritem' 'thunderbird>=91' 'thunderbird<121' ) @@ -20,7 +20,7 @@ makedepends=( 'zip' 'libx11' 'qt6-base' - 'knotifications' + 'kstatusnotifieritem' ) provides=( 'systray-x' diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index da3f9f3..a1fdde1 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -29,7 +29,7 @@ BuildRequires: zip %if 0%{?suse_version} > 1600 BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) -BuildRequires: kf6-knotifications-devel +BuildRequires: kf6-kstatusnotifieritem-devel Requires: libKF6Notifications6 %else BuildRequires: pkgconfig(Qt5Core) From e525963e9926bf0a48980c58a827cb0c3801dc12 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 22:46:54 +0200 Subject: [PATCH 16/80] Update packages --- dist/deb-qt6/gnome/debian.changelog | 100 ++++++++++++++++++ dist/deb-qt6/gnome/debian.compat | 1 + dist/deb-qt6/gnome/debian.control | 22 ++++ dist/deb-qt6/gnome/debian.postinst | 86 +++++++++++++++ dist/deb-qt6/gnome/debian.rules | 117 +++++++++++++++++++++ dist/deb-qt6/gnome/systray-x-gnome.dsc | 7 ++ dist/deb-qt6/kde/debian.changelog | 100 ++++++++++++++++++ dist/deb-qt6/kde/debian.compat | 1 + dist/deb-qt6/kde/debian.control | 22 ++++ dist/deb-qt6/kde/debian.rules | 117 +++++++++++++++++++++ dist/deb-qt6/kde/systray-x.dsc | 7 ++ dist/deb-qt6/minimal/debian.changelog | 100 ++++++++++++++++++ dist/deb-qt6/minimal/debian.compat | 1 + dist/deb-qt6/minimal/debian.control | 22 ++++ dist/deb-qt6/minimal/debian.rules | 117 +++++++++++++++++++++ dist/deb-qt6/minimal/systray-x-minimal.dsc | 7 ++ dist/deb/gnome/debian.changelog | 6 ++ dist/deb/gnome/systray-x-gnome.dsc | 2 +- dist/deb/kde/debian.changelog | 6 ++ dist/deb/kde/systray-x.dsc | 2 +- dist/deb/minimal/debian.changelog | 6 ++ dist/deb/minimal/systray-x-minimal.dsc | 2 +- dist/rpm/gnome/systray-x-gnome.changes | 7 ++ dist/rpm/kde/systray-x.changes | 7 ++ dist/rpm/minimal/systray-x-minimal.changes | 7 ++ 25 files changed, 869 insertions(+), 3 deletions(-) create mode 100644 dist/deb-qt6/gnome/debian.changelog create mode 100644 dist/deb-qt6/gnome/debian.compat create mode 100644 dist/deb-qt6/gnome/debian.control create mode 100644 dist/deb-qt6/gnome/debian.postinst create mode 100644 dist/deb-qt6/gnome/debian.rules create mode 100644 dist/deb-qt6/gnome/systray-x-gnome.dsc create mode 100644 dist/deb-qt6/kde/debian.changelog create mode 100644 dist/deb-qt6/kde/debian.compat create mode 100644 dist/deb-qt6/kde/debian.control create mode 100644 dist/deb-qt6/kde/debian.rules create mode 100644 dist/deb-qt6/kde/systray-x.dsc create mode 100644 dist/deb-qt6/minimal/debian.changelog create mode 100644 dist/deb-qt6/minimal/debian.compat create mode 100644 dist/deb-qt6/minimal/debian.control create mode 100644 dist/deb-qt6/minimal/debian.rules create mode 100644 dist/deb-qt6/minimal/systray-x-minimal.dsc diff --git a/dist/deb-qt6/gnome/debian.changelog b/dist/deb-qt6/gnome/debian.changelog new file mode 100644 index 0000000..2afa477 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.changelog @@ -0,0 +1,100 @@ +systray-x-gnome (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + +systray-x-gnome (0.9.8-1) unstable; urgency=low + + * Update to 0.9.8 + + - Fixed / refactored multi window handling + - Added an option to add a shortcut key for show / hide + - Bugfixes + +systray-x-gnome (0.9.7-0) unstable; urgency=low + + * Update to 0.9.7 + + - Added option for new TB115 mail counting (slow with new mails enabled) + - Bugfixes + +systray-x-gnome (0.9.6-0) unstable; urgency=low + + * Update to 0.9.6 + + - Added option to show a new mail indicator or icon shading + - Added option to launch an app on start and close + - Refactored windows state handling + - Refactored mail counting + - Bugfixes + +systray-x-gnome (0.9.5-0) unstable; urgency=low + + * Update to 0.9.5 + + - Bugfixes + +systray-x-gnome (0.9.4-0) unstable; urgency=low + + * Update to 0.9.4 + + - Separate minimize, close and icon action + - Use new icon for new TB version + +systray-x-gnome (0.9.3-0) unstable; urgency=low + + * Update to 0.9.3 + + - New TB version + +systray-x-gnome (0.9.2-0) unstable; urgency=low + + * Update to 0.9.2 + + - Bug fixes + +systray-x-gnome (0.9.1-0) unstable; urgency=low + + * Update to 0.9.1 + + - Bug fixes + +systray-x-gnome (0.9.0-0) unstable; urgency=low + + * Update to 0.9.0 + + - Update for TB 102 + - Bug fixes + +systray-x-gnome (0.8.0-0) unstable; urgency=low + + * Update to 0.8.0 + + - Refactor for TB 91 + +systray-x-gnome (0.5.0-0) unstable; urgency=low + + * Update to 0.5.0 + + - Added translations logic + - Languages: + - de + - en_US + - nl + - pt_BR (by PutinVladimir) + - ru_RU (by fabianski7) + + -- Maxime Rijnders Maxime Rijnders Sat, 07 Nov 2020 23:37:00 +0100 + +systray-x-gnome (0.4.0-0) unstable; urgency=low + + * Update to 0.4.0 + + -- Maxime Rijnders Maxime Rijnders Sat, 10 Oct 2020 14:10:00 +0100 + +systray-x-gnome (0.0.1-0) unstable; urgency=low + + * Initial Release + + -- Maxime Rijnders Maxime Rijnders Tue, 11 Feb 2020 19:05:19 +0100 diff --git a/dist/deb-qt6/gnome/debian.compat b/dist/deb-qt6/gnome/debian.compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.compat @@ -0,0 +1 @@ +10 diff --git a/dist/deb-qt6/gnome/debian.control b/dist/deb-qt6/gnome/debian.control new file mode 100644 index 0000000..d5723dc --- /dev/null +++ b/dist/deb-qt6/gnome/debian.control @@ -0,0 +1,22 @@ +Source: systray-x-gnome +Section: misc +Priority: optional +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird + +Package: systray-x-gnome +Architecture: any +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:121) +Description: SysTray-X is a system tray extension for Thunderbird (GNOME). + This version is optimized for the GNOME desktop. + The add-on uses the WebExtension API's to control an external system + dependent system tray application. + The add-on and system tray application can do: + * custom new mail icon + * display number of unread /new mails + * optional new mail indicator (icon or shading) + * run app on start or close + * show / hide Thunderbird (minimize) + * minimizing hides to tray + * minimize on startup + * minimize on close diff --git a/dist/deb-qt6/gnome/debian.postinst b/dist/deb-qt6/gnome/debian.postinst new file mode 100644 index 0000000..6718d73 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.postinst @@ -0,0 +1,86 @@ +#!/bin/sh + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Fetching configuration from debconf +#db_get packagename/question1 +#ANSWER1=$RET + +PROF_DIR=/etc/dconf/profile +PROF_FILE=user + +if [ -f $PROF_DIR/$PROF_FILE ] ; then + # + # Edit user file + # + grep -q "user-db:user" $PROF_DIR/$PROF_FILE + if [ "$?" = "1" ] ; then + echo "user-db:user" >> $PROF_DIR/$PROF_FILE + fi + + grep -q "system-db:local" $PROF_DIR/$PROF_FILE + if [ "$?" = "1" ] ; then + echo "system-db:local" >> $PROF_DIR/$PROF_FILE + fi +else + # + # Generate user file + # + mkdir -p $PROF_DIR + cat >$PROF_DIR/$PROF_FILE < $CONF_DIR/$CONF_FILE + echo "# List all extensions that you want to have enabled for all users" >> $CONF_DIR/$CONF_FILE + echo "enabled-extensions=['${EXTENSION}']" >> $CONF_DIR/$CONF_FILE +fi + +which dconf > /dev/null 2>&1 +if [ "$?" = "0" ] ; then + dconf update +fi diff --git a/dist/deb-qt6/gnome/debian.rules b/dist/deb-qt6/gnome/debian.rules new file mode 100644 index 0000000..da0efd6 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +DEB_VENDOR := $(shell dpkg-vendor --query vendor) + +VERSION := $(shell cat dist/rpm/VERSION | grep VERSION | sed -e "s/VERSION=\(.*\)/\1/") + +VERSION_MAJOR := $(shell echo $(VERSION) | cut -d'.' -f1) +VERSION_MINOR := $(shell echo $(VERSION) | cut -d'.' -f2) +VERSION_PATCH := $(shell echo $(VERSION) | cut -d'.' -f3) + +BUILD_NUMBER := $(shell cat dist/rpm/VERSION | grep BUILD_NUMBER | sed -e "s/BUILD_NUMBER=\(.*\)/\1/") +GIT_HASH := $(shell cat dist/rpm/VERSION | grep GIT_HASH | sed -e "s/GIT_HASH=\(.*\)/\1/") +GIT_BRANCH := $(shell cat dist/rpm/VERSION | grep GIT_BRANCH | sed -e "s/GIT_BRANCH=\(.*\)/\1/") + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|/usr/bin/SysTray-X|' > SysTray_X.json + + QT_SELECT=5 make OPTIONS="DEFINES+=NO_KDE_INTEGRATION DEFINES+=NO_SHORTCUTS" EXT_VERSION="DEFINES+=EXT_VERSION DEFINES+=APP_VERSION_MAJOR=\\\\\\\\\\\\\\\"$(VERSION_MAJOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_MINOR=\\\\\\\\\\\\\\\"$(VERSION_MINOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_PATCH=\\\\\\\\\\\\\\\"$(VERSION_PATCH)\\\\\\\\\\\\\\\" DEFINES+=APP_BUILD=\\\\\\\\\\\\\\\"$(BUILD_NUMBER)\\\\\\\\\\\\\\\" DEFINES+=APP_GITHASH=\\\\\\\\\\\\\\\"$(GIT_HASH)\\\\\\\\\\\\\\\" DEFINES+=APP_GITBRANCH=\\\\\\\\\\\\\\\"$(GIT_BRANCH)\\\\\\\\\\\\\\\"" + + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + make clean || true + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package + # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/ + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/bin + cp -f SysTray-X /usr/src/packages/BUILD/debian/systray-x-gnome/usr/bin/SysTray-X + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/mozilla/native-messaging-hosts + cp -f SysTray_X.json /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json + +ifeq (Debian,$(DEB_VENDOR)) + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird/extensions + cd /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird/extensions ;\ + ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi +else + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi +endif + + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary installing diff --git a/dist/deb-qt6/gnome/systray-x-gnome.dsc b/dist/deb-qt6/gnome/systray-x-gnome.dsc new file mode 100644 index 0000000..fac2071 --- /dev/null +++ b/dist/deb-qt6/gnome/systray-x-gnome.dsc @@ -0,0 +1,7 @@ +Format: 1.0 +Source: systray-x-gnome +Version: 0.9.9-1 +Binary: systray-x-gnome +Maintainer: Maxime Rijnders +Architecture: any +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird diff --git a/dist/deb-qt6/kde/debian.changelog b/dist/deb-qt6/kde/debian.changelog new file mode 100644 index 0000000..6e4de3c --- /dev/null +++ b/dist/deb-qt6/kde/debian.changelog @@ -0,0 +1,100 @@ +systray-x (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + +systray-x (0.9.8-1) unstable; urgency=low + + * Update to 0.9.8 + + - Fixed / refactored multi window handling + - Added an option to add a shortcut key for show / hide + - Bugfixes + +systray-x (0.9.7-0) unstable; urgency=low + + * Update to 0.9.7 + + - Added option for new TB115 mail counting (slow with new mails enabled) + - Bugfixes + +systray-x (0.9.6-0) unstable; urgency=low + + * Update to 0.9.6 + + - Added option to show a new mail indicator or icon shading + - Added option to launch an app on start and close + - Refactored windows state handling + - Refactored mail counting + - Bugfixes + +systray-x (0.9.5-0) unstable; urgency=low + + * Update to 0.9.5 + + - Bugfixes + +systray-x (0.9.4-0) unstable; urgency=low + + * Update to 0.9.4 + + - Separate minimize, close and icon action + - Use new icon for new TB version + +systray-x (0.9.3-0) unstable; urgency=low + + * Update to 0.9.3 + + - New TB version + +systray-x (0.9.2-0) unstable; urgency=low + + * Update to 0.9.2 + + - Bug fixes + +systray-x (0.9.1-0) unstable; urgency=low + + * Update to 0.9.1 + + - Bug fixes + +systray-x (0.9.0-0) unstable; urgency=low + + * Update to 0.9.0 + + - Update for TB 102 + - Bug fixes + +systray-x (0.8.0-0) unstable; urgency=low + + * Update to 0.8.0 + + - Refactor for TB 91 + +systray-x (0.5.0-0) unstable; urgency=low + + * Update to 0.5.0 + + - Added translations logic + - Languages: + - de + - en_US + - nl + - pt_BR (by PutinVladimir) + - ru_RU (by fabianski7) + + -- Maxime Rijnders Maxime Rijnders Sat, 07 Nov 2020 23:37:00 +0100 + +systray-x (0.4.0-0) unstable; urgency=low + + * Update to 0.4.0 + + -- Maxime Rijnders Maxime Rijnders Sat, 10 Oct 2020 14:10:00 +0100 + +systray-x (0.0.1-0) unstable; urgency=low + + * Initial Release + + -- Maxime Rijnders Maxime Rijnders Tue, 11 Feb 2020 19:05:19 +0100 diff --git a/dist/deb-qt6/kde/debian.compat b/dist/deb-qt6/kde/debian.compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/dist/deb-qt6/kde/debian.compat @@ -0,0 +1 @@ +10 diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control new file mode 100644 index 0000000..a18fbbf --- /dev/null +++ b/dist/deb-qt6/kde/debian.control @@ -0,0 +1,22 @@ +Source: systray-x +Section: misc +Priority: optional +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird + +Package: systray-x +Architecture: any +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:121) +Description: SysTray-X is a system tray extension for Thunderbird (KDE). + This version is optimized for the KDE desktop. + The add-on uses the WebExtension API's to control an external system + dependent system tray application. + The add-on and system tray application can do: + * custom new mail icon + * display number of unread /new mails + * optional new mail indicator (icon or shading) + * run app on start or close + * show / hide Thunderbird (minimize) + * minimizing hides to tray + * minimize on startup + * minimize on close diff --git a/dist/deb-qt6/kde/debian.rules b/dist/deb-qt6/kde/debian.rules new file mode 100644 index 0000000..ba3a3e3 --- /dev/null +++ b/dist/deb-qt6/kde/debian.rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +DEB_VENDOR := $(shell dpkg-vendor --query vendor) + +VERSION := $(shell cat dist/rpm/VERSION | grep VERSION | sed -e "s/VERSION=\(.*\)/\1/") + +VERSION_MAJOR := $(shell echo $(VERSION) | cut -d'.' -f1) +VERSION_MINOR := $(shell echo $(VERSION) | cut -d'.' -f2) +VERSION_PATCH := $(shell echo $(VERSION) | cut -d'.' -f3) + +BUILD_NUMBER := $(shell cat dist/rpm/VERSION | grep BUILD_NUMBER | sed -e "s/BUILD_NUMBER=\(.*\)/\1/") +GIT_HASH := $(shell cat dist/rpm/VERSION | grep GIT_HASH | sed -e "s/GIT_HASH=\(.*\)/\1/") +GIT_BRANCH := $(shell cat dist/rpm/VERSION | grep GIT_BRANCH | sed -e "s/GIT_BRANCH=\(.*\)/\1/") + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|/usr/bin/SysTray-X|' > SysTray_X.json + + QT_SELECT=5 make EXT_VERSION="DEFINES+=EXT_VERSION DEFINES+=APP_VERSION_MAJOR=\\\\\\\\\\\\\\\"$(VERSION_MAJOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_MINOR=\\\\\\\\\\\\\\\"$(VERSION_MINOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_PATCH=\\\\\\\\\\\\\\\"$(VERSION_PATCH)\\\\\\\\\\\\\\\" DEFINES+=APP_BUILD=\\\\\\\\\\\\\\\"$(BUILD_NUMBER)\\\\\\\\\\\\\\\" DEFINES+=APP_GITHASH=\\\\\\\\\\\\\\\"$(GIT_HASH)\\\\\\\\\\\\\\\" DEFINES+=APP_GITBRANCH=\\\\\\\\\\\\\\\"$(GIT_BRANCH)\\\\\\\\\\\\\\\"" + + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + make clean || true + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package + # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/ + + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/bin + cp -f SysTray-X /usr/src/packages/BUILD/debian/systray-x/usr/bin/SysTray-X + + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/mozilla/native-messaging-hosts + cp -f SysTray_X.json /usr/src/packages/BUILD/debian/systray-x/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json + +ifeq (Debian,$(DEB_VENDOR)) + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions + cd /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions ;\ + ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi +else + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi +endif + + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary installing diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc new file mode 100644 index 0000000..7b4b37e --- /dev/null +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -0,0 +1,7 @@ +Format: 1.0 +Source: systray-x +Version: 0.9.9-1 +Binary: SysTray-X +Maintainer: Maxime Rijnders +Architecture: any +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird diff --git a/dist/deb-qt6/minimal/debian.changelog b/dist/deb-qt6/minimal/debian.changelog new file mode 100644 index 0000000..90ccf3f --- /dev/null +++ b/dist/deb-qt6/minimal/debian.changelog @@ -0,0 +1,100 @@ +systray-x-minimal (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + +systray-x-minimal (0.9.8-1) unstable; urgency=low + + * Update to 0.9.8 + + - Fixed / refactored multi window handling + - Added an option to add a shortcut key for show / hide + - Bugfixes + +systray-x-minimal (0.9.7-0) unstable; urgency=low + + * Update to 0.9.7 + + - Added option for new TB115 mail counting (slow with new mails enabled) + - Bugfixes + +systray-x-minimal (0.9.6-0) unstable; urgency=low + + * Update to 0.9.6 + + - Added option to show a new mail indicator or icon shading + - Added option to launch an app on start and close + - Refactored windows state handling + - Refactored mail counting + - Bugfixes + +systray-x-minimal (0.9.5-0) unstable; urgency=low + + * Update to 0.9.5 + + - Bugfixes + +systray-x-minimal (0.9.4-0) unstable; urgency=low + + * Update to 0.9.4 + + - Separate minimize, close and icon action + - Use new icon for new TB version + +systray-x-minimal (0.9.3-0) unstable; urgency=low + + * Update to 0.9.3 + + - New TB version + +systray-x-minimal (0.9.2-0) unstable; urgency=low + + * Update to 0.9.2 + + - Bug fixes + +systray-x-minimal (0.9.1-0) unstable; urgency=low + + * Update to 0.9.1 + + - Bug fixes + +systray-x-minimal (0.9.0-0) unstable; urgency=low + + * Update to 0.9.0 + + - Update for TB 102 + - Bug fixes + +systray-x-minimal (0.8.0-0) unstable; urgency=low + + * Update to 0.8.0 + + - Refactor for TB 91 + +systray-x-minimal (0.5.0-0) unstable; urgency=low + + * Update to 0.5.0 + + - Added translations logic + - Languages: + - de + - en_US + - nl + - pt_BR (by PutinVladimir) + - ru_RU (by fabianski7) + + -- Maxime Rijnders Maxime Rijnders Sat, 07 Nov 2020 23:37:00 +0100 + +systray-x-minimal (0.4.0-0) unstable; urgency=low + + * Update to 0.4.0 + + -- Maxime Rijnders Maxime Rijnders Sat, 10 Oct 2020 14:10:00 +0100 + +systray-x-minimal (0.0.1-0) unstable; urgency=low + + * Initial Release + + -- Maxime Rijnders Maxime Rijnders Tue, 11 Feb 2020 19:05:19 +0100 diff --git a/dist/deb-qt6/minimal/debian.compat b/dist/deb-qt6/minimal/debian.compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/dist/deb-qt6/minimal/debian.compat @@ -0,0 +1 @@ +10 diff --git a/dist/deb-qt6/minimal/debian.control b/dist/deb-qt6/minimal/debian.control new file mode 100644 index 0000000..e40da13 --- /dev/null +++ b/dist/deb-qt6/minimal/debian.control @@ -0,0 +1,22 @@ +Source: systray-x-minimal +Section: misc +Priority: optional +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird + +Package: systray-x-minimal +Architecture: any +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:121) +Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). + This version is for non-KDE and non-GNOME desktops. + The add-on uses the WebExtension API's to control an external system + dependent system tray application. + The add-on and system tray application can do: + * custom new mail icon + * display number of unread /new mails + * optional new mail indicator (icon or shading) + * run app on start or close + * show / hide Thunderbird (minimize) + * minimizing hides to tray + * minimize on startup + * minimize on close diff --git a/dist/deb-qt6/minimal/debian.rules b/dist/deb-qt6/minimal/debian.rules new file mode 100644 index 0000000..999aabf --- /dev/null +++ b/dist/deb-qt6/minimal/debian.rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +DEB_VENDOR := $(shell dpkg-vendor --query vendor) + +VERSION := $(shell cat dist/rpm/VERSION | grep VERSION | sed -e "s/VERSION=\(.*\)/\1/") + +VERSION_MAJOR := $(shell echo $(VERSION) | cut -d'.' -f1) +VERSION_MINOR := $(shell echo $(VERSION) | cut -d'.' -f2) +VERSION_PATCH := $(shell echo $(VERSION) | cut -d'.' -f3) + +BUILD_NUMBER := $(shell cat dist/rpm/VERSION | grep BUILD_NUMBER | sed -e "s/BUILD_NUMBER=\(.*\)/\1/") +GIT_HASH := $(shell cat dist/rpm/VERSION | grep GIT_HASH | sed -e "s/GIT_HASH=\(.*\)/\1/") +GIT_BRANCH := $(shell cat dist/rpm/VERSION | grep GIT_BRANCH | sed -e "s/GIT_BRANCH=\(.*\)/\1/") + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|/usr/bin/SysTray-X|' > SysTray_X.json + + QT_SELECT=5 make OPTIONS="DEFINES+=NO_KDE_INTEGRATION" EXT_VERSION="DEFINES+=EXT_VERSION DEFINES+=APP_VERSION_MAJOR=\\\\\\\\\\\\\\\"$(VERSION_MAJOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_MINOR=\\\\\\\\\\\\\\\"$(VERSION_MINOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_PATCH=\\\\\\\\\\\\\\\"$(VERSION_PATCH)\\\\\\\\\\\\\\\" DEFINES+=APP_BUILD=\\\\\\\\\\\\\\\"$(BUILD_NUMBER)\\\\\\\\\\\\\\\" DEFINES+=APP_GITHASH=\\\\\\\\\\\\\\\"$(GIT_HASH)\\\\\\\\\\\\\\\" DEFINES+=APP_GITBRANCH=\\\\\\\\\\\\\\\"$(GIT_BRANCH)\\\\\\\\\\\\\\\"" + + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + make clean || true + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package + # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/ + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/bin + cp -f SysTray-X /usr/src/packages/BUILD/debian/systray-x-minimal/usr/bin/SysTray-X + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/mozilla/native-messaging-hosts + cp -f SysTray_X.json /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json + +ifeq (Debian,$(DEB_VENDOR)) + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird/extensions + cd /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird/extensions ;\ + ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi +else + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi +endif + + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary installing diff --git a/dist/deb-qt6/minimal/systray-x-minimal.dsc b/dist/deb-qt6/minimal/systray-x-minimal.dsc new file mode 100644 index 0000000..07c2d61 --- /dev/null +++ b/dist/deb-qt6/minimal/systray-x-minimal.dsc @@ -0,0 +1,7 @@ +Format: 1.0 +Source: systray-x-minimal +Version: 0.9.9-1 +Binary: systray-x-minimal +Maintainer: Maxime Rijnders +Architecture: any +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird diff --git a/dist/deb/gnome/debian.changelog b/dist/deb/gnome/debian.changelog index 734f9f5..2afa477 100644 --- a/dist/deb/gnome/debian.changelog +++ b/dist/deb/gnome/debian.changelog @@ -1,3 +1,9 @@ +systray-x-gnome (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + systray-x-gnome (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/gnome/systray-x-gnome.dsc b/dist/deb/gnome/systray-x-gnome.dsc index 9a21e41..78075ae 100644 --- a/dist/deb/gnome/systray-x-gnome.dsc +++ b/dist/deb/gnome/systray-x-gnome.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-gnome -Version: 0.9.8-1 +Version: 0.9.9-1 Binary: systray-x-gnome Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/kde/debian.changelog b/dist/deb/kde/debian.changelog index c870a3a..6e4de3c 100644 --- a/dist/deb/kde/debian.changelog +++ b/dist/deb/kde/debian.changelog @@ -1,3 +1,9 @@ +systray-x (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + systray-x (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/kde/systray-x.dsc b/dist/deb/kde/systray-x.dsc index a33498e..f0ec79e 100644 --- a/dist/deb/kde/systray-x.dsc +++ b/dist/deb/kde/systray-x.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x -Version: 0.9.8-1 +Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/minimal/debian.changelog b/dist/deb/minimal/debian.changelog index 26261f1..90ccf3f 100644 --- a/dist/deb/minimal/debian.changelog +++ b/dist/deb/minimal/debian.changelog @@ -1,3 +1,9 @@ +systray-x-minimal (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + systray-x-minimal (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/minimal/systray-x-minimal.dsc b/dist/deb/minimal/systray-x-minimal.dsc index efe1c10..26e8c1a 100644 --- a/dist/deb/minimal/systray-x-minimal.dsc +++ b/dist/deb/minimal/systray-x-minimal.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-minimal -Version: 0.9.8-1 +Version: 0.9.9-1 Binary: systray-x-minimal Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/rpm/gnome/systray-x-gnome.changes b/dist/rpm/gnome/systray-x-gnome.changes index 6e7bd78..4e22911 100644 --- a/dist/rpm/gnome/systray-x-gnome.changes +++ b/dist/rpm/gnome/systray-x-gnome.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders + + * Update to 0.9.9 + + - Qt 6 fixes + ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders diff --git a/dist/rpm/kde/systray-x.changes b/dist/rpm/kde/systray-x.changes index 6e7bd78..4e22911 100644 --- a/dist/rpm/kde/systray-x.changes +++ b/dist/rpm/kde/systray-x.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders + + * Update to 0.9.9 + + - Qt 6 fixes + ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders diff --git a/dist/rpm/minimal/systray-x-minimal.changes b/dist/rpm/minimal/systray-x-minimal.changes index 6e7bd78..4e22911 100644 --- a/dist/rpm/minimal/systray-x-minimal.changes +++ b/dist/rpm/minimal/systray-x-minimal.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders + + * Update to 0.9.9 + + - Qt 6 fixes + ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders From b52cdfd51ed55b8e381d36df878fcf6034c9f672 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 23:17:40 +0200 Subject: [PATCH 17/80] Update packages --- dist/deb-qt6/kde/debian.control | 2 +- dist/deb-qt6/kde/systray-x.dsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control index a18fbbf..97f4fa7 100644 --- a/dist/deb-qt6/kde/debian.control +++ b/dist/deb-qt6/kde/debian.control @@ -2,7 +2,7 @@ Source: systray-x Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird Package: systray-x Architecture: any diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc index 7b4b37e..c9bd280 100644 --- a/dist/deb-qt6/kde/systray-x.dsc +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -4,4 +4,4 @@ Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird From 03bc76327709436e302d73663bc7f297abcbdb2e Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 23:32:09 +0200 Subject: [PATCH 18/80] Update packages --- dist/deb-qt6/kde/debian.control | 2 +- dist/deb-qt6/kde/systray-x.dsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control index 97f4fa7..9e01b40 100644 --- a/dist/deb-qt6/kde/debian.control +++ b/dist/deb-qt6/kde/debian.control @@ -2,7 +2,7 @@ Source: systray-x Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird Package: systray-x Architecture: any diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc index c9bd280..cca69b1 100644 --- a/dist/deb-qt6/kde/systray-x.dsc +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -4,4 +4,4 @@ Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird From 29910ea81d3117b2389f64ceb4b40545ed7dd909 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 3 Apr 2024 09:08:59 +0200 Subject: [PATCH 19/80] Update package --- dist/rpm/kde/systray-x.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index a1fdde1..4189767 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -26,10 +26,14 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip -%if 0%{?suse_version} > 1600 +%if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: kf6-kstatusnotifieritem-devel +%if 0%{?fedora_version} || 0%{?centos_version} +%else +Requires: kf6-knotifications +%endif Requires: libKF6Notifications6 %else BuildRequires: pkgconfig(Qt5Core) From 7b180ca9c3d166873f221b93a71a37d1a9bbdfaf Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 3 Apr 2024 09:24:18 +0200 Subject: [PATCH 20/80] Fix date --- dist/rpm/gnome/systray-x-gnome.changes | 2 +- dist/rpm/kde/systray-x.changes | 2 +- dist/rpm/minimal/systray-x-minimal.changes | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/rpm/gnome/systray-x-gnome.changes b/dist/rpm/gnome/systray-x-gnome.changes index 4e22911..5fe5dc9 100644 --- a/dist/rpm/gnome/systray-x-gnome.changes +++ b/dist/rpm/gnome/systray-x-gnome.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders +Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 diff --git a/dist/rpm/kde/systray-x.changes b/dist/rpm/kde/systray-x.changes index 4e22911..5fe5dc9 100644 --- a/dist/rpm/kde/systray-x.changes +++ b/dist/rpm/kde/systray-x.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders +Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 diff --git a/dist/rpm/minimal/systray-x-minimal.changes b/dist/rpm/minimal/systray-x-minimal.changes index 4e22911..5fe5dc9 100644 --- a/dist/rpm/minimal/systray-x-minimal.changes +++ b/dist/rpm/minimal/systray-x-minimal.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders +Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 From 36dcfb0866b431f46dc130924de23b4acc7f866b Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 3 Apr 2024 10:56:08 +0200 Subject: [PATCH 21/80] Update package --- dist/deb-qt6/kde/debian.control | 2 +- dist/deb-qt6/kde/systray-x.dsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control index 9e01b40..75b4510 100644 --- a/dist/deb-qt6/kde/debian.control +++ b/dist/deb-qt6/kde/debian.control @@ -2,7 +2,7 @@ Source: systray-x Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6notifications-dev, thunderbird Package: systray-x Architecture: any diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc index cca69b1..3b1a603 100644 --- a/dist/deb-qt6/kde/systray-x.dsc +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -4,4 +4,4 @@ Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6notifications-dev, thunderbird From f61b31b389f6740ef54ae8ab49d225b8e6e89053 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 3 Apr 2024 23:47:04 +0200 Subject: [PATCH 22/80] Disable shortcuts for wayland --- app/SysTray-X/SysTray-X-app/preferences.cpp | 9 ++++- .../SysTray-X-app/preferencesdialog.cpp | 34 ++++++++++++++----- .../SysTray-X-app/preferencesdialog.h | 5 +++ app/SysTray-X/SysTray-X-app/systrayx.cpp | 13 +++++-- 4 files changed, 50 insertions(+), 11 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/preferences.cpp b/app/SysTray-X/SysTray-X-app/preferences.cpp index 216b7bf..d44ff32 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.cpp +++ b/app/SysTray-X/SysTray-X-app/preferences.cpp @@ -114,7 +114,14 @@ Preferences::Preferences( QObject *parent ) : QObject( parent ) #if ( defined( Q_OS_UNIX ) && defined( NO_SHORTCUTS ) ) m_shortcuts_option = false; #else - m_shortcuts_option = true; + if( m_platform == "wayland" ) + { + m_shortcuts_option = false; + } + else + { + m_shortcuts_option = true; + } #endif /* // XDG_SESSION_DESKTOP diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp index 80b7602..a6cded2 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp @@ -27,7 +27,7 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi m_ui->setupUi( this ); /* - * Store link adn preferences + * Store link and preferences */ m_link = link; m_pref = pref; @@ -82,18 +82,16 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi #endif #if defined( Q_OS_UNIX ) && defined( NO_SHORTCUTS ) -#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) - int index = m_ui->tabWidget->indexOf( m_ui->tabShortcuts ); - m_ui->tabWidget->setTabVisible( index, false ); + hideShortcutsTab(); #else - int index = m_ui->tabWidget->indexOf( m_ui->tabShortcuts ); - m_ui->tabWidget->setTabEnabled( index, false ); - m_ui->tabWidget->setStyleSheet( "QTabBar::tab::disabled { width: 0; height: 0; margin: 0; padding: 0; border: none; }" ); + if( !m_pref->getShortcutsOption() ) + { + hideShortcutsTab(); + } -#endif #endif /* @@ -217,6 +215,26 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi } +/* + * Hide the shortcuts tab + */ +void PreferencesDialog::hideShortcutsTab() +{ +#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0) + + int index = m_ui->tabWidget->indexOf( m_ui->tabShortcuts ); + m_ui->tabWidget->setTabVisible( index, false ); + +#else + + int index = m_ui->tabWidget->indexOf( m_ui->tabShortcuts ); + m_ui->tabWidget->setTabEnabled( index, false ); + m_ui->tabWidget->setStyleSheet( "QTabBar::tab::disabled { width: 0; height: 0; margin: 0; padding: 0; border: none; }" ); + +#endif +} + + /* * Handle the language change event */ diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.h b/app/SysTray-X/SysTray-X-app/preferencesdialog.h index 0ac2929..713fe15 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.h +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.h @@ -57,6 +57,11 @@ class PreferencesDialog : public QDialog private: + /** + * @brief hideShortcutsTab. Hide the shortcuts tab. + */ + void hideShortcutsTab(); + /** * @brief setDebug. Set the debug state. * diff --git a/app/SysTray-X/SysTray-X-app/systrayx.cpp b/app/SysTray-X/SysTray-X-app/systrayx.cpp index a99caa8..31caed9 100644 --- a/app/SysTray-X/SysTray-X-app/systrayx.cpp +++ b/app/SysTray-X/SysTray-X-app/systrayx.cpp @@ -151,7 +151,12 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) connect( m_preferences, &Preferences::signalDebugChange, m_debug, &DebugWidget::slotDebugChange ); #if defined( SHORTCUTS ) - connect( m_preferences, &Preferences::signalShowHideShortcutChange, this, &SysTrayX::slotShowHideShortcutChange ); + + if( m_preferences->getShortcutsOption() ) + { + connect( m_preferences, &Preferences::signalShowHideShortcutChange, this, &SysTrayX::slotShowHideShortcutChange ); + } + #endif /* @@ -192,7 +197,11 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) /* m_preferences->setBrowserVersion( "115.1.0" ); // m_preferences->setBrowserVersion( "102.2.3" ); - m_preferences->setShowHideShortcut( QKeySequence( Qt::CTRL | Qt::Key_P ) ); + + if( m_preferences->getShortcutsOption() ) + { + m_preferences->setShowHideShortcut( QKeySequence( Qt::CTRL | Qt::Key_P ) ); + } slotLoadLanguage( "en-US" ); //slotLoadLanguage( "it" ); From f0cbd1a5ad1b8c3a830d9506f2d74ec7b6213bdf Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Thu, 4 Apr 2024 09:37:53 +0200 Subject: [PATCH 23/80] Update packages --- dist/arch/gnome/PKGBUILD | 1 + dist/arch/kde/PKGBUILD | 1 + dist/arch/minimal/PKGBUILD | 1 + dist/deb/gnome/debian.control | 2 +- dist/deb/gnome/systray-x-gnome.dsc | 2 +- dist/deb/kde/debian.control | 2 +- dist/deb/kde/systray-x.dsc | 2 +- dist/deb/minimal/debian.control | 2 +- dist/deb/minimal/systray-x-minimal.dsc | 2 +- dist/rpm/gnome/systray-x-gnome.spec | 3 ++- dist/rpm/kde/systray-x.spec | 1 + dist/rpm/minimal/systray-x-minimal.spec | 1 + 12 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index fe5b5aa..f44fcc4 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -11,6 +11,7 @@ license=(MPL-2.0) depends=( 'qt5-base' 'qt5-x11extras' + 'qt5-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' 'thunderbird<121' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 3e602c4..ef94b0a 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -11,6 +11,7 @@ license=(MPL-2.0) depends=( 'qt5-base' 'qt5-x11extras' + 'qt5-wayland' 'knotifications5' 'thunderbird>=91' 'thunderbird<121' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 94e7ee3..78a2bba 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -11,6 +11,7 @@ license=(MPL-2.0) depends=( 'qt5-base' 'qt5-x11extras' + 'qt5-wayland' 'thunderbird>=91' 'thunderbird<121' ) diff --git a/dist/deb/gnome/debian.control b/dist/deb/gnome/debian.control index b78ee24..c2a7b8f 100644 --- a/dist/deb/gnome/debian.control +++ b/dist/deb/gnome/debian.control @@ -2,7 +2,7 @@ Source: systray-x-gnome Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qdbus-qt5, libqt5x11extras5-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qtwayland5, qdbus-qt5, libqt5x11extras5-dev, thunderbird Package: systray-x-gnome Architecture: any diff --git a/dist/deb/gnome/systray-x-gnome.dsc b/dist/deb/gnome/systray-x-gnome.dsc index 9a21e41..9294f7d 100644 --- a/dist/deb/gnome/systray-x-gnome.dsc +++ b/dist/deb/gnome/systray-x-gnome.dsc @@ -4,4 +4,4 @@ Version: 0.9.8-1 Binary: systray-x-gnome Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qdbus-qt5, libqt5x11extras5-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qtwayland5, qdbus-qt5, libqt5x11extras5-dev, thunderbird diff --git a/dist/deb/kde/debian.control b/dist/deb/kde/debian.control index 76bc5ba..c9c7700 100644 --- a/dist/deb/kde/debian.control +++ b/dist/deb/kde/debian.control @@ -2,7 +2,7 @@ Source: systray-x Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qdbus-qt5, libqt5x11extras5-dev, libkf5notifications-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qtwayland5, qdbus-qt5, libqt5x11extras5-dev, libkf5notifications-dev, thunderbird Package: systray-x Architecture: any diff --git a/dist/deb/kde/systray-x.dsc b/dist/deb/kde/systray-x.dsc index a33498e..5bf2a4a 100644 --- a/dist/deb/kde/systray-x.dsc +++ b/dist/deb/kde/systray-x.dsc @@ -4,4 +4,4 @@ Version: 0.9.8-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qdbus-qt5, libqt5x11extras5-dev, libkf5notifications-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qtwayland5, qdbus-qt5, libqt5x11extras5-dev, libkf5notifications-dev, thunderbird diff --git a/dist/deb/minimal/debian.control b/dist/deb/minimal/debian.control index 659a2c6..6f21d17 100644 --- a/dist/deb/minimal/debian.control +++ b/dist/deb/minimal/debian.control @@ -2,7 +2,7 @@ Source: systray-x-minimal Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qdbus-qt5, libqt5x11extras5-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qtwayland5, qdbus-qt5, libqt5x11extras5-dev, thunderbird Package: systray-x-minimal Architecture: any diff --git a/dist/deb/minimal/systray-x-minimal.dsc b/dist/deb/minimal/systray-x-minimal.dsc index efe1c10..44b1994 100644 --- a/dist/deb/minimal/systray-x-minimal.dsc +++ b/dist/deb/minimal/systray-x-minimal.dsc @@ -4,4 +4,4 @@ Version: 0.9.8-1 Binary: systray-x-minimal Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qdbus-qt5, libqt5x11extras5-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-dev, qtwayland5, qdbus-qt5, libqt5x11extras5-dev, thunderbird diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index 179b936..5d82cf8 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -31,7 +31,6 @@ BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) BuildRequires: pkgconfig(x11) -Requires: gnome-shell-extension-appindicator %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: qt5-qtx11extras-devel Requires: thunderbird >= 91 @@ -41,6 +40,8 @@ BuildRequires: libqt5-qtx11extras-devel Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif +Requires: libqt5-qtwayland +Requires: gnome-shell-extension-appindicator %description SysTray-X is a system tray extension for Thunderbird. diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index c903683..391f8c4 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -44,6 +44,7 @@ Requires: libKF5Notifications5 Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif +Requires: libqt5-qtwayland %description SysTray-X is a system tray extension for Thunderbird. diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index bbc1fac..f5709f4 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -40,6 +40,7 @@ BuildRequires: libqt5-qtx11extras-devel Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif +Requires: libqt5-qtwayland %description SysTray-X is a system tray extension for Thunderbird. From 4dfbc09a9a28f2bc19977482fbd66661ae52489d Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 22:37:06 +0200 Subject: [PATCH 24/80] Disable incompatable shortcuts for Qt6 --- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 65 +++++++++++++++---- .../SysTray-X-app/nativeeventfilter-x11.cpp | 12 +++- .../SysTray-X-app/preferencesdialog.cpp | 8 +++ app/SysTray-X/SysTray-X-app/systrayx.cpp | 10 +-- 4 files changed, 76 insertions(+), 19 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index a600b96..f62ee35 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -22,9 +22,19 @@ include( ../SysTray-X.pri ) QT += core gui unix:!macx: { contains(DEFINES,KDE_INTEGRATION) { - QT += dbus KNotifications + lessThan(QT_MAJOR_VERSION, 6): { + QT += dbus KNotifications + } + else + { + INCLUDEPATH += /usr/include/KF6/KStatusNotifierItem + LIBS += -lKF6StatusNotifierItem + } + } + + lessThan(QT_MAJOR_VERSION, 6): { + QT += x11extras } - QT += x11extras } greaterThan(QT_MAJOR_VERSION, 4): QT += widgets @@ -152,8 +162,6 @@ win32: { SOURCES += \ main.cpp \ - nativeeventfilterbase.cpp \ - shortcut.cpp \ systrayxlink.cpp \ systrayxicon.cpp \ systrayx.cpp \ @@ -161,25 +169,39 @@ SOURCES += \ preferencesdialog.cpp \ preferences.cpp \ windowctrl.cpp + +lessThan(QT_MAJOR_VERSION, 6): { + SOURCES += \ + shortcut.cpp \ + nativeeventfilterbase.cpp +} + unix: { -SOURCES += \ - nativeeventfilter-x11.cpp \ - windowctrl-unix.cpp + SOURCES += \ + windowctrl-unix.cpp + contains(DEFINES,KDE_INTEGRATION) { SOURCES += \ systrayxstatusnotifier.cpp } + + lessThan(QT_MAJOR_VERSION, 6): { + SOURCES += \ + nativeeventfilter-x11.cpp + } } win32: { SOURCES += \ - nativeeventfilter-win.cpp \ windowctrl-win.cpp + + lessThan(QT_MAJOR_VERSION, 6): { + SOURCES += \ + nativeeventfilter-win.cpp + } } HEADERS += \ debug.h \ - nativeeventfilterbase.h \ - shortcut.h \ systrayxlink.h \ systrayxicon.h \ systrayx.h \ @@ -187,20 +209,35 @@ HEADERS += \ preferencesdialog.h \ preferences.h \ windowctrl.h + +lessThan(QT_MAJOR_VERSION, 6): { + HEADERS += \ + shortcut.h \ + nativeeventfilterbase.h +} + unix: { -HEADERS += \ - nativeeventfilter-x11.h \ + HEADERS += \ windowctrl-unix.h contains(DEFINES,KDE_INTEGRATION) { HEADERS += \ systrayxstatusnotifier.h } + + lessThan(QT_MAJOR_VERSION, 6): { + HEADERS += \ + nativeeventfilter-x11.h + } } win32: { -HEADERS += \ - nativeeventfilter-win.h \ + HEADERS += \ windowctrl-win.h + + lessThan(QT_MAJOR_VERSION, 6): { + HEADERS += \ + nativeeventfilter-win.h + } } FORMS += \ diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index 4e9c781..ce1554a 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -9,7 +9,9 @@ /* * Qt includes */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) #include +#endif #include @@ -127,7 +129,11 @@ bool NativeEventFilterX11::connectShortcut( Qt::Key key_code, Qt::KeyboardModifi /* * Get the X11 display */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Display *display = QX11Info::display(); +#else + Display *display = 0; +#endif /* * Get the final key code @@ -153,7 +159,11 @@ bool NativeEventFilterX11::connectShortcut( Qt::Key key_code, Qt::KeyboardModifi */ bool NativeEventFilterX11::disconnectShortcut() { - Display* display = QX11Info::display(); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + Display *display = QX11Info::display(); +#else + Display *display = 0; +#endif /* * Ungrab the key diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp index a6cded2..21b0eff 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp @@ -1105,6 +1105,7 @@ void PreferencesDialog::slotTruncateShowHideShortcut() { QKeySequence key_seq = m_ui->showHideKeySequenceEdit->keySequence(); +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) /* * Workaround for a Qt5 bug in QKeySequenceEdit object, Meta/Win key is not handled correctly. */ @@ -1119,6 +1120,13 @@ void PreferencesDialog::slotTruncateShowHideShortcut() } QKeySequence shortcut( value ); + +#else + + QKeySequence shortcut( key_seq[ 0 ] ); + +#endif + m_ui->showHideKeySequenceEdit->setKeySequence( shortcut ); } diff --git a/app/SysTray-X/SysTray-X-app/systrayx.cpp b/app/SysTray-X/SysTray-X-app/systrayx.cpp index 31caed9..a53b508 100644 --- a/app/SysTray-X/SysTray-X-app/systrayx.cpp +++ b/app/SysTray-X/SysTray-X-app/systrayx.cpp @@ -9,7 +9,7 @@ #include "systrayxicon.h" #include "systrayxstatusnotifier.h" #include "windowctrl.h" -#include "shortcut.h" +//#include "shortcut.h" /* * Qt includes @@ -194,7 +194,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) m_preferences->displayDebug(); -/* + m_preferences->setBrowserVersion( "115.1.0" ); // m_preferences->setBrowserVersion( "102.2.3" ); @@ -215,7 +215,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) // m_preferences->setStartApp( "/home/maxime/test.sh" ); // m_preferences->setStartAppArgs( "/home/maxime/startup.txt StartupString" ); // slotStartApp(); -*/ + } @@ -735,7 +735,7 @@ void SysTrayX::slotLoadLanguage( QString locale ) } QString locale_path = "SysTray-X."+ locale; - m_translator.load( locale_path, ":/languages/" ); + (void)m_translator.load( locale_path, ":/languages/" ); // bool status = m_translator.load( locale_path, ":/languages/" ); // emit signalConsole( QString( "Language loaded %1").arg(status)); qApp->installTranslator( &m_translator ); @@ -784,6 +784,7 @@ void SysTrayX::slotCloseApp() void SysTrayX::slotShowHideShortcutChange() { +#ifdef ENABLE_SHORTCUT if( m_show_hide_shortcut != nullptr ) { disconnect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); @@ -794,4 +795,5 @@ void SysTrayX::slotShowHideShortcutChange() m_show_hide_shortcut = new Shortcut( m_preferences->getShowHideShortcut(), this ); connect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); +#endif } From d296660b9f92f0a660f802a60c8b1df855bd94b2 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 22:43:15 +0200 Subject: [PATCH 25/80] Use qmake6 if available --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 9631a87..df98b78 100644 --- a/Makefile +++ b/Makefile @@ -5,13 +5,16 @@ else ifeq (GNU/Linux,$(shell uname -o)) SYSTEM = Linux - QMAKE = qmake-qt5 - ifeq (, $(shell which qmake-qt5 2>/dev/null)) - ifeq (, $(shell which qmake 2>/dev/null)) - $(error "No qmake in $(PATH)") + QMAKE = qmake6 + ifeq (, $(shell which qmake6 2>/dev/null)) + QMAKE = qmake-qt5 + ifeq (, $(shell which qmake-qt5 2>/dev/null)) + ifeq (, $(shell which qmake 2>/dev/null)) + $(error "No qmake in $(PATH)") + endif + QMAKE = qmake + endif endif - QMAKE = qmake - endif else $(error "Unknown system") endif From 809a36caff33cbfda2b27720f27b488ed8ee1416 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 23:50:52 +0200 Subject: [PATCH 26/80] Fix shortcuts --- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 48 +++++-------------- .../SysTray-X-app/nativeeventfilter-x11.cpp | 15 ++++-- .../SysTray-X-app/nativeeventfilter-x11.h | 6 ++- .../SysTray-X-app/nativeeventfilterbase.cpp | 1 - .../SysTray-X-app/nativeeventfilterbase.h | 1 + app/SysTray-X/SysTray-X-app/shortcut.cpp | 4 +- app/SysTray-X/SysTray-X-app/systrayx.cpp | 8 ++-- 7 files changed, 35 insertions(+), 48 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index f62ee35..a6988ef 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -19,7 +19,7 @@ include( ../SysTray-X.pri ) # # Set the Qt modules # -QT += core gui +QT += core gui widgets unix:!macx: { contains(DEFINES,KDE_INTEGRATION) { lessThan(QT_MAJOR_VERSION, 6): { @@ -37,8 +37,6 @@ unix:!macx: { } } -greaterThan(QT_MAJOR_VERSION, 4): QT += widgets - # # Define the target # @@ -161,74 +159,54 @@ win32: { SOURCES += \ + debugwidget.cpp \ main.cpp \ + nativeeventfilterbase.cpp \ systrayxlink.cpp \ systrayxicon.cpp \ systrayx.cpp \ - debugwidget.cpp \ preferencesdialog.cpp \ preferences.cpp \ - windowctrl.cpp - -lessThan(QT_MAJOR_VERSION, 6): { - SOURCES += \ shortcut.cpp \ - nativeeventfilterbase.cpp -} + windowctrl.cpp unix: { SOURCES += \ - windowctrl-unix.cpp + nativeeventfilter-x11.cpp \ + windowctrl-unix.cpp contains(DEFINES,KDE_INTEGRATION) { SOURCES += \ systrayxstatusnotifier.cpp } - - lessThan(QT_MAJOR_VERSION, 6): { - SOURCES += \ - nativeeventfilter-x11.cpp - } } win32: { SOURCES += \ + nativeeventfilter-win.cpp windowctrl-win.cpp - - lessThan(QT_MAJOR_VERSION, 6): { - SOURCES += \ - nativeeventfilter-win.cpp - } } HEADERS += \ debug.h \ + debugwidget.h \ + nativeeventfilterbase.h \ + preferencesdialog.h \ + preferences.h \ systrayxlink.h \ systrayxicon.h \ systrayx.h \ - debugwidget.h \ - preferencesdialog.h \ - preferences.h \ - windowctrl.h - -lessThan(QT_MAJOR_VERSION, 6): { - HEADERS += \ shortcut.h \ - nativeeventfilterbase.h -} + windowctrl.h unix: { HEADERS += \ + nativeeventfilter-x11.h \ windowctrl-unix.h contains(DEFINES,KDE_INTEGRATION) { HEADERS += \ systrayxstatusnotifier.h } - - lessThan(QT_MAJOR_VERSION, 6): { - HEADERS += \ - nativeeventfilter-x11.h - } } win32: { HEADERS += \ diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index ce1554a..16c2526 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -24,7 +24,12 @@ const int NativeEventFilterX11::m_valid_mods_mask = ShiftMask | ControlMask | Mo /* * Catch the key press */ + +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* message, long* result ) +#else +bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) +#endif { Q_UNUSED( eventType ) Q_UNUSED( result ) @@ -50,8 +55,8 @@ bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* */ bool NativeEventFilterX11::connectShortcut( QKeySequence key_seq ) { - Qt::Key key_code = Qt::Key( key_seq[ 0 ] & static_cast< int >( ~Qt::KeyboardModifierMask ) ); - Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & static_cast( Qt::KeyboardModifierMask ) ); + Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & static_cast< int >( ~Qt::KeyboardModifierMask ) ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & static_cast( Qt::KeyboardModifierMask ) ); return connectShortcut( key_code, key_modifiers ); } @@ -132,7 +137,8 @@ bool NativeEventFilterX11::connectShortcut( Qt::Key key_code, Qt::KeyboardModifi #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Display *display = QX11Info::display(); #else - Display *display = 0; + QNativeInterface::QX11Application *x11App = qApp->nativeInterface(); + Display *display = x11App->display(); #endif /* @@ -162,7 +168,8 @@ bool NativeEventFilterX11::disconnectShortcut() #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Display *display = QX11Info::display(); #else - Display *display = 0; + QNativeInterface::QX11Application *x11App = qApp->nativeInterface(); + Display *display = x11App->display(); #endif /* diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h index 0cf9203..cd67c99 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.h @@ -33,7 +33,11 @@ class NativeEventFilterX11 : public NativeEventFilterBase * * @return Result */ - bool nativeEventFilter( const QByteArray& eventType, void* message, long* result ) override; +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + bool nativeEventFilter( const QByteArray& eventType, void* message, long* result ) override; +#else + bool nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) override; +#endif protected: diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp index 887fc62..31118d5 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.cpp @@ -12,7 +12,6 @@ /* * Qt includes */ -#include #include diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h index 5f5ab2d..1829736 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilterbase.h @@ -15,6 +15,7 @@ #include #include #include +#include /* * Predefines diff --git a/app/SysTray-X/SysTray-X-app/shortcut.cpp b/app/SysTray-X/SysTray-X-app/shortcut.cpp index 87f021b..d1e8249 100644 --- a/app/SysTray-X/SysTray-X-app/shortcut.cpp +++ b/app/SysTray-X/SysTray-X-app/shortcut.cpp @@ -49,8 +49,8 @@ Shortcut::~Shortcut() */ bool Shortcut::setShortcut( QKeySequence key_seq ) { - Qt::Key key_code = Qt::Key( key_seq[ 0 ] & ~Qt::KeyboardModifierMask ); - Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & Qt::KeyboardModifierMask); + Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & ~Qt::KeyboardModifierMask ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & Qt::KeyboardModifierMask); return setShortcut( key_code, key_modifiers ); } diff --git a/app/SysTray-X/SysTray-X-app/systrayx.cpp b/app/SysTray-X/SysTray-X-app/systrayx.cpp index a53b508..7abd42e 100644 --- a/app/SysTray-X/SysTray-X-app/systrayx.cpp +++ b/app/SysTray-X/SysTray-X-app/systrayx.cpp @@ -9,7 +9,7 @@ #include "systrayxicon.h" #include "systrayxstatusnotifier.h" #include "windowctrl.h" -//#include "shortcut.h" +#include "shortcut.h" /* * Qt includes @@ -194,7 +194,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) m_preferences->displayDebug(); - +/* m_preferences->setBrowserVersion( "115.1.0" ); // m_preferences->setBrowserVersion( "102.2.3" ); @@ -215,7 +215,7 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) // m_preferences->setStartApp( "/home/maxime/test.sh" ); // m_preferences->setStartAppArgs( "/home/maxime/startup.txt StartupString" ); // slotStartApp(); - +*/ } @@ -784,7 +784,6 @@ void SysTrayX::slotCloseApp() void SysTrayX::slotShowHideShortcutChange() { -#ifdef ENABLE_SHORTCUT if( m_show_hide_shortcut != nullptr ) { disconnect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); @@ -795,5 +794,4 @@ void SysTrayX::slotShowHideShortcutChange() m_show_hide_shortcut = new Shortcut( m_preferences->getShowHideShortcut(), this ); connect( m_show_hide_shortcut, &Shortcut::activated, m_win_ctrl, &WindowCtrl::slotShowHide ); -#endif } From f23694958d94fb3a13660918628b81a9bdcced55 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 1 Apr 2024 00:15:47 +0200 Subject: [PATCH 27/80] Fix Qt5 build --- Makefile | 8 ++++---- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 3 +-- app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp | 6 +++++- app/SysTray-X/SysTray-X-app/shortcut.cpp | 6 +++++- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index df98b78..e30c677 100644 --- a/Makefile +++ b/Makefile @@ -5,10 +5,10 @@ else ifeq (GNU/Linux,$(shell uname -o)) SYSTEM = Linux - QMAKE = qmake6 - ifeq (, $(shell which qmake6 2>/dev/null)) - QMAKE = qmake-qt5 - ifeq (, $(shell which qmake-qt5 2>/dev/null)) + QMAKE = qmake-qt5 + ifeq (, $(shell which qmake-qt5 2>/dev/null)) + QMAKE = qmake6 + ifeq (, $(shell which qmake6 2>/dev/null)) ifeq (, $(shell which qmake 2>/dev/null)) $(error "No qmake in $(PATH)") endif diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index a6988ef..42d2535 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -25,8 +25,7 @@ unix:!macx: { lessThan(QT_MAJOR_VERSION, 6): { QT += dbus KNotifications } - else - { + greaterThan(QT_MAJOR_VERSION, 5): { INCLUDEPATH += /usr/include/KF6/KStatusNotifierItem LIBS += -lKF6StatusNotifierItem } diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index 16c2526..95383be 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -55,9 +55,13 @@ bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* */ bool NativeEventFilterX11::connectShortcut( QKeySequence key_seq ) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + Qt::Key key_code = Qt::Key( key_seq[ 0 ] & static_cast< int >( ~Qt::KeyboardModifierMask ) ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & static_cast( Qt::KeyboardModifierMask ) ); +#else Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & static_cast< int >( ~Qt::KeyboardModifierMask ) ); Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & static_cast( Qt::KeyboardModifierMask ) ); - +#endif return connectShortcut( key_code, key_modifiers ); } diff --git a/app/SysTray-X/SysTray-X-app/shortcut.cpp b/app/SysTray-X/SysTray-X-app/shortcut.cpp index d1e8249..8d90da5 100644 --- a/app/SysTray-X/SysTray-X-app/shortcut.cpp +++ b/app/SysTray-X/SysTray-X-app/shortcut.cpp @@ -49,9 +49,13 @@ Shortcut::~Shortcut() */ bool Shortcut::setShortcut( QKeySequence key_seq ) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) + Qt::Key key_code = Qt::Key( key_seq[ 0 ] & ~Qt::KeyboardModifierMask ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & Qt::KeyboardModifierMask); +#else Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & ~Qt::KeyboardModifierMask ); Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & Qt::KeyboardModifierMask); - +#endif return setShortcut( key_code, key_modifiers ); } From f37b0117685e01fd9b53128efcf27462c568efc5 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 1 Apr 2024 23:09:21 +0200 Subject: [PATCH 28/80] Update windows build --- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 2 +- app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp | 10 +++++++++- app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h | 4 ++++ app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp | 1 - app/SysTray-X/SysTray-X-app/windowctrl.h | 5 +++-- 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index 42d2535..bd5b944 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -181,7 +181,7 @@ unix: { } win32: { SOURCES += \ - nativeeventfilter-win.cpp + nativeeventfilter-win.cpp \ windowctrl-win.cpp } diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp index 320f1b1..babb8be 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.cpp @@ -90,7 +90,11 @@ const QMap< Qt::Key, int > NativeEventFilterWin::m_virtual_key_map { /* * Catch the key press */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool NativeEventFilterWin::nativeEventFilter( const QByteArray& eventType, void* message, long* result ) +#else +bool NativeEventFilterWin::nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) +#endif { Q_UNUSED( eventType ) Q_UNUSED( result ) @@ -114,9 +118,13 @@ bool NativeEventFilterWin::nativeEventFilter( const QByteArray& eventType, void* */ bool NativeEventFilterWin::connectShortcut( QKeySequence key_seq ) { +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) Qt::Key key_code = Qt::Key( key_seq[ 0 ] & static_cast< int >( ~Qt::KeyboardModifierMask ) ); Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ] & static_cast( Qt::KeyboardModifierMask ) ); - +#else + Qt::Key key_code = Qt::Key( key_seq[ 0 ].toCombined() & static_cast< int >( ~Qt::KeyboardModifierMask ) ); + Qt::KeyboardModifiers key_modifiers = Qt::KeyboardModifiers( key_seq[ 0 ].toCombined() & static_cast( Qt::KeyboardModifierMask ) ); +#endif return connectShortcut( key_code, key_modifiers ); } diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h index ff16f44..71c51ee 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-win.h @@ -38,7 +38,11 @@ class NativeEventFilterWin : public NativeEventFilterBase * * @return Result */ +#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool nativeEventFilter( const QByteArray& eventType, void* message, long* result ) override; +#else + bool nativeEventFilter( const QByteArray& eventType, void* message, qintptr* result ) override; +#endif protected: diff --git a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp index 95383be..4efeae9 100644 --- a/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp +++ b/app/SysTray-X/SysTray-X-app/nativeeventfilter-x11.cpp @@ -24,7 +24,6 @@ const int NativeEventFilterX11::m_valid_mods_mask = ShiftMask | ControlMask | Mo /* * Catch the key press */ - #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) bool NativeEventFilterX11::nativeEventFilter( const QByteArray& eventType, void* message, long* result ) #else diff --git a/app/SysTray-X/SysTray-X-app/windowctrl.h b/app/SysTray-X/SysTray-X-app/windowctrl.h index 6aeda44..f5549ab 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl.h +++ b/app/SysTray-X/SysTray-X-app/windowctrl.h @@ -5,7 +5,8 @@ * Qt includes */ #include - +#include +#include /* * Local includes @@ -23,7 +24,7 @@ * Predefines */ class QWindow; -class Preferences; +//class Preferences; /** * @brief The WindowCtrl class. From ff8482d0b5fdf9de96ba006b1d938268d136c0ef Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 15:48:11 +0200 Subject: [PATCH 29/80] Update rpm and arch packages for Qt6 --- dist/arch/gnome/PKGBUILD | 8 +++----- dist/arch/kde/PKGBUILD | 12 +++++------- dist/arch/minimal/PKGBUILD | 8 +++----- dist/rpm/gnome/systray-x-gnome.spec | 12 ++++++++++-- dist/rpm/kde/systray-x.spec | 16 +++++++++++++--- dist/rpm/minimal/systray-x-minimal.spec | 12 ++++++++++-- 6 files changed, 44 insertions(+), 24 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index f44fcc4..d36a745 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -9,9 +9,8 @@ arch=(x86_64) url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( - 'qt5-base' - 'qt5-x11extras' - 'qt5-wayland' + 'qt6-base' + 'qt6-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' 'thunderbird<121' @@ -21,8 +20,7 @@ makedepends=( 'unzip' 'zip' 'libx11' - 'qt5-base' - 'qt5-x11extras' + 'qt6-base' ) provides=( 'systray-x' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index ef94b0a..de88b4f 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -9,10 +9,9 @@ arch=(x86_64) url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( - 'qt5-base' - 'qt5-x11extras' - 'qt5-wayland' - 'knotifications5' + 'qt6-base' + 'qt6-wayland' + 'kf6-knotifications' 'thunderbird>=91' 'thunderbird<121' ) @@ -21,9 +20,8 @@ makedepends=( 'unzip' 'zip' 'libx11' - 'qt5-base' - 'qt5-x11extras' - 'knotifications5' + 'qt6-base' + 'kf6-knotifications' ) provides=( 'systray-x' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 78a2bba..9ac930f 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -9,9 +9,8 @@ arch=(x86_64) url=https://github.com/Ximi1970/systray-x license=(MPL-2.0) depends=( - 'qt5-base' - 'qt5-x11extras' - 'qt5-wayland' + 'qt6-base' + 'qt6-wayland' 'thunderbird>=91' 'thunderbird<121' ) @@ -20,8 +19,7 @@ makedepends=( 'unzip' 'zip' 'libx11' - 'qt5-base' - 'qt5-x11extras' + 'qt6-base' ) provides=( 'systray-x' diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index 5d82cf8..c821123 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -26,17 +26,25 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip +%if 0%{?suse_version} > 1600 +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Widgets) +%else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: qt5-qtx11extras-devel +%else +BuildRequires: libqt5-qtx11extras-devel +%endif +%endif +BuildRequires: pkgconfig(x11) +%if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 Requires: thunderbird < 121 %else -BuildRequires: libqt5-qtx11extras-devel Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index 391f8c4..a03e1b9 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -26,21 +26,31 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip +%if 0%{?suse_version} > 1600 +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Widgets) +BuildRequires: kf6-knotifications-devel +Requires: libKF6Notifications6 +%else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: qt5-qtx11extras-devel BuildRequires: kf5-knotifications-devel Requires: kf5-knotifications -Requires: thunderbird >= 91 -Requires: thunderbird < 121 %else BuildRequires: libqt5-qtx11extras-devel BuildRequires: knotifications-devel Requires: libKF5Notifications5 +%endif +%endif +BuildRequires: pkgconfig(x11) +%if 0%{?fedora_version} || 0%{?centos_version} +Requires: thunderbird >= 91 +Requires: thunderbird < 121 +%else Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index f5709f4..0308039 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -26,17 +26,25 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip +%if 0%{?suse_version} > 1600 +BuildRequires: pkgconfig(Qt6Core) +BuildRequires: pkgconfig(Qt6Widgets) +%else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: qt5-qtx11extras-devel +%else +BuildRequires: libqt5-qtx11extras-devel +%endif +%endif +BuildRequires: pkgconfig(x11) +%if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 Requires: thunderbird < 121 %else -BuildRequires: libqt5-qtx11extras-devel Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif From 712ec2c3b43da76935bfa8cbb1e0691aae2900d0 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 16:00:39 +0200 Subject: [PATCH 30/80] Update arch pacakge --- dist/arch/kde/PKGBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index de88b4f..f541d62 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -11,7 +11,7 @@ license=(MPL-2.0) depends=( 'qt6-base' 'qt6-wayland' - 'kf6-knotifications' + 'knotifications' 'thunderbird>=91' 'thunderbird<121' ) @@ -21,7 +21,7 @@ makedepends=( 'zip' 'libx11' 'qt6-base' - 'kf6-knotifications' + 'knotifications' ) provides=( 'systray-x' From b7da39e9cd3d5cbf3e88eb3e7146b48aec7f2bd3 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 16:25:33 +0200 Subject: [PATCH 31/80] Update packages --- dist/arch/kde/PKGBUILD | 4 ++-- dist/rpm/kde/systray-x.spec | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index f541d62..4b3fa8f 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -11,7 +11,7 @@ license=(MPL-2.0) depends=( 'qt6-base' 'qt6-wayland' - 'knotifications' + 'kstatusnotifieritem' 'thunderbird>=91' 'thunderbird<121' ) @@ -21,7 +21,7 @@ makedepends=( 'zip' 'libx11' 'qt6-base' - 'knotifications' + 'kstatusnotifieritem' ) provides=( 'systray-x' diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index a03e1b9..5ebaf53 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -29,7 +29,7 @@ BuildRequires: zip %if 0%{?suse_version} > 1600 BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) -BuildRequires: kf6-knotifications-devel +BuildRequires: kf6-kstatusnotifieritem-devel Requires: libKF6Notifications6 %else BuildRequires: pkgconfig(Qt5Core) From a754c5a59b652ade55336125041b2293ebbfc7b7 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 22:46:54 +0200 Subject: [PATCH 32/80] Update packages --- dist/deb-qt6/gnome/debian.changelog | 100 ++++++++++++++++++ dist/deb-qt6/gnome/debian.compat | 1 + dist/deb-qt6/gnome/debian.control | 22 ++++ dist/deb-qt6/gnome/debian.postinst | 86 +++++++++++++++ dist/deb-qt6/gnome/debian.rules | 117 +++++++++++++++++++++ dist/deb-qt6/gnome/systray-x-gnome.dsc | 7 ++ dist/deb-qt6/kde/debian.changelog | 100 ++++++++++++++++++ dist/deb-qt6/kde/debian.compat | 1 + dist/deb-qt6/kde/debian.control | 22 ++++ dist/deb-qt6/kde/debian.rules | 117 +++++++++++++++++++++ dist/deb-qt6/kde/systray-x.dsc | 7 ++ dist/deb-qt6/minimal/debian.changelog | 100 ++++++++++++++++++ dist/deb-qt6/minimal/debian.compat | 1 + dist/deb-qt6/minimal/debian.control | 22 ++++ dist/deb-qt6/minimal/debian.rules | 117 +++++++++++++++++++++ dist/deb-qt6/minimal/systray-x-minimal.dsc | 7 ++ dist/deb/gnome/debian.changelog | 6 ++ dist/deb/gnome/systray-x-gnome.dsc | 2 +- dist/deb/kde/debian.changelog | 6 ++ dist/deb/kde/systray-x.dsc | 2 +- dist/deb/minimal/debian.changelog | 6 ++ dist/deb/minimal/systray-x-minimal.dsc | 2 +- dist/rpm/gnome/systray-x-gnome.changes | 7 ++ dist/rpm/kde/systray-x.changes | 7 ++ dist/rpm/minimal/systray-x-minimal.changes | 7 ++ 25 files changed, 869 insertions(+), 3 deletions(-) create mode 100644 dist/deb-qt6/gnome/debian.changelog create mode 100644 dist/deb-qt6/gnome/debian.compat create mode 100644 dist/deb-qt6/gnome/debian.control create mode 100644 dist/deb-qt6/gnome/debian.postinst create mode 100644 dist/deb-qt6/gnome/debian.rules create mode 100644 dist/deb-qt6/gnome/systray-x-gnome.dsc create mode 100644 dist/deb-qt6/kde/debian.changelog create mode 100644 dist/deb-qt6/kde/debian.compat create mode 100644 dist/deb-qt6/kde/debian.control create mode 100644 dist/deb-qt6/kde/debian.rules create mode 100644 dist/deb-qt6/kde/systray-x.dsc create mode 100644 dist/deb-qt6/minimal/debian.changelog create mode 100644 dist/deb-qt6/minimal/debian.compat create mode 100644 dist/deb-qt6/minimal/debian.control create mode 100644 dist/deb-qt6/minimal/debian.rules create mode 100644 dist/deb-qt6/minimal/systray-x-minimal.dsc diff --git a/dist/deb-qt6/gnome/debian.changelog b/dist/deb-qt6/gnome/debian.changelog new file mode 100644 index 0000000..2afa477 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.changelog @@ -0,0 +1,100 @@ +systray-x-gnome (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + +systray-x-gnome (0.9.8-1) unstable; urgency=low + + * Update to 0.9.8 + + - Fixed / refactored multi window handling + - Added an option to add a shortcut key for show / hide + - Bugfixes + +systray-x-gnome (0.9.7-0) unstable; urgency=low + + * Update to 0.9.7 + + - Added option for new TB115 mail counting (slow with new mails enabled) + - Bugfixes + +systray-x-gnome (0.9.6-0) unstable; urgency=low + + * Update to 0.9.6 + + - Added option to show a new mail indicator or icon shading + - Added option to launch an app on start and close + - Refactored windows state handling + - Refactored mail counting + - Bugfixes + +systray-x-gnome (0.9.5-0) unstable; urgency=low + + * Update to 0.9.5 + + - Bugfixes + +systray-x-gnome (0.9.4-0) unstable; urgency=low + + * Update to 0.9.4 + + - Separate minimize, close and icon action + - Use new icon for new TB version + +systray-x-gnome (0.9.3-0) unstable; urgency=low + + * Update to 0.9.3 + + - New TB version + +systray-x-gnome (0.9.2-0) unstable; urgency=low + + * Update to 0.9.2 + + - Bug fixes + +systray-x-gnome (0.9.1-0) unstable; urgency=low + + * Update to 0.9.1 + + - Bug fixes + +systray-x-gnome (0.9.0-0) unstable; urgency=low + + * Update to 0.9.0 + + - Update for TB 102 + - Bug fixes + +systray-x-gnome (0.8.0-0) unstable; urgency=low + + * Update to 0.8.0 + + - Refactor for TB 91 + +systray-x-gnome (0.5.0-0) unstable; urgency=low + + * Update to 0.5.0 + + - Added translations logic + - Languages: + - de + - en_US + - nl + - pt_BR (by PutinVladimir) + - ru_RU (by fabianski7) + + -- Maxime Rijnders Maxime Rijnders Sat, 07 Nov 2020 23:37:00 +0100 + +systray-x-gnome (0.4.0-0) unstable; urgency=low + + * Update to 0.4.0 + + -- Maxime Rijnders Maxime Rijnders Sat, 10 Oct 2020 14:10:00 +0100 + +systray-x-gnome (0.0.1-0) unstable; urgency=low + + * Initial Release + + -- Maxime Rijnders Maxime Rijnders Tue, 11 Feb 2020 19:05:19 +0100 diff --git a/dist/deb-qt6/gnome/debian.compat b/dist/deb-qt6/gnome/debian.compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.compat @@ -0,0 +1 @@ +10 diff --git a/dist/deb-qt6/gnome/debian.control b/dist/deb-qt6/gnome/debian.control new file mode 100644 index 0000000..d5723dc --- /dev/null +++ b/dist/deb-qt6/gnome/debian.control @@ -0,0 +1,22 @@ +Source: systray-x-gnome +Section: misc +Priority: optional +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird + +Package: systray-x-gnome +Architecture: any +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:121) +Description: SysTray-X is a system tray extension for Thunderbird (GNOME). + This version is optimized for the GNOME desktop. + The add-on uses the WebExtension API's to control an external system + dependent system tray application. + The add-on and system tray application can do: + * custom new mail icon + * display number of unread /new mails + * optional new mail indicator (icon or shading) + * run app on start or close + * show / hide Thunderbird (minimize) + * minimizing hides to tray + * minimize on startup + * minimize on close diff --git a/dist/deb-qt6/gnome/debian.postinst b/dist/deb-qt6/gnome/debian.postinst new file mode 100644 index 0000000..6718d73 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.postinst @@ -0,0 +1,86 @@ +#!/bin/sh + +# Source debconf library. +. /usr/share/debconf/confmodule + +# Fetching configuration from debconf +#db_get packagename/question1 +#ANSWER1=$RET + +PROF_DIR=/etc/dconf/profile +PROF_FILE=user + +if [ -f $PROF_DIR/$PROF_FILE ] ; then + # + # Edit user file + # + grep -q "user-db:user" $PROF_DIR/$PROF_FILE + if [ "$?" = "1" ] ; then + echo "user-db:user" >> $PROF_DIR/$PROF_FILE + fi + + grep -q "system-db:local" $PROF_DIR/$PROF_FILE + if [ "$?" = "1" ] ; then + echo "system-db:local" >> $PROF_DIR/$PROF_FILE + fi +else + # + # Generate user file + # + mkdir -p $PROF_DIR + cat >$PROF_DIR/$PROF_FILE < $CONF_DIR/$CONF_FILE + echo "# List all extensions that you want to have enabled for all users" >> $CONF_DIR/$CONF_FILE + echo "enabled-extensions=['${EXTENSION}']" >> $CONF_DIR/$CONF_FILE +fi + +which dconf > /dev/null 2>&1 +if [ "$?" = "0" ] ; then + dconf update +fi diff --git a/dist/deb-qt6/gnome/debian.rules b/dist/deb-qt6/gnome/debian.rules new file mode 100644 index 0000000..da0efd6 --- /dev/null +++ b/dist/deb-qt6/gnome/debian.rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +DEB_VENDOR := $(shell dpkg-vendor --query vendor) + +VERSION := $(shell cat dist/rpm/VERSION | grep VERSION | sed -e "s/VERSION=\(.*\)/\1/") + +VERSION_MAJOR := $(shell echo $(VERSION) | cut -d'.' -f1) +VERSION_MINOR := $(shell echo $(VERSION) | cut -d'.' -f2) +VERSION_PATCH := $(shell echo $(VERSION) | cut -d'.' -f3) + +BUILD_NUMBER := $(shell cat dist/rpm/VERSION | grep BUILD_NUMBER | sed -e "s/BUILD_NUMBER=\(.*\)/\1/") +GIT_HASH := $(shell cat dist/rpm/VERSION | grep GIT_HASH | sed -e "s/GIT_HASH=\(.*\)/\1/") +GIT_BRANCH := $(shell cat dist/rpm/VERSION | grep GIT_BRANCH | sed -e "s/GIT_BRANCH=\(.*\)/\1/") + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|/usr/bin/SysTray-X|' > SysTray_X.json + + QT_SELECT=5 make OPTIONS="DEFINES+=NO_KDE_INTEGRATION DEFINES+=NO_SHORTCUTS" EXT_VERSION="DEFINES+=EXT_VERSION DEFINES+=APP_VERSION_MAJOR=\\\\\\\\\\\\\\\"$(VERSION_MAJOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_MINOR=\\\\\\\\\\\\\\\"$(VERSION_MINOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_PATCH=\\\\\\\\\\\\\\\"$(VERSION_PATCH)\\\\\\\\\\\\\\\" DEFINES+=APP_BUILD=\\\\\\\\\\\\\\\"$(BUILD_NUMBER)\\\\\\\\\\\\\\\" DEFINES+=APP_GITHASH=\\\\\\\\\\\\\\\"$(GIT_HASH)\\\\\\\\\\\\\\\" DEFINES+=APP_GITBRANCH=\\\\\\\\\\\\\\\"$(GIT_BRANCH)\\\\\\\\\\\\\\\"" + + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + make clean || true + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package + # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/ + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/bin + cp -f SysTray-X /usr/src/packages/BUILD/debian/systray-x-gnome/usr/bin/SysTray-X + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/mozilla/native-messaging-hosts + cp -f SysTray_X.json /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json + +ifeq (Debian,$(DEB_VENDOR)) + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird/extensions + cd /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird/extensions ;\ + ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi +else + mkdir -p /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-gnome/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi +endif + + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary installing diff --git a/dist/deb-qt6/gnome/systray-x-gnome.dsc b/dist/deb-qt6/gnome/systray-x-gnome.dsc new file mode 100644 index 0000000..fac2071 --- /dev/null +++ b/dist/deb-qt6/gnome/systray-x-gnome.dsc @@ -0,0 +1,7 @@ +Format: 1.0 +Source: systray-x-gnome +Version: 0.9.9-1 +Binary: systray-x-gnome +Maintainer: Maxime Rijnders +Architecture: any +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird diff --git a/dist/deb-qt6/kde/debian.changelog b/dist/deb-qt6/kde/debian.changelog new file mode 100644 index 0000000..6e4de3c --- /dev/null +++ b/dist/deb-qt6/kde/debian.changelog @@ -0,0 +1,100 @@ +systray-x (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + +systray-x (0.9.8-1) unstable; urgency=low + + * Update to 0.9.8 + + - Fixed / refactored multi window handling + - Added an option to add a shortcut key for show / hide + - Bugfixes + +systray-x (0.9.7-0) unstable; urgency=low + + * Update to 0.9.7 + + - Added option for new TB115 mail counting (slow with new mails enabled) + - Bugfixes + +systray-x (0.9.6-0) unstable; urgency=low + + * Update to 0.9.6 + + - Added option to show a new mail indicator or icon shading + - Added option to launch an app on start and close + - Refactored windows state handling + - Refactored mail counting + - Bugfixes + +systray-x (0.9.5-0) unstable; urgency=low + + * Update to 0.9.5 + + - Bugfixes + +systray-x (0.9.4-0) unstable; urgency=low + + * Update to 0.9.4 + + - Separate minimize, close and icon action + - Use new icon for new TB version + +systray-x (0.9.3-0) unstable; urgency=low + + * Update to 0.9.3 + + - New TB version + +systray-x (0.9.2-0) unstable; urgency=low + + * Update to 0.9.2 + + - Bug fixes + +systray-x (0.9.1-0) unstable; urgency=low + + * Update to 0.9.1 + + - Bug fixes + +systray-x (0.9.0-0) unstable; urgency=low + + * Update to 0.9.0 + + - Update for TB 102 + - Bug fixes + +systray-x (0.8.0-0) unstable; urgency=low + + * Update to 0.8.0 + + - Refactor for TB 91 + +systray-x (0.5.0-0) unstable; urgency=low + + * Update to 0.5.0 + + - Added translations logic + - Languages: + - de + - en_US + - nl + - pt_BR (by PutinVladimir) + - ru_RU (by fabianski7) + + -- Maxime Rijnders Maxime Rijnders Sat, 07 Nov 2020 23:37:00 +0100 + +systray-x (0.4.0-0) unstable; urgency=low + + * Update to 0.4.0 + + -- Maxime Rijnders Maxime Rijnders Sat, 10 Oct 2020 14:10:00 +0100 + +systray-x (0.0.1-0) unstable; urgency=low + + * Initial Release + + -- Maxime Rijnders Maxime Rijnders Tue, 11 Feb 2020 19:05:19 +0100 diff --git a/dist/deb-qt6/kde/debian.compat b/dist/deb-qt6/kde/debian.compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/dist/deb-qt6/kde/debian.compat @@ -0,0 +1 @@ +10 diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control new file mode 100644 index 0000000..a18fbbf --- /dev/null +++ b/dist/deb-qt6/kde/debian.control @@ -0,0 +1,22 @@ +Source: systray-x +Section: misc +Priority: optional +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird + +Package: systray-x +Architecture: any +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:121) +Description: SysTray-X is a system tray extension for Thunderbird (KDE). + This version is optimized for the KDE desktop. + The add-on uses the WebExtension API's to control an external system + dependent system tray application. + The add-on and system tray application can do: + * custom new mail icon + * display number of unread /new mails + * optional new mail indicator (icon or shading) + * run app on start or close + * show / hide Thunderbird (minimize) + * minimizing hides to tray + * minimize on startup + * minimize on close diff --git a/dist/deb-qt6/kde/debian.rules b/dist/deb-qt6/kde/debian.rules new file mode 100644 index 0000000..ba3a3e3 --- /dev/null +++ b/dist/deb-qt6/kde/debian.rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +DEB_VENDOR := $(shell dpkg-vendor --query vendor) + +VERSION := $(shell cat dist/rpm/VERSION | grep VERSION | sed -e "s/VERSION=\(.*\)/\1/") + +VERSION_MAJOR := $(shell echo $(VERSION) | cut -d'.' -f1) +VERSION_MINOR := $(shell echo $(VERSION) | cut -d'.' -f2) +VERSION_PATCH := $(shell echo $(VERSION) | cut -d'.' -f3) + +BUILD_NUMBER := $(shell cat dist/rpm/VERSION | grep BUILD_NUMBER | sed -e "s/BUILD_NUMBER=\(.*\)/\1/") +GIT_HASH := $(shell cat dist/rpm/VERSION | grep GIT_HASH | sed -e "s/GIT_HASH=\(.*\)/\1/") +GIT_BRANCH := $(shell cat dist/rpm/VERSION | grep GIT_BRANCH | sed -e "s/GIT_BRANCH=\(.*\)/\1/") + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|/usr/bin/SysTray-X|' > SysTray_X.json + + QT_SELECT=5 make EXT_VERSION="DEFINES+=EXT_VERSION DEFINES+=APP_VERSION_MAJOR=\\\\\\\\\\\\\\\"$(VERSION_MAJOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_MINOR=\\\\\\\\\\\\\\\"$(VERSION_MINOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_PATCH=\\\\\\\\\\\\\\\"$(VERSION_PATCH)\\\\\\\\\\\\\\\" DEFINES+=APP_BUILD=\\\\\\\\\\\\\\\"$(BUILD_NUMBER)\\\\\\\\\\\\\\\" DEFINES+=APP_GITHASH=\\\\\\\\\\\\\\\"$(GIT_HASH)\\\\\\\\\\\\\\\" DEFINES+=APP_GITBRANCH=\\\\\\\\\\\\\\\"$(GIT_BRANCH)\\\\\\\\\\\\\\\"" + + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + make clean || true + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package + # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/ + + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/bin + cp -f SysTray-X /usr/src/packages/BUILD/debian/systray-x/usr/bin/SysTray-X + + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/mozilla/native-messaging-hosts + cp -f SysTray_X.json /usr/src/packages/BUILD/debian/systray-x/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json + +ifeq (Debian,$(DEB_VENDOR)) + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions + cd /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird/extensions ;\ + ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi +else + mkdir -p /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi +endif + + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary installing diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc new file mode 100644 index 0000000..7b4b37e --- /dev/null +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -0,0 +1,7 @@ +Format: 1.0 +Source: systray-x +Version: 0.9.9-1 +Binary: SysTray-X +Maintainer: Maxime Rijnders +Architecture: any +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird diff --git a/dist/deb-qt6/minimal/debian.changelog b/dist/deb-qt6/minimal/debian.changelog new file mode 100644 index 0000000..90ccf3f --- /dev/null +++ b/dist/deb-qt6/minimal/debian.changelog @@ -0,0 +1,100 @@ +systray-x-minimal (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + +systray-x-minimal (0.9.8-1) unstable; urgency=low + + * Update to 0.9.8 + + - Fixed / refactored multi window handling + - Added an option to add a shortcut key for show / hide + - Bugfixes + +systray-x-minimal (0.9.7-0) unstable; urgency=low + + * Update to 0.9.7 + + - Added option for new TB115 mail counting (slow with new mails enabled) + - Bugfixes + +systray-x-minimal (0.9.6-0) unstable; urgency=low + + * Update to 0.9.6 + + - Added option to show a new mail indicator or icon shading + - Added option to launch an app on start and close + - Refactored windows state handling + - Refactored mail counting + - Bugfixes + +systray-x-minimal (0.9.5-0) unstable; urgency=low + + * Update to 0.9.5 + + - Bugfixes + +systray-x-minimal (0.9.4-0) unstable; urgency=low + + * Update to 0.9.4 + + - Separate minimize, close and icon action + - Use new icon for new TB version + +systray-x-minimal (0.9.3-0) unstable; urgency=low + + * Update to 0.9.3 + + - New TB version + +systray-x-minimal (0.9.2-0) unstable; urgency=low + + * Update to 0.9.2 + + - Bug fixes + +systray-x-minimal (0.9.1-0) unstable; urgency=low + + * Update to 0.9.1 + + - Bug fixes + +systray-x-minimal (0.9.0-0) unstable; urgency=low + + * Update to 0.9.0 + + - Update for TB 102 + - Bug fixes + +systray-x-minimal (0.8.0-0) unstable; urgency=low + + * Update to 0.8.0 + + - Refactor for TB 91 + +systray-x-minimal (0.5.0-0) unstable; urgency=low + + * Update to 0.5.0 + + - Added translations logic + - Languages: + - de + - en_US + - nl + - pt_BR (by PutinVladimir) + - ru_RU (by fabianski7) + + -- Maxime Rijnders Maxime Rijnders Sat, 07 Nov 2020 23:37:00 +0100 + +systray-x-minimal (0.4.0-0) unstable; urgency=low + + * Update to 0.4.0 + + -- Maxime Rijnders Maxime Rijnders Sat, 10 Oct 2020 14:10:00 +0100 + +systray-x-minimal (0.0.1-0) unstable; urgency=low + + * Initial Release + + -- Maxime Rijnders Maxime Rijnders Tue, 11 Feb 2020 19:05:19 +0100 diff --git a/dist/deb-qt6/minimal/debian.compat b/dist/deb-qt6/minimal/debian.compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/dist/deb-qt6/minimal/debian.compat @@ -0,0 +1 @@ +10 diff --git a/dist/deb-qt6/minimal/debian.control b/dist/deb-qt6/minimal/debian.control new file mode 100644 index 0000000..e40da13 --- /dev/null +++ b/dist/deb-qt6/minimal/debian.control @@ -0,0 +1,22 @@ +Source: systray-x-minimal +Section: misc +Priority: optional +Maintainer: Maxime Rijnders +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird + +Package: systray-x-minimal +Architecture: any +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:121) +Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). + This version is for non-KDE and non-GNOME desktops. + The add-on uses the WebExtension API's to control an external system + dependent system tray application. + The add-on and system tray application can do: + * custom new mail icon + * display number of unread /new mails + * optional new mail indicator (icon or shading) + * run app on start or close + * show / hide Thunderbird (minimize) + * minimizing hides to tray + * minimize on startup + * minimize on close diff --git a/dist/deb-qt6/minimal/debian.rules b/dist/deb-qt6/minimal/debian.rules new file mode 100644 index 0000000..999aabf --- /dev/null +++ b/dist/deb-qt6/minimal/debian.rules @@ -0,0 +1,117 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +#export DH_COMPAT=4 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +DEB_VENDOR := $(shell dpkg-vendor --query vendor) + +VERSION := $(shell cat dist/rpm/VERSION | grep VERSION | sed -e "s/VERSION=\(.*\)/\1/") + +VERSION_MAJOR := $(shell echo $(VERSION) | cut -d'.' -f1) +VERSION_MINOR := $(shell echo $(VERSION) | cut -d'.' -f2) +VERSION_PATCH := $(shell echo $(VERSION) | cut -d'.' -f3) + +BUILD_NUMBER := $(shell cat dist/rpm/VERSION | grep BUILD_NUMBER | sed -e "s/BUILD_NUMBER=\(.*\)/\1/") +GIT_HASH := $(shell cat dist/rpm/VERSION | grep GIT_HASH | sed -e "s/GIT_HASH=\(.*\)/\1/") +GIT_BRANCH := $(shell cat dist/rpm/VERSION | grep GIT_BRANCH | sed -e "s/GIT_BRANCH=\(.*\)/\1/") + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|/usr/bin/SysTray-X|' > SysTray_X.json + + QT_SELECT=5 make OPTIONS="DEFINES+=NO_KDE_INTEGRATION" EXT_VERSION="DEFINES+=EXT_VERSION DEFINES+=APP_VERSION_MAJOR=\\\\\\\\\\\\\\\"$(VERSION_MAJOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_MINOR=\\\\\\\\\\\\\\\"$(VERSION_MINOR)\\\\\\\\\\\\\\\" DEFINES+=APP_VERSION_PATCH=\\\\\\\\\\\\\\\"$(VERSION_PATCH)\\\\\\\\\\\\\\\" DEFINES+=APP_BUILD=\\\\\\\\\\\\\\\"$(BUILD_NUMBER)\\\\\\\\\\\\\\\" DEFINES+=APP_GITHASH=\\\\\\\\\\\\\\\"$(GIT_HASH)\\\\\\\\\\\\\\\" DEFINES+=APP_GITBRANCH=\\\\\\\\\\\\\\\"$(GIT_BRANCH)\\\\\\\\\\\\\\\"" + + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + make clean || true + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package + # The DESTDIR Has To Be Exactly /usr/src/packages/BUILD/debian/ + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/bin + cp -f SysTray-X /usr/src/packages/BUILD/debian/systray-x-minimal/usr/bin/SysTray-X + + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/mozilla/native-messaging-hosts + cp -f SysTray_X.json /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/mozilla/native-messaging-hosts/SysTray_X.json + +ifeq (Debian,$(DEB_VENDOR)) + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird/extensions + cd /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird/extensions ;\ + ln -sf ../../thunderbird-addons/extensions/systray-x@Ximi1970.xpi systray-x@Ximi1970.xpi +else + mkdir -p /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions + cp -f systray-x@Ximi1970.xpi /usr/src/packages/BUILD/debian/systray-x-minimal/usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi +endif + + # --- end custom part for installing + +# Build architecture-independent files here. +binary-indep: build install + # We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary installing diff --git a/dist/deb-qt6/minimal/systray-x-minimal.dsc b/dist/deb-qt6/minimal/systray-x-minimal.dsc new file mode 100644 index 0000000..07c2d61 --- /dev/null +++ b/dist/deb-qt6/minimal/systray-x-minimal.dsc @@ -0,0 +1,7 @@ +Format: 1.0 +Source: systray-x-minimal +Version: 0.9.9-1 +Binary: systray-x-minimal +Maintainer: Maxime Rijnders +Architecture: any +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, thunderbird diff --git a/dist/deb/gnome/debian.changelog b/dist/deb/gnome/debian.changelog index 734f9f5..2afa477 100644 --- a/dist/deb/gnome/debian.changelog +++ b/dist/deb/gnome/debian.changelog @@ -1,3 +1,9 @@ +systray-x-gnome (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + systray-x-gnome (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/gnome/systray-x-gnome.dsc b/dist/deb/gnome/systray-x-gnome.dsc index 9294f7d..9af3a77 100644 --- a/dist/deb/gnome/systray-x-gnome.dsc +++ b/dist/deb/gnome/systray-x-gnome.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-gnome -Version: 0.9.8-1 +Version: 0.9.9-1 Binary: systray-x-gnome Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/kde/debian.changelog b/dist/deb/kde/debian.changelog index c870a3a..6e4de3c 100644 --- a/dist/deb/kde/debian.changelog +++ b/dist/deb/kde/debian.changelog @@ -1,3 +1,9 @@ +systray-x (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + systray-x (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/kde/systray-x.dsc b/dist/deb/kde/systray-x.dsc index 5bf2a4a..d58cfb2 100644 --- a/dist/deb/kde/systray-x.dsc +++ b/dist/deb/kde/systray-x.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x -Version: 0.9.8-1 +Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/minimal/debian.changelog b/dist/deb/minimal/debian.changelog index 26261f1..90ccf3f 100644 --- a/dist/deb/minimal/debian.changelog +++ b/dist/deb/minimal/debian.changelog @@ -1,3 +1,9 @@ +systray-x-minimal (0.9.9-1) unstable; urgency=low + + * Update to 0.9.9 + + - Qt 6 fixes + systray-x-minimal (0.9.8-1) unstable; urgency=low * Update to 0.9.8 diff --git a/dist/deb/minimal/systray-x-minimal.dsc b/dist/deb/minimal/systray-x-minimal.dsc index 44b1994..c946a85 100644 --- a/dist/deb/minimal/systray-x-minimal.dsc +++ b/dist/deb/minimal/systray-x-minimal.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-minimal -Version: 0.9.8-1 +Version: 0.9.9-1 Binary: systray-x-minimal Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/rpm/gnome/systray-x-gnome.changes b/dist/rpm/gnome/systray-x-gnome.changes index 6e7bd78..4e22911 100644 --- a/dist/rpm/gnome/systray-x-gnome.changes +++ b/dist/rpm/gnome/systray-x-gnome.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders + + * Update to 0.9.9 + + - Qt 6 fixes + ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders diff --git a/dist/rpm/kde/systray-x.changes b/dist/rpm/kde/systray-x.changes index 6e7bd78..4e22911 100644 --- a/dist/rpm/kde/systray-x.changes +++ b/dist/rpm/kde/systray-x.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders + + * Update to 0.9.9 + + - Qt 6 fixes + ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders diff --git a/dist/rpm/minimal/systray-x-minimal.changes b/dist/rpm/minimal/systray-x-minimal.changes index 6e7bd78..4e22911 100644 --- a/dist/rpm/minimal/systray-x-minimal.changes +++ b/dist/rpm/minimal/systray-x-minimal.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders + + * Update to 0.9.9 + + - Qt 6 fixes + ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders From 336aecc1f7788c1545308f835d814f4d8fd01c43 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 23:17:40 +0200 Subject: [PATCH 33/80] Update packages --- dist/deb-qt6/kde/debian.control | 2 +- dist/deb-qt6/kde/systray-x.dsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control index a18fbbf..97f4fa7 100644 --- a/dist/deb-qt6/kde/debian.control +++ b/dist/deb-qt6/kde/debian.control @@ -2,7 +2,7 @@ Source: systray-x Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird Package: systray-x Architecture: any diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc index 7b4b37e..c9bd280 100644 --- a/dist/deb-qt6/kde/systray-x.dsc +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -4,4 +4,4 @@ Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf5notifications-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird From d23e2f2e9a81ddd79a9af27eb61f6997a365b2e2 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 2 Apr 2024 23:32:09 +0200 Subject: [PATCH 34/80] Update packages --- dist/deb-qt6/kde/debian.control | 2 +- dist/deb-qt6/kde/systray-x.dsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control index 97f4fa7..9e01b40 100644 --- a/dist/deb-qt6/kde/debian.control +++ b/dist/deb-qt6/kde/debian.control @@ -2,7 +2,7 @@ Source: systray-x Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird Package: systray-x Architecture: any diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc index c9bd280..cca69b1 100644 --- a/dist/deb-qt6/kde/systray-x.dsc +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -4,4 +4,4 @@ Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, kf6-kstatusnotifieritem, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird From 281e4feaa1b2b6ed292b1bccdefce9f1fbef56d0 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 3 Apr 2024 09:08:59 +0200 Subject: [PATCH 35/80] Update package --- dist/rpm/kde/systray-x.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index 5ebaf53..04ec31b 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -26,10 +26,14 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip -%if 0%{?suse_version} > 1600 +%if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: kf6-kstatusnotifieritem-devel +%if 0%{?fedora_version} || 0%{?centos_version} +%else +Requires: kf6-knotifications +%endif Requires: libKF6Notifications6 %else BuildRequires: pkgconfig(Qt5Core) From 462f7e11196548beccdacbf59d646aee349c7dc9 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 3 Apr 2024 09:24:18 +0200 Subject: [PATCH 36/80] Fix date --- dist/rpm/gnome/systray-x-gnome.changes | 2 +- dist/rpm/kde/systray-x.changes | 2 +- dist/rpm/minimal/systray-x-minimal.changes | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/rpm/gnome/systray-x-gnome.changes b/dist/rpm/gnome/systray-x-gnome.changes index 4e22911..5fe5dc9 100644 --- a/dist/rpm/gnome/systray-x-gnome.changes +++ b/dist/rpm/gnome/systray-x-gnome.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders +Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 diff --git a/dist/rpm/kde/systray-x.changes b/dist/rpm/kde/systray-x.changes index 4e22911..5fe5dc9 100644 --- a/dist/rpm/kde/systray-x.changes +++ b/dist/rpm/kde/systray-x.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders +Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 diff --git a/dist/rpm/minimal/systray-x-minimal.changes b/dist/rpm/minimal/systray-x-minimal.changes index 4e22911..5fe5dc9 100644 --- a/dist/rpm/minimal/systray-x-minimal.changes +++ b/dist/rpm/minimal/systray-x-minimal.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2023 - Maxime Rijnders +Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 From ba0257d0eeddfef768be3bcb8635c17de04a60a9 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 3 Apr 2024 10:56:08 +0200 Subject: [PATCH 37/80] Update package --- dist/deb-qt6/kde/debian.control | 2 +- dist/deb-qt6/kde/systray-x.dsc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/deb-qt6/kde/debian.control b/dist/deb-qt6/kde/debian.control index 9e01b40..75b4510 100644 --- a/dist/deb-qt6/kde/debian.control +++ b/dist/deb-qt6/kde/debian.control @@ -2,7 +2,7 @@ Source: systray-x Section: misc Priority: optional Maintainer: Maxime Rijnders -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6notifications-dev, thunderbird Package: systray-x Architecture: any diff --git a/dist/deb-qt6/kde/systray-x.dsc b/dist/deb-qt6/kde/systray-x.dsc index cca69b1..3b1a603 100644 --- a/dist/deb-qt6/kde/systray-x.dsc +++ b/dist/deb-qt6/kde/systray-x.dsc @@ -4,4 +4,4 @@ Version: 0.9.9-1 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any -Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6coreaddons-dev, thunderbird +Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qmake6, qt6-base-dev, libkf6notifications-dev, thunderbird From cc1df924293382a6d0c0ab51f9c3427e96f1df74 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Thu, 4 Apr 2024 13:54:09 +0200 Subject: [PATCH 38/80] Fix merge --- dist/rpm/gnome/systray-x-gnome.spec | 18 +++++------------- dist/rpm/kde/systray-x.spec | 4 ++++ dist/rpm/minimal/systray-x-minimal.spec | 6 +++++- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index f2a679c..c63fef5 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -26,7 +26,7 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip -%if 0%{?suse_version} > 1600 +%if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) %else @@ -34,7 +34,6 @@ BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -<<<<<<< HEAD %if 0%{?fedora_version} || 0%{?centos_version} BuildRequires: qt5-qtx11extras-devel %else @@ -43,24 +42,17 @@ BuildRequires: libqt5-qtx11extras-devel %endif BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} -======= -%if 0%{?fedora_version} || 0%{?centos_version} -BuildRequires: qt5-qtx11extras-devel -%else -BuildRequires: libqt5-qtx11extras-devel -%endif -%endif -BuildRequires: pkgconfig(x11) -Requires: gnome-shell-extension-appindicator -%if 0%{?fedora_version} || 0%{?centos_version} ->>>>>>> 36dcfb0866b431f46dc130924de23b4acc7f866b Requires: thunderbird >= 91 Requires: thunderbird < 121 %else Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif +%if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 +Requires: libqt6-qtwayland +%else Requires: libqt5-qtwayland +%endif Requires: gnome-shell-extension-appindicator %description diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index 04ec31b..f978256 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -58,7 +58,11 @@ Requires: thunderbird < 121 Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif +%if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 +Requires: libqt6-qtwayland +%else Requires: libqt5-qtwayland +%endif %description SysTray-X is a system tray extension for Thunderbird. diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index 0308039..d599df9 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -26,7 +26,7 @@ Source0: %{name}-%{version}.tar.xz Source1: VERSION BuildRequires: unzip BuildRequires: zip -%if 0%{?suse_version} > 1600 +%if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) %else @@ -48,7 +48,11 @@ Requires: thunderbird < 121 Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif +%if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 +Requires: libqt6-qtwayland +%else Requires: libqt5-qtwayland +%endif %description SysTray-X is a system tray extension for Thunderbird. From ce722293e0343e0d80778093101b3e7681a30578 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Thu, 4 Apr 2024 18:38:01 +0200 Subject: [PATCH 39/80] Update packages --- dist/rpm/gnome/systray-x-gnome.spec | 14 +++++++++++--- dist/rpm/kde/systray-x.spec | 16 ++++++++++++---- dist/rpm/minimal/systray-x-minimal.spec | 10 +++++++++- 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index c63fef5..6eeebdc 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -34,14 +34,14 @@ BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -%if 0%{?fedora_version} || 0%{?centos_version} +%if 0%{?fedora_version} BuildRequires: qt5-qtx11extras-devel %else BuildRequires: libqt5-qtx11extras-devel %endif %endif BuildRequires: pkgconfig(x11) -%if 0%{?fedora_version} || 0%{?centos_version} +%if 0%{?fedora_version} Requires: thunderbird >= 91 Requires: thunderbird < 121 %else @@ -49,10 +49,18 @@ Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 -Requires: libqt6-qtwayland +%if 0%{?fedora_version} +Requires: qt6-qtwayland +%else +Requires: qt6-wayland +%endif +%else +%if 0%{?fedora_version} +Requires: qt5-qtwayland %else Requires: libqt5-qtwayland %endif +%endif Requires: gnome-shell-extension-appindicator %description diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index f978256..c809223 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -30,7 +30,7 @@ BuildRequires: zip BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: kf6-kstatusnotifieritem-devel -%if 0%{?fedora_version} || 0%{?centos_version} +%if 0%{?fedora_version} %else Requires: kf6-knotifications %endif @@ -40,7 +40,7 @@ BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5X11Extras) -%if 0%{?fedora_version} || 0%{?centos_version} +%if 0%{?fedora_version} BuildRequires: qt5-qtx11extras-devel BuildRequires: kf5-knotifications-devel Requires: kf5-knotifications @@ -51,7 +51,7 @@ Requires: libKF5Notifications5 %endif %endif BuildRequires: pkgconfig(x11) -%if 0%{?fedora_version} || 0%{?centos_version} +%if 0%{?fedora_version} Requires: thunderbird >= 91 Requires: thunderbird < 121 %else @@ -59,10 +59,18 @@ Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 -Requires: libqt6-qtwayland +%if 0%{?fedora_version} +Requires: qt6-qtwayland +%else +Requires: qt6-wayland +%endif +%else +%if 0%{?fedora_version} +Requires: qt5-qtwayland %else Requires: libqt5-qtwayland %endif +%endif %description SysTray-X is a system tray extension for Thunderbird. diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index d599df9..38c6801 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -49,10 +49,18 @@ Requires: MozillaThunderbird >= 91 Requires: MozillaThunderbird < 121 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 -Requires: libqt6-qtwayland +%if 0%{?fedora_version} +Requires: qt6-qtwayland +%else +Requires: qt6-wayland +%endif +%else +%if 0%{?fedora_version} +Requires: qt5-qtwayland %else Requires: libqt5-qtwayland %endif +%endif %description SysTray-X is a system tray extension for Thunderbird. From 2cb5a2e656b82f461e4135784fe172061bb28f14 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Thu, 4 Apr 2024 21:47:42 +0200 Subject: [PATCH 40/80] Cleanup --- app/SysTray-X/SysTray-X-app/windowctrl.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl.h b/app/SysTray-X/SysTray-X-app/windowctrl.h index f5549ab..b162eb9 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl.h +++ b/app/SysTray-X/SysTray-X-app/windowctrl.h @@ -24,7 +24,6 @@ * Predefines */ class QWindow; -//class Preferences; /** * @brief The WindowCtrl class. @@ -57,9 +56,6 @@ class WindowCtrl : public QObject signals: -// void signalShow(); -// void signalHide(); - void signalHideDefaultIconChange(bool hide ); public slots: From 3e0a0474f32b1b0f6e70f7cec1e56902ea68feda Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 16 Dec 2023 19:11:50 +0100 Subject: [PATCH 41/80] Fix folder handling for TB 121 --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/debian.control | 2 +- dist/deb/kde/debian.control | 2 +- dist/deb/minimal/debian.control | 2 +- dist/rpm/gnome/systray-x-gnome.spec | 4 +- dist/rpm/kde/systray-x.spec | 2 +- dist/rpm/minimal/systray-x-minimal.spec | 4 +- webext/background.html | 1 - webext/background.js | 160 +++--------- webext/js/defaults.js | 329 +++++++++++++++++++----- webext/js/folderTree.js | 124 --------- webext/js/options_accounts.js | 3 +- webext/js/windowEvent.js | 3 +- webext/manifest.json | 2 +- webext/options.js | 3 +- 17 files changed, 322 insertions(+), 325 deletions(-) delete mode 100644 webext/js/folderTree.js diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index d36a745..ad77f95 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' - 'thunderbird<121' + 'thunderbird<122' ) makedepends=( 'git' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 4b3fa8f..fcaf74a 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'kstatusnotifieritem' 'thunderbird>=91' - 'thunderbird<121' + 'thunderbird<122' ) makedepends=( 'git' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 9ac930f..013865c 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -12,7 +12,7 @@ depends=( 'qt6-base' 'qt6-wayland' 'thunderbird>=91' - 'thunderbird<121' + 'thunderbird<122' ) makedepends=( 'git' diff --git a/dist/deb/gnome/debian.control b/dist/deb/gnome/debian.control index c2a7b8f..9e70ee1 100644 --- a/dist/deb/gnome/debian.control +++ b/dist/deb/gnome/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-gnome Architecture: any -Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:121) +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:122) Description: SysTray-X is a system tray extension for Thunderbird (GNOME). This version is optimized for the GNOME desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/kde/debian.control b/dist/deb/kde/debian.control index c9c7700..f3742cd 100644 --- a/dist/deb/kde/debian.control +++ b/dist/deb/kde/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:121) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:122) Description: SysTray-X is a system tray extension for Thunderbird (KDE). This version is optimized for the KDE desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/minimal/debian.control b/dist/deb/minimal/debian.control index 6f21d17..df77b31 100644 --- a/dist/deb/minimal/debian.control +++ b/dist/deb/minimal/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-minimal Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:121) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:122) Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). This version is for non-KDE and non-GNOME desktops. The add-on uses the WebExtension API's to control an external system diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index 6eeebdc..c744c23 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 121 +Requires: thunderbird < 122 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 121 +Requires: MozillaThunderbird < 122 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index c809223..039e288 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -56,7 +56,7 @@ Requires: thunderbird >= 91 Requires: thunderbird < 121 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 121 +Requires: MozillaThunderbird < 122 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index 38c6801..38b8ce5 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 -Requires: thunderbird < 121 +Requires: thunderbird < 122 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 121 +Requires: MozillaThunderbird < 122 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/webext/background.html b/webext/background.html index 4c357a7..caf8b87 100644 --- a/webext/background.html +++ b/webext/background.html @@ -8,7 +8,6 @@ -

Background

Background HTML

diff --git a/webext/background.js b/webext/background.js index e35fc3a..3769445 100644 --- a/webext/background.js +++ b/webext/background.js @@ -34,7 +34,6 @@ SysTrayX.Info = { SysTrayX.Messaging = { startupDelayFinished: false, accounts: [], - folderTree: {}, countType: "0", showNewIndicator: "false", closeType: "1", @@ -102,17 +101,8 @@ SysTrayX.Messaging = { browser.accounts.onDeleted.addListener(SysTrayX.Messaging.accountDeleted); } - // Get all accounts - SysTrayX.Messaging.accounts = await browser.accounts.list(false); - - // Fill the sub folders using the folders API, they are not same... - for (let i = 0; i < SysTrayX.Messaging.accounts.length; ++i) { - const subFolders = await browser.folders.getSubFolders( - SysTrayX.Messaging.accounts[i], - true - ); - SysTrayX.Messaging.accounts[i].folders = subFolders; - } + // Get the accounts and subfolders + SysTrayX.Messaging.accounts = await browser.accounts.list(); console.debug("Accounts: " + JSON.stringify(SysTrayX.Messaging.accounts)); @@ -318,26 +308,46 @@ SysTrayX.Messaging = { // Count the initial unread messages for (const filter of SysTrayX.Messaging.filters) { - for (const path of filter.folders) { - const folder = { - accountId: filter.accountId, - path: path, - }; - + const accountId = filter.accountId; + for (const storedFolder of filter.folders) { + let path; + let folderParam; + if (typeof(storedFolder) === "string") { + // Filters pre TB 121 + path = storedFolder; + folderParam = { + accountId: accountId, + path: storedFolder, + }; + } else { + // Filters TB 121 + if (storedFolder.mailFolderId === undefined) { + // TB 121 filter setup but older TB + path = storedFolder.path; + folderParam = { + accountId: accountId, + path: path, + }; + } else { + path = storedFolder.path; + folderParam = storedFolder.mailFolderId; + } + } + let mailFolderInfo = {}; try { - mailFolderInfo = await browser.folders.getFolderInfo(folder); + mailFolderInfo = await browser.folders.getFolderInfo(folderParam); } catch (err) { console.debug("Filter error: " + err); console.debug("Filter error: " + JSON.stringify(folder)); } - + if (mailFolderInfo.unreadMessageCount !== undefined) { - if (SysTrayX.Messaging.unread[folder.accountId] === undefined) { - SysTrayX.Messaging.unread[folder.accountId] = {}; + if (SysTrayX.Messaging.unread[accountId] === undefined) { + SysTrayX.Messaging.unread[accountId] = {}; } - SysTrayX.Messaging.unread[folder.accountId][folder.path] = + SysTrayX.Messaging.unread[accountId][path] = mailFolderInfo.unreadMessageCount; } } @@ -472,110 +482,6 @@ SysTrayX.Messaging = { } }, - // - // Callback for folder changes - // - updateFilters: function (rootFolder, parentFolder, folder, added) { - const oldFolders = SysTrayX.Messaging.folderTree[rootFolder]; - const oldPaths = getFolderPaths(oldFolders); - - browser.accounts.list().then( - (accounts) => { - this.updateFiltersCallback( - rootFolder, - parentFolder, - folder, - added, - oldFolders, - oldPaths, - accounts - ); - }, - () => console.log("Failed to get the accounts") - ); - }, - - updateFiltersCallback: async function ( - rootFolder, - parentFolder, - folder, - added, - oldFolders, - oldPaths, - accounts - ) { - // Get new folder tree - const folderTree = getFolderTree(accounts, SysTrayX.Info.browserInfo); - const newFolders = folderTree[rootFolder]; - const newPaths = getFolderPaths(newFolders); - const changes = findFolderPathsDiff(oldPaths, newPaths).filter((change) => - change.endsWith(parentFolder + "/" + folder) - ); - - if (changes.length === 1 && added) { - // Folder has beeen added - - const addedFolder = changes[0]; - - // Is parent selected? - const parentAddedFolder = addedFolder.substring( - 0, - addedFolder.lastIndexOf("/") - ); - - const parentSelected = findFolderPath( - SysTrayX.Messaging.filters, - parentAddedFolder - ); - - if (parentSelected) { - // Add the new folder to the filters - - const newFilter = { - ...parentSelected, - folder: { - ...parentSelected.folder, - path: changes[0], - name: changes[0].substring(changes[0].lastIndexOf("/") + 1), - }, - }; - - if ( - SysTrayX.Messaging.filters.filter( - (filter) => filter.folder.path === newFilter.folder.path - ).length === 0 - ) { - SysTrayX.Messaging.filters.push(newFilter); - - // Store the new filters - await storage().set({ - filters: SysTrayX.Messaging.filters, - }); - } - } - } else if (changes.length === 1 && !added) { - // Folder has been removed, remove also all children - - const filters = SysTrayX.Messaging.filters.filter( - (filter) => !filter.folder.path.startsWith(changes[0]) - ); - - if (filters.length !== SysTrayX.Messaging.filters.length) { - // Remove found filters (and children) from the filters - SysTrayX.Messaging.filters = filters; - - // Store the new filters - await storage().set({ - filters: SysTrayX.Messaging.filters, - }); - } - } - - // Store the new accounts and folder tree - SysTrayX.Messaging.accounts = accounts; - SysTrayX.Messaging.folderTree = folderTree; - }, - requestOptions: function () { SysTrayX.Link.postSysTrayXMessage({ optionsRequest: true }); }, diff --git a/webext/js/defaults.js b/webext/js/defaults.js index 7f0c3b0..91710c4 100644 --- a/webext/js/defaults.js +++ b/webext/js/defaults.js @@ -219,11 +219,44 @@ async function getIcon() { } } + +// +// Find a path in the account folder tree +// +function findFolder(rootFolder, path) { + function traverse(folder) { + if (folder === undefined) { + return undefined; + } + + if (folder.path === path) { + return folder; + } + + if (folder.subFolders === undefined) { + return undefined; + } + + for (let sub of folder.subFolders) { + const found = traverse(sub); + if( found !== undefined ) { + return found; + } + } + + return undefined; + } + + const found = traverse(rootFolder); + + return found; +} + // // Get filters // async function getFilters() { - function resolve(result) { + async function resolve(result) { let filters = result.filters || undefined; if (filters === undefined || filters.length === 0) { @@ -234,19 +267,22 @@ async function getFilters() { filters = []; for (const account of SysTrayX.Messaging.accounts) { - const inbox = account.folders.filter( - (folder) => folder.type === "inbox" - ); + let inbox; + if (account.rootFolder !== undefined) { + inbox = account.rootFolder.subFolders.filter( + (folder) => folder.type === "inbox" + ); + } else { + inbox = account.folders.filter( + (folder) => folder.type === "inbox" + ); + } if (inbox.length > 0) { - let folder = {}; - - // console.debug("Folder 91+: " + JSON.stringify(inbox[0])); - filters.push({ accountId: inbox[0].accountId, version: SysTrayX.Info.version, - folders: [inbox[0].path], + folders: [{mailFolderId: inbox[0].id, path: inbox[0].path}], }); } } @@ -254,6 +290,101 @@ async function getFilters() { console.debug("Force new filters: " + JSON.stringify(filters)); } else { console.debug("Stored filters: " + JSON.stringify(filters)); + + if (filters[0].folders.length > 0) { + if (typeof(filters[0].folders[0]) === "string") { + + console.debug("Conversion needed"); + + // Convert the filter folder path list to an object + // containing at least the path and if available the mail folder id (TB 121 and newer) + + const newFilters = []; + for (const account of SysTrayX.Messaging.accounts) { + const filter = filters.filter( + (filter) => filter.accountId === account.id + ); + + console.debug("Found filters: " + filter.length); + console.debug("Found filter: " + JSON.stringify(filter)); + + if (filter.length === 1) { + let newFilter = { + accountId: filter[0].accountId, + version: SysTrayX.Info.version, + folders: [] + }; + + for (const path of filter[0].folders) { + const accountFolder = findFolder(account.rootFolder, path) + + if (accountFolder !== undefined) + { + newFilter.folders.push({mailFolderId: accountFolder.id, path: accountFolder.path}); + } + } + + newFilters.push(newFilter); + } + } + + filters = newFilters; + + console.debug("Force new filters: " + JSON.stringify(filters)); + + // Save the new filters + await storage().set({ + filters: filters, + }); + } else { + if (filters[0].folders[0].mailFolderId === undefined && + SysTrayX.Info.browserInfo.majorVersion >= 121) { + + console.debug("Update needed"); + + // Update filter folder object + // with the the mail folder id + + const newFilters = []; + for (const account of SysTrayX.Messaging.accounts) { + const filter = filters.filter( + (filter) => filter.accountId === account.id + ); + + console.debug("Found filters: " + filter.length); + console.debug("Found filter: " + JSON.stringify(filter)); + + if (filter.length === 1) { + let newFilter = { + accountId: filter[0].accountId, + version: SysTrayX.Info.version, + folders: [] + }; + + for (const folder of filter[0].folders) { + const accountFolder = findFolder(account.rootFolder, folder.path) + + if (accountFolder !== undefined) + { + newFilter.folders.push({mailFolderId: accountFolder.id, path: accountFolder.path}); + } + } + + newFilters.push(newFilter); + } + } + + filters = newFilters; + + console.debug("Force new filters: " + JSON.stringify(filters)); + + // Save the new filters + await storage().set({ + filters: filters, + }); + } + } + } } return filters; @@ -328,11 +459,23 @@ function isFolderInFilters(folder) { ); if (accountIndex !== -1) { - return ( - SysTrayX.Messaging.filters[accountIndex].folders.filter( - (path) => path === folder.path - ).length > 0 - ); + const folders = SysTrayX.Messaging.filters[accountIndex].folders; + + if (folders[0] === "string") { + // Filters pre TB 121 + return ( + folders.filter( + (path) => path === folder.path + ).length > 0 + ); + } else { + // Filters TB 121 + return ( + folders.map(f => f.path).filter( + (path) => path === folder.path + ).length > 0 + ); + } } else { return false; } @@ -347,11 +490,23 @@ function isParentFolderInFilters(folder) { ); if (accountIndex !== -1) { - return ( - SysTrayX.Messaging.filters[accountIndex].folders.filter( - (path) => path === parentPath - ).length > 0 - ); + const folders = SysTrayX.Messaging.filters[accountIndex].folders; + + if (folders[0] === "string") { + // Filters pre TB 121 + return ( + folders.filter( + (path) => path === parentPath + ).length > 0 + ); + } else { + // Filters TB 121 + return ( + folders.map(f => f.path).filter( + (path) => path === parentPath + ).length > 0 + ); + } } else { return false; } @@ -365,7 +520,14 @@ async function deleteFolderFromFilters(folder) { if (accountIndex !== -1) { const account = SysTrayX.Messaging.filters[accountIndex]; - account.folders = account.folders.filter((path) => path !== folder.path); + + if (account.folders[0] === "string" ) { + // Filters pre TB 121 + account.folders = account.folders.filter((path) => path !== folder.path); + } else { + // Filters TB 121 + account.folders = account.folders.filter((f) => f.path !== folder.path); + } // Store the new filters await storage().set({ @@ -391,7 +553,12 @@ async function addFolderToFilters(newFolder) { if (accountIndex !== -1) { const account = SysTrayX.Messaging.filters[accountIndex]; - account.folders.push(newFolder.path); + + if (account.folders[0] === "string" ) { + account.folders.push(newFolder.path); + } else { + account.folders.push({mailFolderId: newFolder.id, path: newFolder.path}); + } // Store the new filter await storage().set({ @@ -403,42 +570,65 @@ async function addFolderToFilters(newFolder) { // Collect unread mail const collectUnreadMail = async () => { for (const filter of SysTrayX.Messaging.filters) { - for (const path of filter.folders) { - const folder = { - accountId: filter.accountId, - path: path, - }; - + + const accountId = filter.accountId; + for (const storedFolder of filter.folders) { let mailFolderInfo = {}; - try { - mailFolderInfo = await browser.folders.getFolderInfo(folder); - } catch (err) { - //console.debug("Filter error: " + err); - //console.debug("Filter error: " + JSON.stringify(folder)); - // Get all accounts - SysTrayX.Messaging.accounts = await browser.accounts.list(false); + let path; + if (typeof(storedFolder) === "string") { + // Filters pre TB 121 + path = storedFolder; - // Check the filters for the accounts - SysTrayX.Messaging.accountFilterCheck(); + try { + mailFolderInfo = await browser.folders.getFolderInfo({ + accountId: accountId, + path: storedFolder, + }); + } catch (err) { + //console.debug("Filter error: " + err); + //console.debug("Filter error: " + JSON.stringify(folder)); + + // Get all accounts + SysTrayX.Messaging.accounts = await browser.accounts.list(); + + // Check the filters for the accounts + SysTrayX.Messaging.accountFilterCheck(); + } + } else { + // Filters TB 121 + path = storedFolder.path; + + try { + mailFolderInfo = await browser.folders.getFolderInfo(storedFolder.mailFolderId); + } catch (err) { + //console.debug("Filter error: " + err); + //console.debug("Filter error: " + JSON.stringify(folder)); + + // Get all accounts + SysTrayX.Messaging.accounts = await browser.accounts.list(); + + // Check the filters for the accounts + SysTrayX.Messaging.accountFilterCheck(); + } } if (mailFolderInfo.unreadMessageCount !== undefined) { - if (SysTrayX.Messaging.unread[folder.accountId] === undefined) { - SysTrayX.Messaging.unread[folder.accountId] = {}; + if (SysTrayX.Messaging.unread[accountId] === undefined) { + SysTrayX.Messaging.unread[accountId] = {}; } - if (SysTrayX.Messaging.new[folder.accountId] === undefined) { - SysTrayX.Messaging.new[folder.accountId] = {}; + if (SysTrayX.Messaging.new[accountId] === undefined) { + SysTrayX.Messaging.new[accountId] = {}; } if ( - SysTrayX.Messaging.new[folder.accountId][folder.path] === undefined + SysTrayX.Messaging.new[accountId][path] === undefined ) { - SysTrayX.Messaging.new[folder.accountId][folder.path] = []; + SysTrayX.Messaging.new[accountId][path] = []; } - SysTrayX.Messaging.unread[folder.accountId][folder.path] = + SysTrayX.Messaging.unread[accountId][path] = mailFolderInfo.unreadMessageCount; } } @@ -457,7 +647,16 @@ const sendMailCountPre115 = () => { let newCount = 0; SysTrayX.Messaging.filters.forEach((filter) => { const accountId = filter.accountId; - filter.folders.forEach((path) => { + filter.folders.forEach((storedFolder) => { + let path; + if (typeof(storedFolder) === "string") { + // Filters pre TB 121 + path = storedFolder; + } else { + // Filters TB 121 + path = storedFolder.path; + } + if (SysTrayX.Messaging.unread[accountId] !== undefined) { if (SysTrayX.Messaging.unread[accountId][path] !== undefined) { unreadCount = unreadCount + SysTrayX.Messaging.unread[accountId][path]; @@ -496,14 +695,21 @@ const sendMailCount = async () => { // Get both unread and new message count for (const filter of SysTrayX.Messaging.filters) { - for (const path of filter.folders) { - const folder = { - accountId: filter.accountId, - path: path, - }; + for (const storedFolder of filter.folders) { + let listParam; + if (typeof(storedFolder) === "string") { + // Filters pre TB 121 + listParam = { + accountId: filter.accountId, + path: storedFolder, + }; + } else { + // Filters TB 121 + listParam = storedFolder.mailFolderId; + } - async function* listMessages(folder) { - let page = await messenger.messages.list(folder); + async function* listMessages(listParam) { + let page = await messenger.messages.list(listParam); for (let message of page.messages) { yield message; } @@ -516,7 +722,7 @@ const sendMailCount = async () => { } } - let messages = listMessages(folder); + let messages = listMessages(listParam); for await (let message of messages) { if( message.new ) { @@ -535,11 +741,18 @@ const sendMailCount = async () => { // Only unread count for (const filter of SysTrayX.Messaging.filters) { - for (const path of filter.folders) { - const folder = { - accountId: filter.accountId, - path: path, - }; + for (const storedFolder of filter.folders) { + let folderParam; + if (typeof(storedFolder) === "string") { + // Filters pre TB 121 + folderParam = { + accountId: filter.accountId, + path: storedFolder, + }; + } else { + // Filters TB 121 + folderParam = storedFolder.mailFolderId; + } let mailFolderInfo = {}; try { @@ -549,7 +762,7 @@ const sendMailCount = async () => { //console.debug("Filter error: " + JSON.stringify(folder)); // Get all accounts - SysTrayX.Messaging.accounts = await browser.accounts.list(false); + SysTrayX.Messaging.accounts = await browser.accounts.list(); // Check the filters for the accounts SysTrayX.Messaging.accountFilterCheck(); diff --git a/webext/js/folderTree.js b/webext/js/folderTree.js deleted file mode 100644 index 676795a..0000000 --- a/webext/js/folderTree.js +++ /dev/null @@ -1,124 +0,0 @@ -// -// Create folder tree from accounts -// -function getFolderTree(mailAccounts, browserInfo) { - function traverse(accountName, path, folders) { - if (!folders) { - return; - } - for (let f of folders) { - f.accountName = accountName; - f.path = path + "/" + f.name; - traverse(accountName, path + "/" + f.name, f.subFolders); - } - } - - function createFolderTree(accountName, folders) { - traverse(accountName, "", folders); - return folders; - } - - let accounts = new Object(); - - for (let i = 0; i < mailAccounts.length; i++) { - if (false) { - console.debug("Accounts id: " + mailAccounts[i].id); - console.debug("Accounts name: " + mailAccounts[i].name); - console.debug("Accounts type: " + mailAccounts[i].type); - for (let j = 0; j < mailAccounts[i].folders.length; j++) { - console.debug( - "Accounts folder path: " + mailAccounts[i].folders[j].path - ); - console.debug( - "Accounts folder name: " + mailAccounts[i].folders[j].name - ); - console.debug( - "Accounts folder type: " + mailAccounts[i].folders[j].type - ); - } - } - - if (!accounts[mailAccounts[i].type]) { - accounts[mailAccounts[i].type] = []; - } - accounts[mailAccounts[i].type].push({ - id: mailAccounts[i].id, - name: mailAccounts[i].name, - folders: mailAccounts[i].folders, - }); - } - - /* - * Build tree - */ - let folderTree = {}; - for (let prop in accounts) { - if (accounts[prop]) { - for (let i = 0; i < accounts[prop].length; ++i) { - // Create a usable folder tree - const folders = createFolderTree( - accounts[prop][i].name, - accounts[prop][i].folders - ); - - // Store the tree - folderTree[accounts[prop][i].name] = folders; - } - } - } - - return folderTree; -} - -// -// Create a paths array from the folder tree -// -function getFolderPaths(folders) { - function traverse(folders) { - if (!folders) { - return; - } - for (let f of folders) { - paths.push(f.path); - traverse(f.subFolders); - } - } - - let paths = []; - traverse(folders); - - return paths; -} - -// -// Find the difference between two path arrays -// -function findFolderPathsDiff(paths1, paths2) { - let diff = []; - - paths1.forEach((path) => { - if (paths2.includes(path) === false) { - diff.push(path); - } - }); - - paths2.forEach((path) => { - if (paths1.includes(path) === false) { - diff.push(path); - } - }); - - return diff; -} - -// -// Is the path in the filter folder list? -// -function findFolderPath(filters, path) { - for (const filter of filters) { - if (filter.folder.path === path) { - return filter; - } - } - return undefined; -} diff --git a/webext/js/options_accounts.js b/webext/js/options_accounts.js index 818fa48..e26dccf 100644 --- a/webext/js/options_accounts.js +++ b/webext/js/options_accounts.js @@ -36,7 +36,7 @@ SysTrayX.Accounts = { } } - traverse("", folders); + traverse(folders); return folders; } @@ -150,6 +150,7 @@ SysTrayX.Accounts = { JSON.stringify({ accountName: element.accountName, accountId: element.accountId, + mailFolderId: element.id, type: element.type !== undefined ? element.type : "", path: element.path, name: element.originalName diff --git a/webext/js/windowEvent.js b/webext/js/windowEvent.js index 47c3de7..e2393a2 100644 --- a/webext/js/windowEvent.js +++ b/webext/js/windowEvent.js @@ -9,11 +9,12 @@ var { ExtensionCommon } = ChromeUtils.import("resource://gre/modules/ExtensionCommon.jsm"); // You probably already know what this does. - var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); +// var { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm"); // A helpful class for listening to windows opening and closing. var { ExtensionSupport } = ChromeUtils.import("resource:///modules/ExtensionSupport.jsm"); + /** * This object is just what we're using to listen for toolbar clicks. The implementation * isn't what this example is about, but you might be interested as it's a common pattern. diff --git a/webext/manifest.json b/webext/manifest.json index dfe72f3..e52efb0 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -10,7 +10,7 @@ "gecko": { "id": "systray-x@Ximi1970", "strict_min_version": "91.0", - "strict_max_version": "120.*" + "strict_max_version": "121.*" } }, diff --git a/webext/options.js b/webext/options.js index cbbee7f..3852e18 100644 --- a/webext/options.js +++ b/webext/options.js @@ -38,7 +38,8 @@ SysTrayX.SaveOptions = { folders.forEach((folder) => { const mailFolderExt = JSON.parse(folder.value); - filters[filters.length - 1].folders.push(mailFolderExt.path); + filters[filters.length - 1].folders.push({ + mailFolderId: mailFolderExt.mailFolderId, path: mailFolderExt.path}); }); } } From bc08ee005132ac0beb8c245f1137610a575ad5af Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 16 Dec 2023 21:05:24 +0100 Subject: [PATCH 42/80] Add new message count using the api --- webext/js/defaults.js | 91 +++++++++++++++++++++++++++++-------------- 1 file changed, 61 insertions(+), 30 deletions(-) diff --git a/webext/js/defaults.js b/webext/js/defaults.js index 91710c4..5e49cac 100644 --- a/webext/js/defaults.js +++ b/webext/js/defaults.js @@ -694,44 +694,75 @@ const sendMailCount = async () => { // Get both unread and new message count - for (const filter of SysTrayX.Messaging.filters) { - for (const storedFolder of filter.folders) { - let listParam; - if (typeof(storedFolder) === "string") { - // Filters pre TB 121 - listParam = { - accountId: filter.accountId, - path: storedFolder, - }; - } else { - // Filters TB 121 - listParam = storedFolder.mailFolderId; - } - - async function* listMessages(listParam) { - let page = await messenger.messages.list(listParam); - for (let message of page.messages) { - yield message; + if (SysTrayX.Info.browserInfo.majorVersion < 121) { + for (const filter of SysTrayX.Messaging.filters) { + for (const storedFolder of filter.folders) { + let listParam; + if (typeof(storedFolder) === "string") { + // Filters pre TB 121 + listParam = { + accountId: filter.accountId, + path: storedFolder, + }; + } else { + // Filters TB 121 + listParam = storedFolder.mailFolderId; } - - while (page.id) { - page = await messenger.messages.continueList(page.id); + + async function* listMessages(listParam) { + let page = await messenger.messages.list(listParam); for (let message of page.messages) { yield message; } + + while (page.id) { + page = await messenger.messages.continueList(page.id); + for (let message of page.messages) { + yield message; + } + } + } + + let messages = listMessages(listParam); + for await (let message of messages) { + if( message.new ) + { + newCount = newCount + 1; + } + + if( !message.read ) + { + unreadCount = unreadCount + 1; + } } } - - let messages = listMessages(listParam); - for await (let message of messages) { - if( message.new ) - { - newCount = newCount + 1; + } + } else { + + // Unread and new count TB 121 and newer + + for (const filter of SysTrayX.Messaging.filters) { + for (const folder of filter.folders) { + let mailFolderInfo = {}; + try { + mailFolderInfo = await browser.folders.getFolderInfo(folder.mailFolderId); + } catch (err) { + //console.debug("Filter error: " + err); + //console.debug("Filter error: " + JSON.stringify(folder)); + + // Get all accounts + SysTrayX.Messaging.accounts = await browser.accounts.list(); + + // Check the filters for the accounts + SysTrayX.Messaging.accountFilterCheck(); } - if( !message.read ) - { - unreadCount = unreadCount + 1; + if (mailFolderInfo.unreadMessageCount !== undefined) { + unreadCount = unreadCount + mailFolderInfo.unreadMessageCount; + } + + if (mailFolderInfo.newMessageCount !== undefined) { + newCount = newCount + mailFolderInfo.newMessageCount; } } } From 03d80513e57f5ea621100b002898a07a2bdac90f Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 25 Dec 2023 11:12:24 +0100 Subject: [PATCH 43/80] Update TB version to 122 --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/debian.control | 2 +- dist/deb/kde/debian.control | 2 +- dist/deb/minimal/debian.control | 2 +- dist/rpm/gnome/systray-x-gnome.spec | 4 ++-- dist/rpm/kde/systray-x.spec | 4 ++-- dist/rpm/minimal/systray-x-minimal.spec | 4 ++-- webext/manifest.json | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index ad77f95..7aaab74 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' - 'thunderbird<122' + 'thunderbird<123' ) makedepends=( 'git' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index fcaf74a..b927bc9 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'kstatusnotifieritem' 'thunderbird>=91' - 'thunderbird<122' + 'thunderbird<123' ) makedepends=( 'git' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 013865c..73fd37c 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -12,7 +12,7 @@ depends=( 'qt6-base' 'qt6-wayland' 'thunderbird>=91' - 'thunderbird<122' + 'thunderbird<123' ) makedepends=( 'git' diff --git a/dist/deb/gnome/debian.control b/dist/deb/gnome/debian.control index 9e70ee1..777f787 100644 --- a/dist/deb/gnome/debian.control +++ b/dist/deb/gnome/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-gnome Architecture: any -Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:122) +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:123) Description: SysTray-X is a system tray extension for Thunderbird (GNOME). This version is optimized for the GNOME desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/kde/debian.control b/dist/deb/kde/debian.control index f3742cd..d4cf28f 100644 --- a/dist/deb/kde/debian.control +++ b/dist/deb/kde/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:122) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:123) Description: SysTray-X is a system tray extension for Thunderbird (KDE). This version is optimized for the KDE desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/minimal/debian.control b/dist/deb/minimal/debian.control index df77b31..1702382 100644 --- a/dist/deb/minimal/debian.control +++ b/dist/deb/minimal/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-minimal Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:122) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:123) Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). This version is for non-KDE and non-GNOME desktops. The add-on uses the WebExtension API's to control an external system diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index c744c23..38112b8 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 122 +Requires: thunderbird < 123 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 122 +Requires: MozillaThunderbird < 123 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index 039e288..e711260 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -53,10 +53,10 @@ Requires: libKF5Notifications5 BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 121 +Requires: thunderbird < 123 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 122 +Requires: MozillaThunderbird < 123 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index 38b8ce5..7dd9773 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 -Requires: thunderbird < 122 +Requires: thunderbird < 123 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 122 +Requires: MozillaThunderbird < 123 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/webext/manifest.json b/webext/manifest.json index e52efb0..aed0450 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -10,7 +10,7 @@ "gecko": { "id": "systray-x@Ximi1970", "strict_min_version": "91.0", - "strict_max_version": "121.*" + "strict_max_version": "122.*" } }, From ba77f1d82a97738310b626877229b6a612ceeb83 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Thu, 25 Jan 2024 11:14:56 +0100 Subject: [PATCH 44/80] Update TB version --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/debian.control | 2 +- dist/deb/kde/debian.control | 2 +- dist/deb/minimal/debian.control | 2 +- dist/rpm/gnome/systray-x-gnome.spec | 4 ++-- dist/rpm/kde/systray-x.spec | 4 ++-- dist/rpm/minimal/systray-x-minimal.spec | 4 ++-- webext/manifest.json | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index 7aaab74..fc9e82c 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' - 'thunderbird<123' + 'thunderbird<124' ) makedepends=( 'git' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index b927bc9..3856028 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'kstatusnotifieritem' 'thunderbird>=91' - 'thunderbird<123' + 'thunderbird<124' ) makedepends=( 'git' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 73fd37c..d22a4c8 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -12,7 +12,7 @@ depends=( 'qt6-base' 'qt6-wayland' 'thunderbird>=91' - 'thunderbird<123' + 'thunderbird<124' ) makedepends=( 'git' diff --git a/dist/deb/gnome/debian.control b/dist/deb/gnome/debian.control index 777f787..b71eea7 100644 --- a/dist/deb/gnome/debian.control +++ b/dist/deb/gnome/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-gnome Architecture: any -Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:123) +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:124) Description: SysTray-X is a system tray extension for Thunderbird (GNOME). This version is optimized for the GNOME desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/kde/debian.control b/dist/deb/kde/debian.control index d4cf28f..fe78cbb 100644 --- a/dist/deb/kde/debian.control +++ b/dist/deb/kde/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:123) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:124) Description: SysTray-X is a system tray extension for Thunderbird (KDE). This version is optimized for the KDE desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/minimal/debian.control b/dist/deb/minimal/debian.control index 1702382..a6711cf 100644 --- a/dist/deb/minimal/debian.control +++ b/dist/deb/minimal/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-minimal Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:123) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:124) Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). This version is for non-KDE and non-GNOME desktops. The add-on uses the WebExtension API's to control an external system diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index 38112b8..b4301e0 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 123 +Requires: thunderbird < 124 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 123 +Requires: MozillaThunderbird < 124 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index e711260..7a0e0de 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -53,10 +53,10 @@ Requires: libKF5Notifications5 BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 123 +Requires: thunderbird < 124 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 123 +Requires: MozillaThunderbird < 124 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index 7dd9773..bc52529 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 -Requires: thunderbird < 123 +Requires: thunderbird < 124 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 123 +Requires: MozillaThunderbird < 124 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/webext/manifest.json b/webext/manifest.json index aed0450..aff39f5 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -10,7 +10,7 @@ "gecko": { "id": "systray-x@Ximi1970", "strict_min_version": "91.0", - "strict_max_version": "122.*" + "strict_max_version": "123.*" } }, From f0c207e3b54d3deede830b04c627195539b57c00 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 24 Feb 2024 10:54:38 +0100 Subject: [PATCH 45/80] Update TB version --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/debian.control | 2 +- dist/deb/kde/debian.control | 2 +- dist/deb/minimal/debian.control | 2 +- dist/rpm/gnome/systray-x-gnome.spec | 4 ++-- dist/rpm/kde/systray-x.spec | 4 ++-- dist/rpm/minimal/systray-x-minimal.spec | 4 ++-- webext/manifest.json | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index fc9e82c..ae347cb 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' - 'thunderbird<124' + 'thunderbird<125' ) makedepends=( 'git' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 3856028..056caec 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'kstatusnotifieritem' 'thunderbird>=91' - 'thunderbird<124' + 'thunderbird<125' ) makedepends=( 'git' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index d22a4c8..26c57e3 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -12,7 +12,7 @@ depends=( 'qt6-base' 'qt6-wayland' 'thunderbird>=91' - 'thunderbird<124' + 'thunderbird<125' ) makedepends=( 'git' diff --git a/dist/deb/gnome/debian.control b/dist/deb/gnome/debian.control index b71eea7..ba0bf7b 100644 --- a/dist/deb/gnome/debian.control +++ b/dist/deb/gnome/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-gnome Architecture: any -Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:124) +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:125) Description: SysTray-X is a system tray extension for Thunderbird (GNOME). This version is optimized for the GNOME desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/kde/debian.control b/dist/deb/kde/debian.control index fe78cbb..8cdbaa6 100644 --- a/dist/deb/kde/debian.control +++ b/dist/deb/kde/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:124) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:125) Description: SysTray-X is a system tray extension for Thunderbird (KDE). This version is optimized for the KDE desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/minimal/debian.control b/dist/deb/minimal/debian.control index a6711cf..fdfc678 100644 --- a/dist/deb/minimal/debian.control +++ b/dist/deb/minimal/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-minimal Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:124) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:125) Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). This version is for non-KDE and non-GNOME desktops. The add-on uses the WebExtension API's to control an external system diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index b4301e0..5d856fe 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 124 +Requires: thunderbird < 125 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 124 +Requires: MozillaThunderbird < 125 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index 7a0e0de..8654bc1 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -53,10 +53,10 @@ Requires: libKF5Notifications5 BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 124 +Requires: thunderbird < 125 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 124 +Requires: MozillaThunderbird < 125 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index bc52529..90b511b 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 -Requires: thunderbird < 124 +Requires: thunderbird < 125 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 124 +Requires: MozillaThunderbird < 125 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/webext/manifest.json b/webext/manifest.json index aff39f5..088c604 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -10,7 +10,7 @@ "gecko": { "id": "systray-x@Ximi1970", "strict_min_version": "91.0", - "strict_max_version": "123.*" + "strict_max_version": "124.*" } }, From 8fbab8a6ed6a6f071944eb8d909d194e57c69c44 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 15:57:05 +0200 Subject: [PATCH 46/80] Update ignores --- .gitignore | 17 +++++++++++------ app/.gitignore | 3 ++- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 2ecfc52..2409c7a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,11 @@ -/*.xpi -/SysTray-X -/app/SysTray-X/.qmake.stash -/app/SysTray-X/SysTray-X.pro.user.* -/bin -/bin-* +*.xpi +SysTray-X +app/SysTray-X/.qmake.stash +app/SysTray-X/SysTray-X.pro.user.* +bin +bins +bin-* +tmp +Test +Old +Doc diff --git a/app/.gitignore b/app/.gitignore index 30d388a..ac67559 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -1 +1,2 @@ -build* \ No newline at end of file +build* +Test From 8bb226ac18333ca37da1e7ada5eb64dc75c56070 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 31 Mar 2024 16:20:31 +0200 Subject: [PATCH 47/80] Update TB to 125 --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/debian.control | 2 +- dist/deb/kde/debian.control | 2 +- dist/deb/minimal/debian.control | 2 +- dist/rpm/gnome/systray-x-gnome.spec | 4 ++-- dist/rpm/kde/systray-x.spec | 4 ++-- dist/rpm/minimal/systray-x-minimal.spec | 4 ++-- webext/manifest.json | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index ae347cb..522fefe 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' - 'thunderbird<125' + 'thunderbird<126' ) makedepends=( 'git' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 056caec..16aa9ce 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'kstatusnotifieritem' 'thunderbird>=91' - 'thunderbird<125' + 'thunderbird<126' ) makedepends=( 'git' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 26c57e3..d8c82a3 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -12,7 +12,7 @@ depends=( 'qt6-base' 'qt6-wayland' 'thunderbird>=91' - 'thunderbird<125' + 'thunderbird<126' ) makedepends=( 'git' diff --git a/dist/deb/gnome/debian.control b/dist/deb/gnome/debian.control index ba0bf7b..3b97ada 100644 --- a/dist/deb/gnome/debian.control +++ b/dist/deb/gnome/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-gnome Architecture: any -Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:125) +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:126) Description: SysTray-X is a system tray extension for Thunderbird (GNOME). This version is optimized for the GNOME desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/kde/debian.control b/dist/deb/kde/debian.control index 8cdbaa6..31a9a8c 100644 --- a/dist/deb/kde/debian.control +++ b/dist/deb/kde/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:125) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:126) Description: SysTray-X is a system tray extension for Thunderbird (KDE). This version is optimized for the KDE desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/minimal/debian.control b/dist/deb/minimal/debian.control index fdfc678..30cb79b 100644 --- a/dist/deb/minimal/debian.control +++ b/dist/deb/minimal/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-minimal Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:125) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:126) Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). This version is for non-KDE and non-GNOME desktops. The add-on uses the WebExtension API's to control an external system diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index 5d856fe..ed475b1 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 125 +Requires: thunderbird < 126 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 125 +Requires: MozillaThunderbird < 126 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index 8654bc1..c3510b9 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -53,10 +53,10 @@ Requires: libKF5Notifications5 BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 125 +Requires: thunderbird < 126 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 125 +Requires: MozillaThunderbird < 126 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index 90b511b..2277226 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 -Requires: thunderbird < 125 +Requires: thunderbird < 126 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 125 +Requires: MozillaThunderbird < 126 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/webext/manifest.json b/webext/manifest.json index 088c604..e1e0e3d 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -10,7 +10,7 @@ "gecko": { "id": "systray-x@Ximi1970", "strict_min_version": "91.0", - "strict_max_version": "124.*" + "strict_max_version": "125.*" } }, From e3d66e29aba689e6afdc428b1a0a678cff0f4eec Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Fri, 5 Apr 2024 14:06:09 +0200 Subject: [PATCH 48/80] Fix deprecated methods --- webext/js/options_accounts.js | 36 ++++++++++++++++++++++++----------- webext/options.js | 15 ++++++++++++--- 2 files changed, 37 insertions(+), 14 deletions(-) diff --git a/webext/js/options_accounts.js b/webext/js/options_accounts.js index e26dccf..ee55539 100644 --- a/webext/js/options_accounts.js +++ b/webext/js/options_accounts.js @@ -8,20 +8,34 @@ SysTrayX.Accounts = { }, getAccounts: async function () { - let accounts; + if (SysTrayX.Info.browserInfo.majorVersion < 121) { + let accounts; - accounts = await browser.accounts.list(false); + accounts = await browser.accounts.list(false); - // Fill the sub folders using the folders API, they are not same... - for (let i = 0; i < accounts.length; ++i) { - const subFolders = await browser.folders.getSubFolders( - accounts[i], - true - ); - accounts[i].folders = subFolders; + // Fill the sub folders using the folders API, they are not same... + for (let i = 0; i < accounts.length; ++i) { + const subFolders = await browser.folders.getSubFolders( + accounts[i], + true + ); + accounts[i].folders = subFolders; + } + + return accounts; + } else { + let accounts = await browser.accounts.list(); + + for (let i = 0; i < accounts.length; ++i) { + const subFolders = await browser.folders.getSubFolders( + accounts[i].id, + true + ); + accounts[i].folders = subFolders; + } + + return accounts; } - - return accounts; }, buildTree: function (mailAccount) { diff --git a/webext/options.js b/webext/options.js index 3852e18..f1e4923 100644 --- a/webext/options.js +++ b/webext/options.js @@ -1233,7 +1233,16 @@ SysTrayX.RestoreOptions = { ) ); - filter.folders.forEach((path) => { + filter.folders.forEach((storedFolder) => { + + if (typeof(storedFolder) === "string") { + // Filters pre TB 121 + path = storedFolder; + } else { + // Filters TB 121 + path = storedFolder.path; + } + checkboxes.forEach((checkbox) => { const value = JSON.parse(checkbox.value); if (value.path === path) { @@ -1539,8 +1548,8 @@ async function start() { browser.storage.onChanged.addListener(SysTrayX.StorageChanged.changed); document.addEventListener("visibilitychange", function () { - if (document.visibilityState === "hidden") { - browser.storage.onChanged.removeListener(SysTrayX.StorageChanged.changed); + if ( browser.storage.onChanged.hasListener(SysTrayX.StorageChanged.changed) ) { + browser.storage.onChanged.removeListener(SysTrayX.StorageChanged.changed); } }); } From c3f54da0a2c3cbb2c4fbe77d9c27ed5ca8e1f892 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 7 Apr 2024 22:42:21 +0200 Subject: [PATCH 49/80] Only hints flags changed --- app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp index f381cdd..c35ab79 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp @@ -182,7 +182,8 @@ void SetWMNormalHints( void* display, quint64 window, SizeHints hints ) { XSizeHints size_hint; - size_hint.flags = USPosition; +// size_hint.flags = USPosition; + size_hint.flags = hints.flags; size_hint.x = hints.x; size_hint.y = hints.y; size_hint.width = hints.width; From c8d8720583fd13ddca62152e7f2e915ee3854501 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 8 Apr 2024 22:56:03 +0200 Subject: [PATCH 50/80] Add window move when normalizing --- app/SysTray-X/SysTray-X-app/SysTray-X-app.pro | 5 ++++- .../SysTray-X-app/windowctrl-unix.cpp | 17 +++++++++++++++++ app/SysTray-X/SysTray-X-app/windowctrl.cpp | 18 ------------------ 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro index bd5b944..87a82b0 100644 --- a/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro +++ b/app/SysTray-X/SysTray-X-app/SysTray-X-app.pro @@ -23,7 +23,10 @@ QT += core gui widgets unix:!macx: { contains(DEFINES,KDE_INTEGRATION) { lessThan(QT_MAJOR_VERSION, 6): { - QT += dbus KNotifications + QT += dbus + + INCLUDEPATH += /usr/include/KF5/KNotifications + LIBS += -lKF5Notifications } greaterThan(QT_MAJOR_VERSION, 5): { INCLUDEPATH += /usr/include/KF6/KStatusNotifierItem diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index 1d7cd76..4f6fee9 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -432,6 +432,11 @@ void WindowCtrlUnix::minimizeWindowToTaskbar( quint64 window ) emit signalConsole( "Minimize to taskbar" ); #endif + /* + * Store the current window positions + */ + updatePositions(); + /* * Save the hints */ @@ -477,6 +482,11 @@ void WindowCtrlUnix::minimizeWindowToTray( quint64 window ) emit signalConsole( "Minimize to system tray" ); #endif + /* + * Store the current window positions + */ + updatePositions(); + /* * Save the hints */ @@ -611,6 +621,13 @@ void WindowCtrlUnix::normalizeWindow( quint64 window ) */ Sync( m_display ); + /* + * Move the window to the last recorded position, seems to be needed for wayland + */ + QPoint pos = m_tb_window_positions[ window ]; + MoveWindow( m_display, window, pos.x(), pos.y() ); + Flush( m_display ); + /* * Let us wait a bit, maybe this helps... */ diff --git a/app/SysTray-X/SysTray-X-app/windowctrl.cpp b/app/SysTray-X/SysTray-X-app/windowctrl.cpp index ae7f632..e715fe8 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl.cpp @@ -174,15 +174,6 @@ void WindowCtrl::slotWindowState( Preferences::WindowState state, int id ) QList< quint64 > win_ids = getWinIds(); -#ifdef Q_OS_UNIX - - /* - * Update window positions - */ - updatePositions(); - -#endif - /* * Minimize/dock all */ @@ -253,15 +244,6 @@ void WindowCtrl::slotShowHide() */ normalizeWindowsHidden(); -#endif - -#ifdef Q_OS_UNIX - - /* - * Update the positions - */ - updatePositions(); - #endif TargetType target_type = TargetType::TYPE_WINDOW_TO_SYSTEMTRAY; From 5e30c8333278c43989edefa9f00ff5a639ea2446 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 9 Apr 2024 21:06:22 +0200 Subject: [PATCH 51/80] Restore old flags --- app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp index c35ab79..f381cdd 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp @@ -182,8 +182,7 @@ void SetWMNormalHints( void* display, quint64 window, SizeHints hints ) { XSizeHints size_hint; -// size_hint.flags = USPosition; - size_hint.flags = hints.flags; + size_hint.flags = USPosition; size_hint.x = hints.x; size_hint.y = hints.y; size_hint.width = hints.width; From 625797ccf986afc687d123a34ac3922b58aa1e8f Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 13 Apr 2024 15:43:09 +0200 Subject: [PATCH 52/80] Alternative get position --- .../SysTray-X-app/windowctrl-unix.cpp | 25 ++++++++++--- .../SysTray-X-lib-x11/systray-x-lib-x11.cpp | 37 +++++++++++++++++-- .../SysTray-X-lib-x11/systray-x-lib-x11.h | 12 +++++- 3 files changed, 64 insertions(+), 10 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index 4f6fee9..ae58fa8 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -380,16 +380,27 @@ void WindowCtrlUnix::updatePositions() int bottom; GetWindowFrameExtensions( m_display, window, &left, &top, &right, &bottom ); -#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS +//#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS emit signalConsole( QString( "Margins: %1, %2, %3, %4" ).arg( left ).arg( top ).arg( right ).arg( bottom ) ); -#endif +//#endif /* * Get the position */ int x; int y; - GetWindowPosition( m_display, window, &x, &y ); + int width; + int height; + bool status = GetWindowPosition( m_display, window, &x, &y, &width, &height ); + + /* + * Get the position + */ + int x2; + int y2; + int width2; + int height2; + bool status2 = GetWindowPosition2( m_display, window, &x2, &y2, &width2, &height2 ); /* * Update the list? @@ -406,9 +417,11 @@ void WindowCtrlUnix::updatePositions() changed = true; } -#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS - emit signalConsole( QString( "Update pos: %1, %2" ).arg( x - left ).arg( y - top ) ); -#endif +//#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS + emit signalConsole( QString( "Update pos: %1, %2, %3, %4, %5" ).arg( x ).arg( y ).arg( width ).arg( height ).arg( status ) ); + emit signalConsole( QString( "Update pos2: %1, %2, %3, %4, %5" ).arg( x2 ).arg( y2 ).arg( width2 ).arg( height2 ).arg( status2 ) ); + emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( x - left ).arg( y - top ) ); +//#endif } } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp index f381cdd..4fe20de 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp @@ -460,18 +460,49 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* /* * Get the window position */ -void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y ) +bool GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* width, int* height ) { Display* dsp = (Display*)display; int x, y; Window child; XWindowAttributes xwa; - XTranslateCoordinates( dsp, window, XDefaultRootWindow( dsp ), 0, 0, &x, &y, &child ); - XGetWindowAttributes( dsp, window, &xwa ); + int status1 = XTranslateCoordinates( dsp, window, XDefaultRootWindow( dsp ), 0, 0, &x, &y, &child ); + int status2 = XGetWindowAttributes( dsp, window, &xwa ); *pos_x = x - xwa.x; *pos_y = y - xwa.y; + + *width = xwa.width; + *height = xwa.height; + + return status1 == 0 && status2 == 0; +} + + +/* + * Get the window position + */ +bool GetWindowPosition2( void* display, quint64 window, int* pos_x, int* pos_y, int* width, int* height ) +{ + Display* dsp = (Display*)display; + + Window root_return; + int x_return, y_return; + unsigned int width_return, height_return; + unsigned int border_width_return; + unsigned int depth_return; + + int status = XGetGeometry( dsp, window, &root_return, &x_return, &y_return, &width_return, + &height_return, &border_width_return, &depth_return ); + + *pos_x = x_return; + *pos_y = y_return; + + *width = width_return; + *height = height_return; + + return status == 0; } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h index a99b77f..8d764e7 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h @@ -251,7 +251,17 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* * @param pos_x Storage for the x coordinate * @param pos_y Storage for the y coordinate */ -void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y ); +bool GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* win_width, int* win_height ); + +/** + * @brief GetWindowPosition2. Get the window position. + * + * @param display The display + * @param window The window + * @param pos_x Storage for the x coordinate + * @param pos_y Storage for the y coordinate + */ +bool GetWindowPosition2( void *display, quint64 window, int* pos_x, int* pos_y, int* win_width, int* win_height ); /** * @brief GetWindowRectangle. Get the window rectangle. From 82e2cc086ce566a887a6aa9719a5a9086ce31c2e Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 14 Apr 2024 12:27:41 +0200 Subject: [PATCH 53/80] Update get position --- .../SysTray-X-app/windowctrl-unix.cpp | 16 +---- .../SysTray-X-lib-x11/systray-x-lib-x11.cpp | 65 +++++++++---------- .../SysTray-X-lib-x11/systray-x-lib-x11.h | 12 +--- 3 files changed, 33 insertions(+), 60 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index ae58fa8..0835d92 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -389,18 +389,7 @@ void WindowCtrlUnix::updatePositions() */ int x; int y; - int width; - int height; - bool status = GetWindowPosition( m_display, window, &x, &y, &width, &height ); - - /* - * Get the position - */ - int x2; - int y2; - int width2; - int height2; - bool status2 = GetWindowPosition2( m_display, window, &x2, &y2, &width2, &height2 ); + GetWindowPosition( m_display, window, &x, &y ); /* * Update the list? @@ -418,8 +407,7 @@ void WindowCtrlUnix::updatePositions() } //#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS - emit signalConsole( QString( "Update pos: %1, %2, %3, %4, %5" ).arg( x ).arg( y ).arg( width ).arg( height ).arg( status ) ); - emit signalConsole( QString( "Update pos2: %1, %2, %3, %4, %5" ).arg( x2 ).arg( y2 ).arg( width2 ).arg( height2 ).arg( status2 ) ); + emit signalConsole( QString( "Update pos: %1, %2" ).arg( x ).arg( y ) ); emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( x - left ).arg( y - top ) ); //#endif } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp index 4fe20de..5371e4e 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp @@ -460,49 +460,44 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* /* * Get the window position */ -bool GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* width, int* height ) +void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y ) { Display* dsp = (Display*)display; - int x, y; + /* + * Get position, method 1 + */ + int x1, y1; Window child; XWindowAttributes xwa; - int status1 = XTranslateCoordinates( dsp, window, XDefaultRootWindow( dsp ), 0, 0, &x, &y, &child ); - int status2 = XGetWindowAttributes( dsp, window, &xwa ); + XTranslateCoordinates( dsp, window, XDefaultRootWindow( dsp ), 0, 0, &x1, &y1, &child ); + + /* + * Get position, method 2 + */ + int x2, y2; + Window root; + uint width, height; + uint border; + uint depth; + XGetGeometry( dsp, window, &root, &x2, &y2, &width, &height, &border, &depth ); + + int x = x1; + int y = y1; + + if( x == 0 && y == 0 ) + { + x = x2; + y = y2; + } + + /* + * Correct the position + */ + XGetWindowAttributes( dsp, window, &xwa ); *pos_x = x - xwa.x; *pos_y = y - xwa.y; - - *width = xwa.width; - *height = xwa.height; - - return status1 == 0 && status2 == 0; -} - - -/* - * Get the window position - */ -bool GetWindowPosition2( void* display, quint64 window, int* pos_x, int* pos_y, int* width, int* height ) -{ - Display* dsp = (Display*)display; - - Window root_return; - int x_return, y_return; - unsigned int width_return, height_return; - unsigned int border_width_return; - unsigned int depth_return; - - int status = XGetGeometry( dsp, window, &root_return, &x_return, &y_return, &width_return, - &height_return, &border_width_return, &depth_return ); - - *pos_x = x_return; - *pos_y = y_return; - - *width = width_return; - *height = height_return; - - return status == 0; } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h index 8d764e7..a99b77f 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h @@ -251,17 +251,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* * @param pos_x Storage for the x coordinate * @param pos_y Storage for the y coordinate */ -bool GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* win_width, int* win_height ); - -/** - * @brief GetWindowPosition2. Get the window position. - * - * @param display The display - * @param window The window - * @param pos_x Storage for the x coordinate - * @param pos_y Storage for the y coordinate - */ -bool GetWindowPosition2( void *display, quint64 window, int* pos_x, int* pos_y, int* win_width, int* win_height ); +void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y ); /** * @brief GetWindowRectangle. Get the window rectangle. From d9b6bec9e5e58be10d44749ac83be831bc42875c Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 14 Apr 2024 12:43:53 +0200 Subject: [PATCH 54/80] Add debug again --- app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp | 8 +++++++- app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp | 7 ++++++- app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index 0835d92..681c46e 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -389,7 +389,11 @@ void WindowCtrlUnix::updatePositions() */ int x; int y; - GetWindowPosition( m_display, window, &x, &y ); + int x1; + int y1; + int x2; + int y2; + GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2 ); /* * Update the list? @@ -408,6 +412,8 @@ void WindowCtrlUnix::updatePositions() //#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS emit signalConsole( QString( "Update pos: %1, %2" ).arg( x ).arg( y ) ); + emit signalConsole( QString( "Update pos1: %1, %2" ).arg( x1 ).arg( y1 ) ); + emit signalConsole( QString( "Update pos2: %1, %2" ).arg( x2 ).arg( y2 ) ); emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( x - left ).arg( y - top ) ); //#endif } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp index 5371e4e..1ca0fc1 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp @@ -460,7 +460,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* /* * Get the window position */ -void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y ) +void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d ) { Display* dsp = (Display*)display; @@ -498,6 +498,11 @@ void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y *pos_x = x - xwa.x; *pos_y = y - xwa.y; + + *x1d = x1; + *y1d = y1; + *x2d = x2; + *y2d = y2; } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h index a99b77f..e4b41c3 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h @@ -251,7 +251,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* * @param pos_x Storage for the x coordinate * @param pos_y Storage for the y coordinate */ -void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y ); +void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d ); /** * @brief GetWindowRectangle. Get the window rectangle. From e3f5f5e0da14cfa40286964357108a5f07775c81 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 14 Apr 2024 13:44:43 +0200 Subject: [PATCH 55/80] More debug --- app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index 681c46e..8bf00a9 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -635,6 +635,8 @@ void WindowCtrlUnix::normalizeWindow( quint64 window ) MoveWindow( m_display, window, pos.x(), pos.y() ); Flush( m_display ); + emit signalConsole( QString( "Set pos: %1, %2" ).arg( pos.x() ).arg( pos.y() ) ); + /* * Let us wait a bit, maybe this helps... */ From 4f5578461ca809b52b462d3c3c4c736fee21e534 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 14 Apr 2024 14:33:02 +0200 Subject: [PATCH 56/80] More debug --- .../SysTray-X-app/windowctrl-unix.cpp | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index 8bf00a9..b9ee7ac 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -151,9 +151,9 @@ QString WindowCtrlUnix::getProcessName( qint64 pid ) const */ void WindowCtrlUnix::findWindows( qint64 pid ) { -#ifdef DEBUG_DISPLAY_ACTIONS +//#ifdef DEBUG_DISPLAY_ACTIONS emit signalConsole( "Find windows" ); -#endif +//#endif QList< WindowItem > windows = listXWindows( m_display, GetDefaultRootWindow( m_display ) ); @@ -185,6 +185,12 @@ void WindowCtrlUnix::findWindows( qint64 pid ) if( old_positions.contains( win.window ) ) { point = old_positions[ win.window ]; + + emit signalConsole( QString( "Old position found: %1, %2" ).arg( point.x() ).arg( point.y() ) ); + } + else + { + emit signalConsole( "Position not found" ); } m_tb_window_positions[ win.window ] = point; @@ -404,6 +410,8 @@ void WindowCtrlUnix::updatePositions() { m_tb_window_positions[ window ] = point; + emit signalConsole( QString( "Update pos changed" ) ); + /* * Mar the list changed */ @@ -695,20 +703,23 @@ void WindowCtrlUnix::deleteWindow( quint64 window ) */ void WindowCtrlUnix::setPositions( QList< QPoint > window_positions ) { -#ifdef DEBUG_DISPLAY_ACTIONS +//#ifdef DEBUG_DISPLAY_ACTIONS emit signalConsole( "Set positions" ); -#endif +//#endif for( int i = 0 ; i < m_tb_windows.length() ; ++i ) { quint64 window = m_tb_windows.at( i ); -#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS +//#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS emit signalConsole( QString( "Set pos: %1, %2").arg( window_positions.at( i ).x() ).arg( window_positions.at( i ).y() ) ); -#endif +//#endif if( i < window_positions.length() ) { - MoveWindow( m_display, window, window_positions.at( i ).x(), window_positions.at( i ).y() ); + QPoint pos = window_positions.at( i ); + + m_tb_window_positions[ window ] = pos; + MoveWindow( m_display, window, pos.x(), pos.y() ); } } From 5ea763b948c2fc716478ca4116231345ea198e1a Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 14 Apr 2024 14:50:55 +0200 Subject: [PATCH 57/80] More debug --- app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp | 5 ++++- app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp | 4 +++- app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index b9ee7ac..6cea9bc 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -399,7 +399,9 @@ void WindowCtrlUnix::updatePositions() int y1; int x2; int y2; - GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2 ); + int x3; + int y3; + GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2, &x3, &y3 ); /* * Update the list? @@ -422,6 +424,7 @@ void WindowCtrlUnix::updatePositions() emit signalConsole( QString( "Update pos: %1, %2" ).arg( x ).arg( y ) ); emit signalConsole( QString( "Update pos1: %1, %2" ).arg( x1 ).arg( y1 ) ); emit signalConsole( QString( "Update pos2: %1, %2" ).arg( x2 ).arg( y2 ) ); + emit signalConsole( QString( "Update pos3: %1, %2" ).arg( x3 ).arg( y3 ) ); emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( x - left ).arg( y - top ) ); //#endif } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp index 1ca0fc1..ed08251 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp @@ -460,7 +460,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* /* * Get the window position */ -void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d ) +void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d, int* x3d, int* y3d ) { Display* dsp = (Display*)display; @@ -503,6 +503,8 @@ void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y *y1d = y1; *x2d = x2; *y2d = y2; + *x3d = xwa.x; + *y3d = xwa.y; } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h index e4b41c3..c1813a3 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h @@ -251,7 +251,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* * @param pos_x Storage for the x coordinate * @param pos_y Storage for the y coordinate */ -void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d ); +void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d, int* x3d, int* y3d ); /** * @brief GetWindowRectangle. Get the window rectangle. From 795be327734d6a7e1332309d17eb28bf74abe339 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 14 Apr 2024 21:50:27 +0200 Subject: [PATCH 58/80] Make position correction an option --- app/SysTray-X/SysTray-X-app/preferences.cpp | 55 + app/SysTray-X/SysTray-X-app/preferences.h | 57 + app/SysTray-X/SysTray-X-app/preferences.ui | 2341 +++++++++-------- .../SysTray-X-app/preferencesdialog.cpp | 34 +- .../SysTray-X-app/preferencesdialog.h | 14 + .../SysTray-X-app/windowctrl-unix.cpp | 43 +- app/SysTray-X/SysTray-X-app/windowctrl-unix.h | 7 + app/SysTray-X/SysTray-X-app/windowctrl-win.h | 7 + app/SysTray-X/SysTray-X-app/windowctrl.h | 5 - 9 files changed, 1414 insertions(+), 1149 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/preferences.cpp b/app/SysTray-X/SysTray-X-app/preferences.cpp index d44ff32..b469d0d 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.cpp +++ b/app/SysTray-X/SysTray-X-app/preferences.cpp @@ -49,6 +49,9 @@ Preferences::Preferences( QObject *parent ) : QObject( parent ) m_close_type = PREF_MINIMIZE_MAIN_TRAY_CLOSE_CHILDREN_WINDOWS; m_minimize_icon_type = PREF_MINIMIZE_TRAY_ICON; + m_window_positions_correction = false; + m_window_positions_correction_type = PREF_NO_CORRECTION; + m_startup_type = PREF_START_DEFAULT; m_restore_window_positions = false; @@ -420,6 +423,58 @@ void Preferences::setMinimizeIconType( MinimizeIconType minimize_icon_type ) } +/* + * Get the window positions correction state + */ +bool Preferences::getWindowPositionsCorrection() const +{ + return m_window_positions_correction; +} + + +/* + * Set the window positions correction state + */ +void Preferences::setWindowPositionsCorrection( bool state ) +{ + if( m_window_positions_correction != state ) + { + m_window_positions_correction = state; + + /* + * Tell the world the new preference + */ + emit signalWindowPositionsCorrectionChange(); + } +} + + +/* + * Get the window positions correction type + */ +Preferences::WindowPositionsCorrectionType Preferences::getWindowPositionsCorrectionType() const +{ + return m_window_positions_correction_type; +} + + +/* + * Set the minimize type. + */ +void Preferences::setWindowPositionsCorrectionType( WindowPositionsCorrectionType window_positions_correction_type ) +{ + if( m_window_positions_correction_type != window_positions_correction_type) + { + m_window_positions_correction_type = window_positions_correction_type; + + /* + * Tell the world the new preference + */ + emit signalWindowPositionsCorrectionTypeChange(); + } +} + + /* * Get the start minmized pref. */ diff --git a/app/SysTray-X/SysTray-X-app/preferences.h b/app/SysTray-X/SysTray-X-app/preferences.h index b08f16f..80b32aa 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.h +++ b/app/SysTray-X/SysTray-X-app/preferences.h @@ -53,6 +53,15 @@ class Preferences : public QObject PREF_MINIMIZE_TRAY_ICON }; + /* + * Position correction + */ + enum WindowPositionsCorrectionType { + PREF_NO_CORRECTION = 0, + PREF_ADD_CORRECTION, + PREF_SUBTRACT_CORRECTION + }; + /* * Startup types */ @@ -258,6 +267,34 @@ class Preferences : public QObject */ void setMinimizeIconType( MinimizeIconType minimize_icon_type ); + /** + * @brief getWindowPositionsCorrection. Get the window positions correction state. + * + * @return The state. + */ + bool getWindowPositionsCorrection() const; + + /** + * @brief setWindowPositionsCorrection. Set the window positions correction state. + * + * @param state The state. + */ + void setWindowPositionsCorrection( bool state ); + + /** + * @brief getWindowPositionsCorrectionType. Get the window positions correction type + * + * @return the window positions correction type. + */ + WindowPositionsCorrectionType getWindowPositionsCorrectionType() const; + + /** + * @brief setWindowPositionsCorrectionType. Set the window positions correction type. + * + * @param window_positions_correction_type The window positions correction type. + */ + void setWindowPositionsCorrectionType( WindowPositionsCorrectionType window_positions_correction_type ); + /** * @brief getDefaultIconType. Get the default icon type. * @@ -684,6 +721,16 @@ class Preferences : public QObject */ void signalMinimizeIconTypeChange(); + /** + * @brief signalWindowPositionsCorrectionChange. Signal a window positions correction change. + */ + void signalWindowPositionsCorrectionChange(); + + /** + * @brief signalWindowPositionsCorrectionTypeChange. Signal a window positions correction type change. + */ + void signalWindowPositionsCorrectionTypeChange(); + /** * @brief signalStartupTypeChange. Signal a startup type change. */ @@ -890,6 +937,16 @@ class Preferences : public QObject */ MinimizeIconType m_minimize_icon_type; + /** + * @brief m_window_positions_correction + */ + bool m_window_positions_correction; + + /** + * @brief m_window_positions_correction_type + */ + WindowPositionsCorrectionType m_window_positions_correction_type; + /** * @brief m_startup_type. Startup TB preference. */ diff --git a/app/SysTray-X/SysTray-X-app/preferences.ui b/app/SysTray-X/SysTray-X-app/preferences.ui index 7bea8d1..9b88e96 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.ui +++ b/app/SysTray-X/SysTray-X-app/preferences.ui @@ -6,8 +6,8 @@ 0 0 - 608 - 468 + 558 + 519 @@ -25,315 +25,359 @@ - - - 0 - - - - Windows - - - - - - - - Close - - - - - - Default close - - - closeTypeGroup - - - - - - - Minimize main to tray, close children - - - true - - - closeTypeGroup - - - - - - - Minimize all windows to tray - - - false - - - closeTypeGroup - - - - - - - Minimize main, close children - - - false - - - closeTypeGroup - - - - - - - Minimize all windows - - - false - - - closeTypeGroup - - - - - - - - - - Startup - - - - - - Default startup - - - true - - - startupTypeGroup - - - - - - - Start application minimized - - - startupTypeGroup - - - - - - - Start application in tray - - - false - - - startupTypeGroup - - - - - - - - - - Restore startup positions - - - - - + + + + + 0 + + + + Windows + + + + - Qt::Vertical + Qt::Horizontal - 20 - 40 + 2 + 20 - - - - - - Qt::Horizontal - - - - 2 - 20 - - - - - - - - - - Minimize - - - - - - Default minimize - - - false - - - minimizeTypeGroup - - - - - - - Minimize to tray - - - true - - - minimizeTypeGroup - - - - - - - Minimize to tray, method 2 - - - minimizeTypeGroup - - - - - + + + + + + Minimize + + + + + + Default minimize + + + false + + + minimizeTypeGroup + + + + + + + Minimize to tray + + + true + + + minimizeTypeGroup + + + + + + + Minimize to tray, method 2 + + + minimizeTypeGroup + + + + + + + + + + Icon + + + + + + Default minimize + + + false + + + minimizeIconTypeGroup + + + + + + + Minimize to tray + + + true + + + minimizeIconTypeGroup + + + + + + + + + + Position + + + + + + + + Correct window positions + + + + + + + + + No titlebar correction + + + true + + + positionGroup + + + + + + + Add titlebar size + + + positionGroup + + + + + + + Subtract titlebar size + + + positionGroup + + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 17 + + + + + - - - - Icon - - - - - - Default minimize - - - false - - - minimizeIconTypeGroup - - - - - - - Minimize to tray - - - true - - - minimizeIconTypeGroup - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - + + + + + + Close + + + + + + Default close + + + closeTypeGroup + + + + + + + Minimize main to tray, close children + + + true + + + closeTypeGroup + + + + + + + Minimize all windows to tray + + + false + + + closeTypeGroup + + + + + + + Minimize main, close children + + + false + + + closeTypeGroup + + + + + + + Minimize all windows + + + false + + + closeTypeGroup + + + + + + + + + + Startup + + + + + + Default startup + + + true + + + startupTypeGroup + + + + + + + Start application minimized + + + startupTypeGroup + + + + + + + PushButton + + + + + + + Start application in tray + + + false + + + startupTypeGroup + + + + + + + + + + Restore startup positions + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + - - - - - - Icon - - - - - - Default icon - - - - - - Icon - - - - + + + + Icon + + + + + + Default icon + + + + + + Icon + + - - - Default Thunderbird - - - true - - - defaultIconTypeGroup - - - - - - - Lookthrough icon - - - defaultIconTypeGroup - - - - - + - + - Custom icon + Default Thunderbird + + + true defaultIconTypeGroup @@ -341,14 +385,163 @@ - + + + Lookthrough icon + + + defaultIconTypeGroup + + + + + + + + + Custom icon + + + defaultIconTypeGroup + + + + + + + + + + + + + + Choose + + + false + + + + + + + + + + + + + + KDE integration (Hide) + + + false + + + + + + + + + + Mail notification icon + + + + + + Icon + + + + + + QLayout::SetFixedSize + + + + + Blank icon + + + true + + + iconTypeGroup + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + QLayout::SetFixedSize + + + + + New mail icon + + + iconTypeGroup + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + QLayout::SetMaximumSize + + + + + Custom icon + + + iconTypeGroup + + + + + - + Choose @@ -359,671 +552,413 @@ - - - - - - - - - KDE integration (Hide) - - - false - - - - - - - - - - Mail notification icon - - - - - - Icon - - - - - - QLayout::SetFixedSize - - - - Blank icon - - - true - - - iconTypeGroup - - + + + + + No icon + + + iconTypeGroup + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + - - - Qt::Horizontal - - - - 40 - 20 - - - + + + + + Default Thunderbird + + + iconTypeGroup + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + - - - - - QLayout::SetFixedSize - - - - - New mail icon - - - iconTypeGroup - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - QLayout::SetMaximumSize - - - - - Custom icon - - - iconTypeGroup - - - - - - - - - - - - - - Choose - - - false - - - - - - - - - - - No icon - - - iconTypeGroup - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Default Thunderbird - - - iconTypeGroup - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - - Invert icon - - - - - - - - - - Qt::Horizontal - - - - 6 - 20 - - - - - - - - Qt::Vertical - - - - 20 - 80 - - - - - - - - Qt::Vertical - - - - 20 - 80 - - - - - - - - - Count - - - - - - - - Show message count - - - true - + + + + + + Invert icon + + + + - - - - Show new indicator + + + + Qt::Horizontal - + + + 6 + 20 + + + - - + + + + Qt::Vertical + + + + 20 + 80 + + + + + + + + Qt::Vertical + + + + 20 + 80 + + + + + + + + + Count + + + + - + - Startup delay + Show message count + + + true - - - 0 - - - 99 - - - 5 + + + Show new indicator + + + + + + Startup delay + + + + + + + 0 + + + 99 + + + 5 + + + + + - - - - - - Count type - - - - - - - - Unread - - - true - - - countTypeGroup - - - - - - - New - - - countTypeGroup - - - - - - - - - - - - Number properties - - - - - - - - Margins (left, top, right, bottom): - - - - - + + + + Count type + + + + - - - 999 - - - - - - - 999 - - - - - - - 999 - - - - - - - 999 - - - - - - - - - - - - - + - Number color - - - - - - - Qt::NoFocus - - - - - - - - - - - - - - Number size - - - - - - - 1 - - - 999 - - - 10 - - - - - - - - - - - Alignment - - - - - - - 4 - - - - Top left - - - - - Top centre - - - - - Top right - - - - - Middle left - - - - - Middle centre - - - - - Middle right - - - - - Bottom left - - - - - Bottom centre - - - - - Bottom right - - - - - - - - - - - - - - - New indicator - - - - - - - - Icon round - - - newIndicatorTypeGroup - - - - - - - Icon star - - - newIndicatorTypeGroup - - - - - - - - - Shade + Unread true + + countTypeGroup + + + + + + + New + + + countTypeGroup + + + + + + + + + + + + Number properties + + + + + + + + Margins (left, top, right, bottom): + + + + + + + + + 999 + + + + + + + 999 + + + + + + + 999 + + + + + + + 999 + + + + + + + + + + + + + + + Number color + + + + + + + Qt::NoFocus + + + + + + + + + + + + + + Number size + + + + + + + 1 + + + 999 + + + 10 + + + + + + + + + + + Alignment + + + + + + + 4 + + + + Top left + + + + + Top centre + + + + + Top right + + + + + Middle left + + + + + Middle centre + + + + + Middle right + + + + + Bottom left + + + + + Bottom centre + + + + + Bottom right + + + + + + + + + + + + + + + New indicator + + + + + + + + Icon round + newIndicatorTypeGroup - + - + Icon star + + newIndicatorTypeGroup + - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Qt::Vertical - - - - 20 - 104 - - - - - - - - Qt::Vertical - - - - 20 - 64 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Special options - - - - - - API count method - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - - - - - Apps - - - - - - - - Close application - - - - - + - - - - + - Browse... + Shade - - - - - - - - - - Arguments: + + true + + newIndicatorTypeGroup + - + + + + + @@ -1032,259 +967,392 @@ - - - - Start application + + + + Qt::Horizontal - - - - - - - - - - - - Browse... - - - - - - - - - - - Arguments: - - - - - - - - - - - - + + + 40 + 20 + + + - - + + Qt::Vertical 20 - 40 + 104 + + + + Qt::Vertical + + + + 20 + 64 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Special options + + + + + + API count method + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + - - - - - - Mail - - - - - - Use the preferences dialog in Thunderbird to select the accounts and folders - - - true - - - - - - - Qt::Horizontal - - - - 265 - 20 - - - - - - - - Qt::Vertical - - - - 20 - 464 - - - - - - - - - Shortcuts - - - - - - - - - - - - Current show / hide shortcut: - - - - - - - + + + + Apps + + + + + + + + Close application + + + + + + + + + + + + + Browse... + + + + + + + + + + + Arguments: + + + + + + + + + + + + - - + + + + Start application + + + + + + + + + + + + + Browse... + + + + + + + + + + + Arguments: + + + + + + + + + + + + + + + - Qt::Horizontal + Qt::Vertical - 40 - 20 + 20 + 40 - - + + + + + Mail + + + + + + Use the preferences dialog in Thunderbird to select the accounts and folders + + + true + + + + + + + Qt::Horizontal + + + + 265 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 464 + + + + + + + + + Shortcuts + + + + - - - New show / hide shortcut: - - + + + + + + + Current show / hide shortcut: + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + - - - - - - - - - - Clear - - + + + + + New show / hide shortcut: + + + + + + + + + + + + + + Clear + + + + + + + + Qt::Vertical + + + + 20 + 297 + + + + - - - - - Qt::Vertical - - - - 20 - 297 - - - - - - - - - Debug - - - - - - Display debug window - - - - - + + + + Debug + + + + + + Display debug window + + + + + + + Qt::Horizontal + + + + 358 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 485 + + + + + + + + + + + + Qt::Horizontal - 358 + 369 20 - - - - Qt::Vertical - - - - 20 - 485 - - - - - - - - - - - - - - Qt::Horizontal - - - - 369 - 20 - - - - - - - - - Cancel - - - - - - - Save - - + + + + + Cancel + + + + + + + Save + + + + @@ -1297,13 +1365,14 @@ - - - + - - + + + + + diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp index 21b0eff..9bb86eb 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp @@ -56,7 +56,7 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi m_ui->minimizeMethod2RadioButton->hide(); /* - * Set minimize type button Ids + * Set minimize icon type button Ids */ m_ui->minimizeIconTypeGroup->setId( m_ui->defaultMinimizeIconRadioButton, Preferences::PREF_DEFAULT_MINIMIZE_ICON); m_ui->minimizeIconTypeGroup->setId( m_ui->minimizeTrayIconRadioButton, Preferences::PREF_MINIMIZE_TRAY_ICON ); @@ -68,9 +68,17 @@ PreferencesDialog::PreferencesDialog( SysTrayXLink *link, Preferences *pref, QWi m_ui->startupTypeGroup->setId( m_ui->startMinimizedRadioButton, Preferences::PREF_START_MINIMIZED); m_ui->startupTypeGroup->setId( m_ui->startDockedRadioButton, Preferences::PREF_START_DOCKED ); + /* + * Set position button Ids + */ + m_ui->positionGroup->setId( m_ui->noTitlebarCorrectionRadioButton, Preferences::PREF_NO_CORRECTION); + m_ui->positionGroup->setId( m_ui->addTitlebarCorrectionRadioButton, Preferences::PREF_ADD_CORRECTION ); + m_ui->positionGroup->setId( m_ui->subtractTitlebarCorrectionRadioButton, Preferences::PREF_SUBTRACT_CORRECTION ); + #ifdef Q_OS_WIN m_ui->hideDefaultIconCheckBox->hide(); + m_ui->positionGroupBox->hide(); m_ui->restorePositionscheckBox->hide(); #endif @@ -299,6 +307,24 @@ void PreferencesDialog::setMinimizeIconType( Preferences::MinimizeIconType mi } +/* + * Set the positions correction state + */ +void PreferencesDialog::setWindowPositionsCorrection( bool state ) +{ + m_ui->correctWinPosCheckBox->setChecked( state ); +} + + +/* + * Set the position correction + */ +void PreferencesDialog::setWindowPositionsCorrectionType( Preferences::WindowPositionsCorrectionType position_correction ) +{ + ( m_ui->positionGroup->button( position_correction ) )->setChecked( true ); +} + + /* * Set the startup type */ @@ -631,6 +657,10 @@ void PreferencesDialog::slotAccept() m_pref->setMinimizeType( static_cast< Preferences::MinimizeType >( m_ui->minimizeTypeGroup->checkedId() ) ); m_pref->setMinimizeIconType( static_cast< Preferences::MinimizeIconType >( m_ui->minimizeIconTypeGroup->checkedId() ) ); + + m_pref->setWindowPositionsCorrection( m_ui->correctWinPosCheckBox->isChecked() ); + m_pref->setWindowPositionsCorrectionType( static_cast< Preferences::WindowPositionsCorrectionType >( m_ui->positionGroup->checkedId() ) ); + m_pref->setStartupType( static_cast< Preferences::StartupType >( m_ui->startupTypeGroup->checkedId() ) ); m_pref->setRestoreWindowPositions( m_ui->restorePositionscheckBox->isChecked() ); m_pref->setCloseType( static_cast< Preferences::CloseType >( m_ui->closeTypeGroup->checkedId() ) ); @@ -699,6 +729,8 @@ void PreferencesDialog::slotReject() setMinimizeType( m_pref->getMinimizeType() ); setMinimizeIconType( m_pref->getMinimizeIconType() ); + setWindowPositionsCorrection( m_pref->getWindowPositionsCorrection() ); + setWindowPositionsCorrectionType( m_pref->getWindowPositionsCorrectionType() ); setStartupType( m_pref->getStartupType() ); setRestoreWindowPositions( m_pref->getRestoreWindowPositions() ); setCloseType( m_pref->getCloseType() ); diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.h b/app/SysTray-X/SysTray-X-app/preferencesdialog.h index 713fe15..91e72cf 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.h +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.h @@ -83,6 +83,20 @@ class PreferencesDialog : public QDialog */ void setMinimizeIconType( Preferences::MinimizeIconType minimize_icon_type ); + /** + * @brief setWindowPositionsCorrection. Set the window postions correction state. + * + * @param state The state. + */ + void setWindowPositionsCorrection( bool state ); + + /** + * @brief setWindowPositionsCorrectionType. Set the window positions correction type. + * + * @param position_correction The correction type. + */ + void setWindowPositionsCorrectionType( Preferences::WindowPositionsCorrectionType position_correction ); + /** * @brief setStartupType. Set the startup type. * diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index 6cea9bc..8576f17 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -403,11 +403,34 @@ void WindowCtrlUnix::updatePositions() int y3; GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2, &x3, &y3 ); + /* + * Apply the requested correction + */ + QPoint point; + switch( m_pref->getWindowPositionsCorrectionType() ) + { + case Preferences::PREF_NO_CORRECTION: + { + point = QPoint( x, y ); + break; + } + + case Preferences::PREF_ADD_CORRECTION: + { + point = QPoint( x + left, y + top ); + break; + } + + case Preferences::PREF_SUBTRACT_CORRECTION: + { + point = QPoint( x - left, y - top ); + break; + } + } + /* * Update the list? */ - QPoint point = QPoint( x - left, y - top ); - if( m_tb_window_positions[ window ] != point ) { m_tb_window_positions[ window ] = point; @@ -640,13 +663,19 @@ void WindowCtrlUnix::normalizeWindow( quint64 window ) Sync( m_display ); /* - * Move the window to the last recorded position, seems to be needed for wayland + * Force the window to the last known position? */ - QPoint pos = m_tb_window_positions[ window ]; - MoveWindow( m_display, window, pos.x(), pos.y() ); - Flush( m_display ); + if( m_pref->getWindowPositionsCorrection() ) + { + /* + * Move the window to the last recorded position + */ + QPoint pos = m_tb_window_positions[ window ]; + MoveWindow( m_display, window, pos.x(), pos.y() ); + Flush( m_display ); - emit signalConsole( QString( "Set pos: %1, %2" ).arg( pos.x() ).arg( pos.y() ) ); + emit signalConsole( QString( "Set pos: %1, %2" ).arg( pos.x() ).arg( pos.y() ) ); + } /* * Let us wait a bit, maybe this helps... diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.h b/app/SysTray-X/SysTray-X-app/windowctrl-unix.h index bb24e33..1fbdfd7 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.h +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.h @@ -341,6 +341,13 @@ class WindowCtrlUnix : public QObject */ void signalPositions( QList< QPoint > positions ); + protected: + + /** + * @brief m_pref. Pointer to the preferences storage. + */ + Preferences* m_pref; + private: /** diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-win.h b/app/SysTray-X/SysTray-X-app/windowctrl-win.h index 1525adc..28450df 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-win.h +++ b/app/SysTray-X/SysTray-X-app/windowctrl-win.h @@ -272,6 +272,13 @@ class WindowCtrlWin : public QObject */ void signalConsole( QString message ); + protected: + + /** + * @brief m_pref. Pointer to the preferences storage. + */ + Preferences* m_pref; + private: /** diff --git a/app/SysTray-X/SysTray-X-app/windowctrl.h b/app/SysTray-X/SysTray-X-app/windowctrl.h index b162eb9..60f4993 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl.h +++ b/app/SysTray-X/SysTray-X-app/windowctrl.h @@ -135,11 +135,6 @@ class WindowCtrl : public QObject private: - /** - * @brief m_pref. Pointer to the preferences storage. - */ - Preferences* m_pref; - /** * @brief m_show_hide_active */ From ed025c379cad6a7e0816b9e90cfe369c4d3343c0 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 14 Apr 2024 21:58:56 +0200 Subject: [PATCH 59/80] Update debug --- app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index 8576f17..d1d4253 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -448,7 +448,7 @@ void WindowCtrlUnix::updatePositions() emit signalConsole( QString( "Update pos1: %1, %2" ).arg( x1 ).arg( y1 ) ); emit signalConsole( QString( "Update pos2: %1, %2" ).arg( x2 ).arg( y2 ) ); emit signalConsole( QString( "Update pos3: %1, %2" ).arg( x3 ).arg( y3 ) ); - emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( x - left ).arg( y - top ) ); + emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( point.x() ).arg( point.y() ) ); //#endif } } From a5fd4b635f1bcd29c687825f7fa0963e94deab5d Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 15 Apr 2024 22:00:54 +0200 Subject: [PATCH 60/80] Add new prefs to the storage --- app/SysTray-X/SysTray-X-app/preferences.cpp | 54 ++++++------ app/SysTray-X/SysTray-X-app/preferences.h | 66 +++++++-------- .../SysTray-X-app/preferencesdialog.cpp | 82 +++++++++++-------- .../SysTray-X-app/preferencesdialog.h | 24 ++++-- app/SysTray-X/SysTray-X-app/systrayx.cpp | 2 + app/SysTray-X/SysTray-X-app/systrayxlink.cpp | 22 +++++ webext/background.js | 20 +++++ 7 files changed, 170 insertions(+), 100 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/preferences.cpp b/app/SysTray-X/SysTray-X-app/preferences.cpp index b469d0d..ebdb65a 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.cpp +++ b/app/SysTray-X/SysTray-X-app/preferences.cpp @@ -48,11 +48,11 @@ Preferences::Preferences( QObject *parent ) : QObject( parent ) m_minimize_type = PREF_MINIMIZE_METHOD_1; m_close_type = PREF_MINIMIZE_MAIN_TRAY_CLOSE_CHILDREN_WINDOWS; m_minimize_icon_type = PREF_MINIMIZE_TRAY_ICON; + m_startup_type = PREF_START_DEFAULT; m_window_positions_correction = false; m_window_positions_correction_type = PREF_NO_CORRECTION; - m_startup_type = PREF_START_DEFAULT; m_restore_window_positions = false; m_default_icon_type = PREF_DEFAULT_ICON_DEFAULT; @@ -423,6 +423,32 @@ void Preferences::setMinimizeIconType( MinimizeIconType minimize_icon_type ) } +/* + * Get the start minmized pref. + */ +Preferences::StartupType Preferences::getStartupType() const +{ + return m_startup_type; +} + + +/* + * Set the startup type pref. + */ +void Preferences::setStartupType( Preferences::StartupType startup_type ) +{ + if( m_startup_type != startup_type ) + { + m_startup_type = startup_type; + + /* + * Tell the world the new preference + */ + emit signalStartupTypeChange(); + } +} + + /* * Get the window positions correction state */ @@ -475,32 +501,6 @@ void Preferences::setWindowPositionsCorrectionType( WindowPositionsCorrection } -/* - * Get the start minmized pref. - */ -Preferences::StartupType Preferences::getStartupType() const -{ - return m_startup_type; -} - - -/* - * Set the startup type pref. - */ -void Preferences::setStartupType( Preferences::StartupType startup_type ) -{ - if( m_startup_type != startup_type ) - { - m_startup_type = startup_type; - - /* - * Tell the world the new preference - */ - emit signalStartupTypeChange(); - } -} - - /* * Get the start minmized pref. */ diff --git a/app/SysTray-X/SysTray-X-app/preferences.h b/app/SysTray-X/SysTray-X-app/preferences.h index 80b32aa..dd10030 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.h +++ b/app/SysTray-X/SysTray-X-app/preferences.h @@ -197,34 +197,6 @@ class Preferences : public QObject */ void setBrowserBuildID( const QString buildID ); - /** - * @brief getStartupType. Get the startup type. - * - * @return The startup type. - */ - StartupType getStartupType() const; - - /** - * @brief setStartupType. Set the startup type. - * - * @param startup_type The startup type. - */ - void setStartupType( StartupType startup_type ); - - /** - * @brief getRestoreWindowPositions. Get the restore window positions state. - * - * @return The state. - */ - bool getRestoreWindowPositions() const; - - /** - * @brief setRestoreWindowPositions. Set the restore window positions state. - * - * @param state The state. - */ - void setRestoreWindowPositions( bool state ); - /** * @brief getMinimizeType. Get the minimize type. * @@ -267,6 +239,20 @@ class Preferences : public QObject */ void setMinimizeIconType( MinimizeIconType minimize_icon_type ); + /** + * @brief getStartupType. Get the startup type. + * + * @return The startup type. + */ + StartupType getStartupType() const; + + /** + * @brief setStartupType. Set the startup type. + * + * @param startup_type The startup type. + */ + void setStartupType( StartupType startup_type ); + /** * @brief getWindowPositionsCorrection. Get the window positions correction state. * @@ -281,6 +267,20 @@ class Preferences : public QObject */ void setWindowPositionsCorrection( bool state ); + /** + * @brief getRestoreWindowPositions. Get the restore window positions state. + * + * @return The state. + */ + bool getRestoreWindowPositions() const; + + /** + * @brief setRestoreWindowPositions. Set the restore window positions state. + * + * @param state The state. + */ + void setRestoreWindowPositions( bool state ); + /** * @brief getWindowPositionsCorrectionType. Get the window positions correction type * @@ -721,6 +721,11 @@ class Preferences : public QObject */ void signalMinimizeIconTypeChange(); + /** + * @brief signalStartupTypeChange. Signal a startup type change. + */ + void signalStartupTypeChange(); + /** * @brief signalWindowPositionsCorrectionChange. Signal a window positions correction change. */ @@ -731,11 +736,6 @@ class Preferences : public QObject */ void signalWindowPositionsCorrectionTypeChange(); - /** - * @brief signalStartupTypeChange. Signal a startup type change. - */ - void signalStartupTypeChange(); - /** * @brief signalRestoreWindowPositionsChange. Signal a restore window positions state change. */ diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp index 9bb86eb..85bc75c 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.cpp @@ -307,6 +307,15 @@ void PreferencesDialog::setMinimizeIconType( Preferences::MinimizeIconType mi } +/* + * Set the startup type + */ +void PreferencesDialog::setStartupType( Preferences::StartupType startup_type ) +{ + ( m_ui->startupTypeGroup->button( startup_type ) )->setChecked( true ); +} + + /* * Set the positions correction state */ @@ -325,15 +334,6 @@ void PreferencesDialog::setWindowPositionsCorrectionType( Preferences::Window } -/* - * Set the startup type - */ -void PreferencesDialog::setStartupType( Preferences::StartupType startup_type ) -{ - ( m_ui->startupTypeGroup->button( startup_type ) )->setChecked( true ); -} - - /* * Set the restore window positions state */ @@ -657,13 +657,11 @@ void PreferencesDialog::slotAccept() m_pref->setMinimizeType( static_cast< Preferences::MinimizeType >( m_ui->minimizeTypeGroup->checkedId() ) ); m_pref->setMinimizeIconType( static_cast< Preferences::MinimizeIconType >( m_ui->minimizeIconTypeGroup->checkedId() ) ); - + m_pref->setCloseType( static_cast< Preferences::CloseType >( m_ui->closeTypeGroup->checkedId() ) ); + m_pref->setStartupType( static_cast< Preferences::StartupType >( m_ui->startupTypeGroup->checkedId() ) ); m_pref->setWindowPositionsCorrection( m_ui->correctWinPosCheckBox->isChecked() ); m_pref->setWindowPositionsCorrectionType( static_cast< Preferences::WindowPositionsCorrectionType >( m_ui->positionGroup->checkedId() ) ); - - m_pref->setStartupType( static_cast< Preferences::StartupType >( m_ui->startupTypeGroup->checkedId() ) ); m_pref->setRestoreWindowPositions( m_ui->restorePositionscheckBox->isChecked() ); - m_pref->setCloseType( static_cast< Preferences::CloseType >( m_ui->closeTypeGroup->checkedId() ) ); m_pref->setInvertIcon( m_ui->invertIconCheckBox->isChecked() ); m_pref->setShowNumber( m_ui->showNumberCheckBox->isChecked() ); @@ -729,11 +727,11 @@ void PreferencesDialog::slotReject() setMinimizeType( m_pref->getMinimizeType() ); setMinimizeIconType( m_pref->getMinimizeIconType() ); + setCloseType( m_pref->getCloseType() ); + setStartupType( m_pref->getStartupType() ); setWindowPositionsCorrection( m_pref->getWindowPositionsCorrection() ); setWindowPositionsCorrectionType( m_pref->getWindowPositionsCorrectionType() ); - setStartupType( m_pref->getStartupType() ); setRestoreWindowPositions( m_pref->getRestoreWindowPositions() ); - setCloseType( m_pref->getCloseType() ); setInvertIcon( m_pref->getInvertIcon() ); setShowNumber( m_pref->getShowNumber() ); @@ -875,24 +873,6 @@ void PreferencesDialog::slotDebugChange() } -/* - * Handle the startup type change signal - */ -void PreferencesDialog::slotStartupTypeChange() -{ - setStartupType( m_pref->getStartupType() ); -} - - -/* - * Handle the restore window positions change signal - */ -void PreferencesDialog::slotRestoreWindowPositionsChange() -{ - setRestoreWindowPositions( m_pref->getRestoreWindowPositions() ); -} - - /* * Handle the minimize type change signal */ @@ -920,6 +900,42 @@ void PreferencesDialog::slotCloseTypeChange() } +/* + * Handle the startup type change signal + */ +void PreferencesDialog::slotStartupTypeChange() +{ + setStartupType( m_pref->getStartupType() ); +} + + +/* + * Handle the window positions correction change signal + */ +void PreferencesDialog::slotWindowPositionsCorrectionChange() +{ + setWindowPositionsCorrection( m_pref->getWindowPositionsCorrection() ); +} + + +/* + * Handle the window positions correction type change signal + */ +void PreferencesDialog::slotWindowPositionsCorrectionTypeChange() +{ + setWindowPositionsCorrectionType( m_pref->getWindowPositionsCorrectionType() ); +} + + +/* + * Handle the restore window positions change signal + */ +void PreferencesDialog::slotRestoreWindowPositionsChange() +{ + setRestoreWindowPositions( m_pref->getRestoreWindowPositions() ); +} + + /* * Handle the icon type change signal */ diff --git a/app/SysTray-X/SysTray-X-app/preferencesdialog.h b/app/SysTray-X/SysTray-X-app/preferencesdialog.h index 91e72cf..5c1c832 100644 --- a/app/SysTray-X/SysTray-X-app/preferencesdialog.h +++ b/app/SysTray-X/SysTray-X-app/preferencesdialog.h @@ -83,6 +83,13 @@ class PreferencesDialog : public QDialog */ void setMinimizeIconType( Preferences::MinimizeIconType minimize_icon_type ); + /** + * @brief setStartupType. Set the startup type. + * + * @param startup_type The startup type. + */ + void setStartupType( Preferences::StartupType startup_type ); + /** * @brief setWindowPositionsCorrection. Set the window postions correction state. * @@ -97,13 +104,6 @@ class PreferencesDialog : public QDialog */ void setWindowPositionsCorrectionType( Preferences::WindowPositionsCorrectionType position_correction ); - /** - * @brief setStartupType. Set the startup type. - * - * @param startup_type The startup type. - */ - void setStartupType( Preferences::StartupType startup_type ); - /** * @brief setRestoreWindowPositions. Set the restore window positions state. * @@ -337,6 +337,16 @@ class PreferencesDialog : public QDialog */ void slotStartupTypeChange(); + /** + * @brief slotWindowPositionsCorrectionChange. Slot for handling window positions correction change signals. + */ + void slotWindowPositionsCorrectionChange(); + + /** + * @brief slotWindowPositionsCorrectionTypeChange. Slot for handling window positions correction type change signals. + */ + void slotWindowPositionsCorrectionTypeChange(); + /** * @brief slotRestoreWindowPositionsChange. Slot for handling restore window positions change signals. */ diff --git a/app/SysTray-X/SysTray-X-app/systrayx.cpp b/app/SysTray-X/SysTray-X-app/systrayx.cpp index 7abd42e..3de05ed 100644 --- a/app/SysTray-X/SysTray-X-app/systrayx.cpp +++ b/app/SysTray-X/SysTray-X-app/systrayx.cpp @@ -122,6 +122,8 @@ SysTrayX::SysTrayX( QObject *parent ) : QObject( parent ) connect( m_preferences, &Preferences::signalIconDataChange, m_pref_dialog, &PreferencesDialog::slotIconDataChange ); connect( m_preferences, &Preferences::signalMinimizeTypeChange, m_pref_dialog, &PreferencesDialog::slotMinimizeTypeChange ); connect( m_preferences, &Preferences::signalMinimizeIconTypeChange, m_pref_dialog, &PreferencesDialog::slotMinimizeIconTypeChange ); + connect( m_preferences, &Preferences::signalWindowPositionsCorrectionChange, m_pref_dialog, &PreferencesDialog::slotWindowPositionsCorrectionChange ); + connect( m_preferences, &Preferences::signalWindowPositionsCorrectionTypeChange, m_pref_dialog, &PreferencesDialog::slotWindowPositionsCorrectionTypeChange ); connect( m_preferences, &Preferences::signalStartupTypeChange, m_pref_dialog, &PreferencesDialog::slotStartupTypeChange ); connect( m_preferences, &Preferences::signalRestoreWindowPositionsChange, m_pref_dialog, &PreferencesDialog::slotRestoreWindowPositionsChange ); connect( m_preferences, &Preferences::signalCloseTypeChange, m_pref_dialog, &PreferencesDialog::slotCloseTypeChange ); diff --git a/app/SysTray-X/SysTray-X-app/systrayxlink.cpp b/app/SysTray-X/SysTray-X-app/systrayxlink.cpp index 8a254c7..9c3adbb 100644 --- a/app/SysTray-X/SysTray-X-app/systrayxlink.cpp +++ b/app/SysTray-X/SysTray-X-app/systrayxlink.cpp @@ -696,6 +696,26 @@ void SysTrayXLink::DecodePreferences( const QJsonObject& pref ) m_pref->setStartupType( startup_type ); } + if( pref.contains( "windowPosCor" ) && pref[ "windowPosCor" ].isString() ) + { + bool window_positions_correction = pref[ "windowPosCor" ].toString() == "true"; + + /* + * Store the new window positions correction + */ + m_pref->setWindowPositionsCorrection( window_positions_correction ); + } + + if( pref.contains( "windowPosCorType" ) && pref[ "windowPosCorType" ].isString() ) + { + Preferences::WindowPositionsCorrectionType window_positions_correction_type = static_cast< Preferences::WindowPositionsCorrectionType >( pref[ "windowPosCorType" ].toString().toInt() ); + + /* + * Store the window positions correction type + */ + m_pref->setWindowPositionsCorrectionType( window_positions_correction_type ); + } + if( pref.contains( "restorePositions" ) && pref[ "restorePositions" ].isString() ) { bool resore_window_positions = pref[ "restorePositions" ].toString() == "true"; @@ -994,6 +1014,8 @@ void SysTrayXLink::EncodePreferences( const Preferences& pref ) prefObject.insert( "minimizeType", QJsonValue::fromVariant( QString::number( pref.getMinimizeType() ) ) ); prefObject.insert( "minimizeIconType", QJsonValue::fromVariant( QString::number( pref.getMinimizeIconType() ) ) ); prefObject.insert( "startupType", QJsonValue::fromVariant( QString::number( pref.getStartupType() ) ) ); + prefObject.insert( "windowPosCor", QJsonValue::fromVariant( QString( pref.getWindowPositionsCorrection() ? "true" : "false" ) ) ); + prefObject.insert( "windowPosCorType", QJsonValue::fromVariant( QString::number( pref.getWindowPositionsCorrectionType() ) ) ); prefObject.insert( "restorePositions", QJsonValue::fromVariant( QString( pref.getRestoreWindowPositions() ? "true" : "false" ) ) ); prefObject.insert( "closeType", QJsonValue::fromVariant( QString::number( pref.getCloseType() ) ) ); prefObject.insert( "defaultIconType", QJsonValue::fromVariant( QString::number( pref.getDefaultIconType() ) ) ); diff --git a/webext/background.js b/webext/background.js index e35fc3a..b5b010a 100644 --- a/webext/background.js +++ b/webext/background.js @@ -629,6 +629,8 @@ SysTrayX.Messaging = { "minimizeIconType", "closeType", "startupType", + "windowPosCor", + "windowPosCorType", "restorePositions", "defaultIconType", "defaultIconMime", @@ -667,6 +669,8 @@ SysTrayX.Messaging = { const minimizeIconType = result.minimizeIconType || "1"; const closeType = result.closeType || "1"; const startupType = result.startupType || "0"; + const windowPosCor = result.windowPosCor || "false"; + const windowPosCorType = result.windowPosCorType || "0"; const restorePositions = result.restorePositions || "false"; const defaultIconType = result.defaultIconType || "0"; const defaultIconMime = result.defaultIconMime || "image/png"; @@ -706,6 +710,8 @@ SysTrayX.Messaging = { minimizeIconType, closeType, startupType, + windowPosCor, + windowPosCorType, restorePositions, defaultIconType, defaultIconMime, @@ -825,6 +831,20 @@ SysTrayX.Link = { }); } + const windowPosCor = response["preferences"].windowPosCor; + if (windowPosCor) { + await storage().set({ + windowPosCor: windowPosCor, + }); + } + + const windowPosCorType = response["preferences"].windowPosCorType; + if (windowPosCorType) { + await storage().set({ + windowPosCorType: windowPosCorType, + }); + } + const restorePositions = response["preferences"].restorePositions; if (restorePositions) { await storage().set({ From f175250cb74e6f39404bece02195c9028c1c42f9 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 15 Apr 2024 22:27:42 +0200 Subject: [PATCH 61/80] Fix pref dialog --- app/SysTray-X/SysTray-X-app/preferences.ui | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/preferences.ui b/app/SysTray-X/SysTray-X-app/preferences.ui index 9b88e96..c0e1b98 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.ui +++ b/app/SysTray-X/SysTray-X-app/preferences.ui @@ -305,13 +305,6 @@ - - - - PushButton - - - @@ -1365,14 +1358,14 @@ - - - - + - + + + + From c1bb375ee2e8c5dd33628cf030350193095b7e54 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Mon, 15 Apr 2024 23:30:09 +0200 Subject: [PATCH 62/80] Add new prefs in TB gui, prep translations --- .../SysTray-X-app/languages/SysTray-X.de.ts | 231 ++++++++++-------- .../SysTray-X-app/languages/SysTray-X.el.ts | 231 ++++++++++-------- .../languages/SysTray-X.en-US.ts | 231 ++++++++++-------- .../SysTray-X-app/languages/SysTray-X.it.ts | 231 ++++++++++-------- .../SysTray-X-app/languages/SysTray-X.nl.ts | 231 ++++++++++-------- .../languages/SysTray-X.pt-BR.ts | 227 +++++++++-------- .../SysTray-X-app/languages/SysTray-X.ru.ts | 231 ++++++++++-------- .../languages/SysTray-X.zh-CN.ts | 231 ++++++++++-------- webext/_locales/de/messages.json | 25 ++ webext/_locales/el/messages.json | 25 ++ webext/_locales/en-US/messages.json | 25 ++ webext/_locales/it/messages.json | 25 ++ webext/_locales/nl/messages.json | 25 ++ webext/_locales/pt-BR/messages.json | 25 ++ webext/_locales/ru/messages.json | 25 ++ webext/_locales/zh-CN/messages.json | 25 ++ webext/css/options.css | 1 + webext/options.html | 57 +++++ webext/options.js | 82 ++++++- 19 files changed, 1375 insertions(+), 809 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts index 79c89b2..eba1905 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts @@ -9,43 +9,47 @@ Über SysTray-X - SysTray-X Companion App by Ximi1970 - SysTray-X Companion App by Ximi1970 + SysTray-X Companion App by Ximi1970 - + + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + + Version: Ausführung: - + 0.0.1 - + Build: Build: - - + + 0 - + Hash: Hash: - + Branch: Branch: - + master @@ -102,73 +106,73 @@ SysTray-X Einstellungen - + Default icon Standardsymbol - - - - + + + + Icon Symbol - + Minimize main to tray, close children Hauptfenster in Systemleiste verbergen, Kinderfenster schließen - + Minimize all windows to tray Alle Fenster in Systemleiste verbergen - - + + Default Thunderbird Thunderbird Symbol - + Lookthrough icon Unsichtbares Symbol - - + + Custom icon Benutzerdefiniert Symbol - - + + Choose Wählen - + KDE integration (Hide) KDE integration (Verbergen) - + Mail notification icon E-Mail-Benachrichtigung Symbol - + Blank icon Leeres Symbol - + New mail icon Neue Nachricht Symbol - + No icon Kein Symbol @@ -185,63 +189,63 @@ Dunkel - + Windows Fenster - + Close Schließen - + Restore startup positions Fensterpositionen wiederherstellen beim Start - + Minimize Minimieren - - + + Default minimize Standard Minimieren - + Minimize to tray, method 2 In Systemleiste verbergen, Methode 2 - + Default close Standard Schließen - + Minimize main, close children Hauptfenster minimieren, Kinderfenster schließen - + Minimize all windows Alle Fenster minimieren - + Start application minimized Anwendung minimiert starten - + Invert icon Symbol umkehren - + Number properties Nummereigenschaften @@ -250,248 +254,273 @@ Anzahl neuer Nachrichten anzeigen - + Number color Nummerfarbe - + Number size Nummergröße - + Alignment Nummernausrichtung - + Top left Oben links - + Top centre Oben in der Mitte - + Top right Oben rechts - + Middle left Mitte links - + Middle centre Mittleres Zentrum - + Middle right Mitte rechts - + Bottom left Unten links - + Bottom centre Unten in der Mitte - + Bottom right Unten rechts - + Margins (left, top, right, bottom): Ränder (links, oben, rechts, unten): - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Startup Start-up - + Default startup Standardstart - + Start application in tray Anwendung in Systemleiste starten - + Count Zähler - + Show message count Anzahl Nachrichten anzeigen - + Show new indicator Indikator für neue Nachrichten anzeigen - + Startup delay Startverzögerung - + Count type E-Mail-Benachrichtigungstyp - + Unread Ungelesene Nachrichten - + New Neue Nachrichten - + New indicator Neu Indikator - + Icon round Symbol rund - + Icon star Symbol Stern - + Shade Schattierung - + Special options Sonderoptionen - + API count method API-Zählmethode - + Apps Anwendungen - + Close application Stopanwendung - - + + Browse... Durchsuche... - - + + Arguments: Argumente: - + Start application Startanwendung - + Mail Nachrichten - + Use the preferences dialog in Thunderbird to select the accounts and folders Verwenden Sie den Einstellungsdialog in Thunderbird, um die Konten und Ordner auszuwählen - + Shortcuts Tastatürkürzel - + Current show / hide shortcut: Aktuelle Tastenkombination zum Anzeigen / Verbergen - + New show / hide shortcut: Neuer Tastenkombination zum Anzeigen / Verbergen - + Clear Löschen - + Debug Debug - + Display debug window Debug-Fenster anzeigen - + Save Speichern - + Cancel Annullieren - - + + Minimize to tray Hauptfenster minimieren - - + + Open Image Bild öffnen - - + + Image Files (*.png *.jpg *.bmp) Bilddateien (*.png *.jpg *.bmp) - - + + Select application Anwendung auswählen @@ -499,27 +528,27 @@ SysTrayX - + &Show/Hide &Anzeigen/Verbergen - + &Preferences &Einstellungen - + &About &Über - + &Quit &Beenden - + Close Schließen diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.el.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.el.ts index 1fede97..b1fb05c 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.el.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.el.ts @@ -9,43 +9,47 @@ Σχετικά με το SysTray-x - SysTray-X Companion App by Ximi1970 - Συνοδευτική εφαρμογή SysTray-X από τον Ximi1970 + Συνοδευτική εφαρμογή SysTray-X από τον Ximi1970 - + + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + + Version: Έκδοση: - + 0.0.1 - + Build: Εξαγωγή: - - + + 0 - + Hash: Κωδικός: - + Branch: Κλαδί: - + master @@ -102,63 +106,63 @@ Προτιμήσεις SysTray-X - + Default icon Προεπιλεγμένο εικονίδιο - - - - + + + + Icon Εικονίδιο - - + + Default Thunderbird Προεπιλογή Thunderbird - + Lookthrough icon Διαφανές εικονίδιο - - + + Custom icon Προσαρμοσμένο εικονίδιο - - + + Choose Επιλέξτε - + KDE integration (Hide) Ενσωμάτωση στον KDE (Απόκρυψη) - + Mail notification icon Εικονίδιο ειδοποίησης αλληλογραφίας - + Blank icon Κενό εικονίδιο - + New mail icon Εικονίδιο νέας αλληλογραφίας - + No icon Χωρίς εικονίδιο @@ -175,73 +179,73 @@ σκοτάδι - + Windows Παράθυρα - + Minimize Ελαχιστοποίηση - - + + Default minimize Προεπιλεγμένη ελαχιστοποίηση - + Minimize to tray, method 2 Μέθοδος 2 - + Close Κλείσιμο - + Default close Προεπιλεγμένο κλείσιμο - + Minimize main to tray, close children Ελαχιστοποίηση κυρίως παραθύρου στην περιοχή ειδοποιήσεων, κλείσιμο θυγατρικών - + Minimize all windows to tray Ελαχιστοποίηση όλων των παραθύρων στην περιοχή ειδοποιήσεων - + Minimize main, close children Ελαχιστοποίηση κυρίως παραθύρου, κλείσιμο θυγατρικών - + Minimize all windows Ελαχιστοποίηση όλων των παραθύρων - + Start application minimized Ελαχιστοποιημένη εκκίνηση της εφαρμογής - + Restore startup positions Επαναφορά θέσεων παραθύρου κατά την εκκίνηση - + Invert icon Αντιστρέψτε εικονίδιο - + Number properties Ιδιότητες αριθμών @@ -250,248 +254,273 @@ Προβολή μετρητή μη-αναγνωσμένης αλληλογραφίας - + Number color Χρώμα μετρητή - + Number size Μέγεθος μετρητή - + Alignment Ευθυγραμμία - + Top left Κορυφαίο αριστερά - + Top centre Κορυφαίο κέντρο - + Top right Κορυφαίο δεξιά - + Middle left Μέση αριστερά - + Middle centre Μεσαίο κέντρο - + Middle right Μέση δεξιά - + Bottom left Κάτω αριστερά - + Bottom centre Κάτω κέντρο - + Bottom right Κάτω δεξιά - + Margins (left, top, right, bottom): Περιθώρια (αριστερά, Κορυφαίο, δεξιά, Κάτω): - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Startup Αρχή - + Default startup Προεπιλεγμένη εκκίνηση - + Start application in tray Εκκινήστε την εφαρμογή στο δίσκο συστήματος - + Count Μετρητής - + Show message count Προβολή μετρητή αλληλογραφίας - + Show new indicator Εμφάνιση νέας ένδειξης - + Startup delay Καθυστέρηση έναρξης - + Count type Τύπος μετρητή μηνυμάτων - + Unread Μη αναγνωσμένα - + New Νέα - + New indicator Νέος δείκτης - + Icon round Στρογγυλό εικονίδιο - + Icon star Αστέρι εικονίδιο - + Shade Απόχρωση - + Special options Ειδικές επιλογές - + API count method Μέθοδος καταμέτρησης API - + Close application Κλείσιμο αίτησης - - + + Browse... ξεφυλλίζω... - - + + Arguments: Επιχειρήματα: - + Mail Αλληλογραφία - + Use the preferences dialog in Thunderbird to select the accounts and folders Χρησιμοποιήστε το παράθυρο διαλόγου Προτιμήσεις Thunderbird για να επιλέξετε λογαριασμούς και φακέλους - + Clear Αφαιρώ - + Debug Αποσφαλμάτωση - + Display debug window Προβολή παραθύρου αποσφαλμάτωσης - - + + Minimize to tray Ελαχιστοποίηση στην περιοχή ειδοποιήσεων - + Apps Εφαρμογές - + Start application Εφαρμογή εκκίνησης - + Shortcuts Συντομεύσεις - + Current show / hide shortcut: Τρέχουσα συντόμευση Εμφάνιση / Απόκρυψη - + New show / hide shortcut: Νέα συντόμευση Εμφάνιση / Απόκρυψη - + Save Αποθήκευση - + Cancel Άκυρο - - + + Open Image Άνοιγμα εικόνας - - + + Image Files (*.png *.jpg *.bmp) Αρχεία εικόνας (*.png *.jpg *.bmp) - - + + Select application επιλέξτε εφαρμογή @@ -499,27 +528,27 @@ SysTrayX - + &Show/Hide &Εμφάνιση/Απόκρυψη - + &Preferences &Προτιμήσεις - + &About &Σχετικά - + &Quit &Έξοδος - + Close Κλείσιμο diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.en-US.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.en-US.ts index 603d9cf..0a9fac6 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.en-US.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.en-US.ts @@ -9,45 +9,49 @@ About SysTray-X - SysTray-X Companion App by Ximi1970 - SysTray-X Companion App by Ximi1970 + SysTray-X Companion App by Ximi1970 - + + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + + Version: Version: - + 0.0.1 Do not translate - + Build: Build: - - + + 0 Do not translate - + Hash: Hash: - + Branch: Branch: - + master Do not translate @@ -107,73 +111,73 @@ SysTray-X Preferences - + Default icon Default icon - - - - + + + + Icon Icon - + Minimize main to tray, close children Minimize main to tray, close children - + Minimize all windows to tray Minimize all windows to tray - - + + Default Thunderbird Default Thunderbird - + Lookthrough icon Lookthrough icon - - + + Custom icon Custom icon - - + + Choose Choose - + KDE integration (Hide) KDE integration (Hide) - + Mail notification icon Mail notification icon - + Blank icon Blank icon - + New mail icon New mail icon - + No icon No icon @@ -190,63 +194,63 @@ Dark - + Windows Windows - + Close Close - + Restore startup positions Restore window positions on startup - + Minimize Minimize - - + + Default minimize Default minimize - + Minimize to tray, method 2 Minimize to tray, method 2 - + Default close Default close - + Minimize main, close children Minimize main, close children - + Minimize all windows Minimize all windows - + Start application minimized Start application minimized - + Invert icon Invert icon - + Number properties Number properties @@ -255,199 +259,224 @@ Display unread message count - + Number color Number color - + Number size Number size - + Alignment Alignment - + Top left Top left - + Top centre Top centre - + Top right Top right - + Middle left Middle left - + Middle centre Middle centre - + Middle right Middle right - + Bottom left Bottom left - + Bottom centre Bottom centre - + Bottom right Bottom right - + Margins (left, top, right, bottom): Margins (left, top, right, bottom): - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Startup Startup - + Default startup Default startup - + Start application in tray Start application in tray - + Count Count - + Show message count Show message count - + Show new indicator Show new messages indicator - + Startup delay Startup delay - + Count type Count type - + Unread Unread - + New New - + New indicator New indicator - + Icon round Icon round - + Icon star Icon star - + Shade Shade - + Special options Special options - + API count method API count method - + Apps Apps - + Close application Close application - - + + Browse... Browse... - - + + Arguments: Arguments: - + Start application Start application - + Mail Mail - + Use the preferences dialog in Thunderbird to select the accounts and folders Use the preferences dialog in Thunderbird to select the accounts and folders - + Shortcuts Shortcuts - + Current show / hide shortcut: Current Show / Hide shortcut - + New show / hide shortcut: New Show / Hide shortcut @@ -464,51 +493,51 @@ New shortcut - + Clear Clear - + Debug Debug - + Display debug window Display debug window - + Save Save - + Cancel Cancel - - + + Minimize to tray Minimize to tray - - + + Open Image Open Image - - + + Image Files (*.png *.jpg *.bmp) Image Files (*.png *.jpg *.bmp) - - + + Select application Select application @@ -516,27 +545,27 @@ SysTrayX - + &Show/Hide &Show/Hide - + &Preferences &Preferences - + &About &About - + &Quit &Quit - + Close Close diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.it.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.it.ts index 4ca907c..d234f8e 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.it.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.it.ts @@ -9,44 +9,48 @@ Informazioni su SysTray-X - SysTray-X Companion App by Ximi1970 Associata? Collegata? Pensarci ancora su. - Companion App per SysTray-X di Ximi1970 + Companion App per SysTray-X di Ximi1970 - + + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + + Version: Versione: - + 0.0.1 0.0.1 - + Build: Build: - - + + 0 0 - + Hash: Hash: - + Branch: Branch: - + master master @@ -103,63 +107,63 @@ Preferenze di SysTray-X - + Default icon Icona predefinita - - - - + + + + Icon Icona - - + + Default Thunderbird Predefinita di Thunderbird - + Lookthrough icon Icona trasparente - - + + Custom icon Icona personalizzata - - + + Choose Scegli - + KDE integration (Hide) Integrazione KDE (Nascondi) - + Mail notification icon Icona notifica posta - + Blank icon Icona vuota - + New mail icon Icona nuova posta - + No icon Nessuna icona @@ -176,73 +180,73 @@ Scuro - + Windows Finestre - + Minimize Minimizza - + Close Chiudi - - + + Default minimize Minimizzazione predefinita - + Minimize to tray, method 2 Minimizza nel vassoio, metodo 2 - + Default close Chiusura predefinita - + Minimize main to tray, close children Minimizza principale nel vassoio, chiudi sottofinestre - + Minimize all windows to tray Minimizza tutte le finestre nel vassoio - + Minimize main, close children Minimizza principale, chiudi sottofinestre - + Minimize all windows Minimizza tutte le finestre - + Start application minimized Avvia applicazione minimizzata - + Restore startup positions Ripristina le posizioni della finestra all'avvio - + Invert icon Icona inverti - + Number properties Proprietà numero @@ -251,248 +255,273 @@ Mostra numero di messaggi non letti - + Number color Colore numero - + Number size Dimensione numero - + Alignment Allineamento - + Top left A sinistra in alto - + Top centre In alto al centro - + Top right In alto a destra - + Middle left Al centro a sinistra - + Middle centre Centro centrale - + Middle right In mezzo a destra - + Bottom left In basso a sinistra - + Bottom centre In basso al centro - + Bottom right In basso a destra - + Margins (left, top, right, bottom): Margini (sinistra, in alto, destra, in basso): - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Startup Avviare - + Default startup Avvio predefinito - + Start application in tray Minimizza principale nel vassoio - + Count Conteggio - + Show message count Mostra numero di messaggi - + Show new indicator Mostra nuovo indicatore - + Startup delay Ritardo all'avvio - + Count type Tipo conteggio - + Unread Non letti - + New Nuovi - + New indicator Nuovo indicatore - + Icon round Icona rotonda - + Icon star Stella icona - + Shade Sfumatura - + Special options Opzioni speciali - + API count method Metodo di conteggio API - + Close application Applicazione alla chiusura - - + + Browse... Sfogliare... - - + + Arguments: Argomenti: - + Mail Messaggi - + Use the preferences dialog in Thunderbird to select the accounts and folders Usa la finestra di dialogo delle preferenze in Thunderbird per selezionare account e cartelle - + Clear Rimuovi - + Debug Debug - + Display debug window Mostra finestra di debug - - + + Minimize to tray Minimizza nel vassoio - + Apps Applicazioni - + Start application Applicazione di avvio - + Shortcuts Scorciatoie - + Current show / hide shortcut: Scorciatoia corrente Mostra / Nascondi - + New show / hide shortcut: Nuova scorciatoia Mostra / Nascondi - + Save Salva - + Cancel Annulla - - + + Open Image Apri immagine - - + + Image Files (*.png *.jpg *.bmp) File immagine (*.png *.jpg *.bmp) - - + + Select application Selezionare l'applicazione @@ -500,27 +529,27 @@ SysTrayX - + &Show/Hide &Mostra/Nascondi - + &Preferences &Preferenze - + &About &Informazioni - + &Quit &Esci - + Close Chiudi diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts index 008a520..5af7d57 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts @@ -9,45 +9,49 @@ Over SysTray-X - SysTray-X Companion App by Ximi1970 - SysTray-X Companion App door Ximi1970 + SysTray-X Companion App door Ximi1970 - + + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + + Version: Versie: - + 0.0.1 Niet vertalen - + Build: Build: - - + + 0 Niet vertalen - + Hash: Hash: - + Branch: Branch: - + master Niet vertalen @@ -106,73 +110,73 @@ SysTray-X Opties - + Default icon Standaard pictogram - - - - + + + + Icon Pictogram - + Minimize main to tray, close children Minimaliseer hoofdvenster, sluit kindvensters - + Minimize all windows to tray Minimaliseer alle vensters - - + + Default Thunderbird Standaard Thunderbird - + Lookthrough icon Doorzichtig pictogram - - + + Custom icon Aangepast pictogram - - + + Choose Kies - + KDE integration (Hide) KDE integratie (Verbergen) - + Mail notification icon Berichten notificatie pictogram - + Blank icon Leeg pictogram - + New mail icon Nieuw bericht pictogram - + No icon Geen pictogram @@ -189,63 +193,63 @@ Donker - + Windows Vensters - + Close Sluiten - + Restore startup positions Herstel vensterposities bij opstarten - + Minimize Minimaliseren - - + + Default minimize Standaard minimalisatie - + Minimize to tray, method 2 Minimaliseer naar systeemvak, methode 2 - + Default close Standaard sluiting - + Minimize main, close children Minimaliseer hoofdvenster, sluit kindvensters - + Minimize all windows Minimaliseer alle vensters - + Start application minimized Start programma geminimaliseerd - + Invert icon Inverteer pictogram - + Number properties Nummer opties @@ -254,248 +258,273 @@ Aantal ongelezen berichten weergeven - + Number color Nummer kleur - + Number size Nummer grootte - + Alignment Uitlijning - + Top left Linksboven - + Top centre Middenboven - + Top right Rechtsboven - + Middle left Midden links - + Middle centre Midden midden - + Middle right Midden rechts - + Bottom left Linksonder - + Bottom centre Middenonder - + Bottom right Rechtsonder - + Margins (left, top, right, bottom): Marges (links, boven, rechts, onder): - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Startup Opstarten - + Default startup Standaard opstarten - + Start application in tray Start in systeemvak - + Count Teller - + Show message count Aantal berichten weergeven - + Show new indicator Indicator voor nieuwe berichten - + Startup delay Opstartvertraging - + Count type Type berichttelling - + Unread Ongelezen - + New Nieuw - + New indicator Nieuw indicator - + Icon round Rond icoon - + Icon star Ster icoon - + Shade Tint - + Special options Speciale opties - + API count method API tel methode - + Apps Apps - + Close application Stop programma - - + + Browse... Bestand zoeken... - - + + Arguments: Argumenten: - + Start application Start programma - + Mail Berichten - + Use the preferences dialog in Thunderbird to select the accounts and folders Gebruik het voorkeurenvenster in Thunderbird om de accounts en mappen te selecteren - + Shortcuts Snelkoppelingen - + Current show / hide shortcut: Huidige snelkoppeling Tonen / Verbergen - + New show / hide shortcut: Nieuwe snelkoppeling Tonen / Verbergen - + Clear Verwijderen - + Debug Debug - + Display debug window Toon debug venster - + Save Bewaren - + Cancel Annnuleren - - + + Minimize to tray Minimaliseer naar systeemvak - - + + Open Image Open afbeelding - - + + Image Files (*.png *.jpg *.bmp) Afbeeldingsbestanden (*.png *.jpg *.bmp) - - + + Select application Selecteer programma @@ -503,27 +532,27 @@ SysTrayX - + &Show/Hide &Tonen/Verbergen - + &Preferences &Opties - + &About O&ver - + &Quit &Afsluiten - + Close Sluiten diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts index 9ac1a67..4cf3782 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts @@ -10,42 +10,42 @@ - SysTray-X Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + - + Version: Versão: - + 0.0.1 - + Build: - - + + 0 - + Hash: - + Branch: - + master @@ -105,73 +105,73 @@ SysTray-X Preferências - + Default icon Ícone padrão - - - - + + + + Icon Ícone - + Minimize main to tray, close children Minimize o pai para a bandeja, feche os filhos - + Minimize all windows to tray Minimize todas as janelas para a tray - - + + Default Thunderbird Padrão do Thunderbird - + Lookthrough icon Ícone transparente - - + + Custom icon Ícone personalizado - - + + Choose Escolher - + KDE integration (Hide) Integração com o KDE (oculta o ícone) - + Mail notification icon Ícone de notificação - + Blank icon Ícone branco - + New mail icon Ícone de novo e-mail - + No icon Nenhum ícone @@ -188,64 +188,64 @@ Escuro - + Windows Janela - + Close Fechar - + Restore startup positions Restaurar posições da janela na inicialização - + Minimize Miminizar - - + + Default minimize Comportamento padrão - + Minimize to tray, method 2 Minimizar para à área de notificações? (muito grande) Minimizar para a tray, método 2 - + Default close Fechamento padrão - + Minimize main, close children Minimize os filhos principais e próximos - + Minimize all windows Minimize todas as janelas - + Start application minimized Iniciar aplicação minimizada - + Invert icon Ícone inverter - + Number properties Propriedades do número @@ -254,248 +254,273 @@ Exibir contador de mensagens não lidas - + Number color Cor do número - + Number size Tamanho do número - + Alignment Alinhamento - + Top left Canto superior esquerdo - + Top centre Centro superior - + Top right Canto superior direito - + Middle left Meio esquerdo - + Middle centre Centro médio - + Middle right Meio à direita - + Bottom left Canto inferior esquerdo - + Bottom centre Centro inferior - + Bottom right Canto inferior direito - + Margins (left, top, right, bottom): Margens (esquerdo, superior, direito, inferior): - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Startup Comece - + Default startup Inicialização padrão - + Start application in tray Inicie o aplicativo na bandeja - + Count Contador - + Show message count Exibir contador de mensagens - + Show new indicator Mostrar novo indicador - + Startup delay Atraso de inicialização - + Count type Tipo do contador - + Unread Não lidos - + New Novos - + New indicator Novo indicador - + Icon round Ícone redondo - + Icon star Ícone de estrela - + Shade Matiz - + Special options Opções especiais - + API count method Método de contagem de API - + Apps Aplicativos - + Close application Fechando aplicativo - - + + Browse... Procurar... - - + + Arguments: Argumentos: - + Start application Aplicativo de inicialização - + Mail E-mail - + Use the preferences dialog in Thunderbird to select the accounts and folders Use a janela de preferências no Thunderbird para selecionar as contas e pastas - + Shortcuts Atalhos - + Current show / hide shortcut: Atual Mostrar / Ocultar atalho - + New show / hide shortcut: Novo atalho Mostrar / Ocultar - + Clear Remover - + Debug Depuração - + Display debug window Mostrar janela de depuração - + Save Salvar - + Cancel Cancelar - - + + Minimize to tray Minimizar para a tray - - + + Open Image Abrir imagem - - + + Image Files (*.png *.jpg *.bmp) Arquivo de imagem (*.png *.jpg *.bmp) - - + + Select application Selecione o aplicativo @@ -503,27 +528,27 @@ SysTrayX - + &Show/Hide &Exibir/Ocultar - + &Preferences &Preferências - + &About &Sobre - + &Quit &Sair - + Close Fechar diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.ru.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.ru.ts index b97e086..4ea77a2 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.ru.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.ru.ts @@ -9,43 +9,47 @@ О SysTray-X - SysTray-X Companion App by Ximi1970 - Приложение-компаньон к дополнению SysTray-X от Ximi1970 + Приложение-компаньон к дополнению SysTray-X от Ximi1970 - + + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + + Version: Версия: - + 0.0.1 - + Build: Сборка: - - + + 0 - + Hash: Хеш: - + Branch: Ветвь : - + master @@ -102,73 +106,73 @@ Настройки SysTray-X - + Default icon Иконка по умолчанию - - - - + + + + Icon Иконка - + Minimize main to tray, close children Свернуть главное окно в трей, закрыть остальные - + Minimize all windows to tray Свернуть все окна в трей - - + + Default Thunderbird Стандартная Thunderbird - + Lookthrough icon Прозрачная иконка - - + + Custom icon Своя иконка - - + + Choose Выбрать - + KDE integration (Hide) Интеграция с KDE (Скрыть) - + Mail notification icon Иконка уведомления - + Blank icon Пустая иконка - + New mail icon Иконка "Новые письма" - + No icon Без иконки (только цифры) @@ -185,64 +189,64 @@ Темная - + Windows Окна - + Close При закрытии - + Restore startup positions Восстановить положение окон при запуске - + Minimize Свернуть - - + + Default minimize Need documentation what methods do... Свернуть окно - + Minimize to tray, method 2 Свернуть в трей, вариант 2 - + Default close Закрыть - + Minimize main, close children Свернуть главное окно, закрыть другие - + Minimize all windows Свернуть все окна - + Start application minimized Запуск приложения свернутым - + Invert icon Инвертировать значок - + Number properties Настройки индикатора кол-ва @@ -251,248 +255,273 @@ Показывать кол-во непрочитанных писем - + Number color Цвет числа - + Number size Размер числа - + Alignment Выравнивание - + Top left Верхний левый - + Top centre Верхний центр - + Top right Верхний правый - + Middle left Средний левый - + Middle centre Средний центральный - + Middle right Средний правый - + Bottom left Нижний левый - + Bottom centre Нижний центральный - + Bottom right Нижний правый - + Margins (left, top, right, bottom): Отступ (левый, Верхний, правый, Нижний): - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Startup Запуск - + Default startup Запуск по умолчанию - + Start application in tray Запустить приложение в трее - + Count счетчик - + Show message count Показать количество писем - + Show new indicator Показать новый индикатор - + Startup delay Задержка запуска - + Count type Алгоритм подсчета - + Unread Непрочитанные - + New Новые - + New indicator Новый индикатор - + Icon round Круглый значок - + Icon star Значок звезды - + Shade Оттенок - + Special options Специальные опции - + API count method Метод подсчета API - + Apps Программы - + Close application Заявление о закрытии - - + + Browse... просматривать... - - + + Arguments: аргументы: - + Start application Приложение при запуске - + Mail Письма - + Use the preferences dialog in Thunderbird to select the accounts and folders Используйте диалоговое окно настроек в Thunderbird, чтобы выбрать учетные записи и папки - + Shortcuts Сочетания - + Current show / hide shortcut: Текущий ярлык Показать / Скрыть - + New show / hide shortcut: Новый ярлык Показать / Скрыть - + Clear Удалять - + Debug Отладка - + Display debug window Показывать окно отладки - + Save Сохранить - + Cancel Отменить - - + + Minimize to tray Свернуть в трей - - + + Open Image Открыть изображение - - + + Image Files (*.png *.jpg *.bmp) Файлы изображений (*.png *.jpg *.bmp) - - + + Select application выберите приложение @@ -500,27 +529,27 @@ SysTrayX - + &Show/Hide &Показать/Скрыть - + &Preferences &Настройки - + &About &О приложении - + &Quit &Выход - + Close Закрыть diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.ts index fe6a29b..7b7f2bd 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.ts @@ -9,43 +9,47 @@ 关于 SysTray-X - SysTray-X Companion App by Ximi1970 - SysTray-X 配套应用,作者 Ximi1970 + SysTray-X 配套应用,作者 Ximi1970 - + + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 + + + + Version: 版本: - + 0.0.1 0.0.1 - + Build: 构建: - - + + 0 0 - + Hash: Hash: - + Branch: 分支: - + master master @@ -102,380 +106,405 @@ SysTray-X 首选项 - + Windows 窗口 - + Close 关闭按钮 - + Default close 普通关闭 - + Minimize main to tray, close children 主窗口收回托盘,子窗口关闭 - + Minimize all windows to tray 所有窗口收回托盘 - + Minimize main, close children 主窗口最小化,子窗口关闭 - + Minimize all windows 所有窗口最小化 - + Startup 启动方式 - + Default startup 普通启动 - + Start application minimized 最小化启动 - + Start application in tray 启动至托盘 - + Restore startup positions 启动时恢复窗口位置 - + Minimize 最小化按钮 - - + + Default minimize 最小化 - - + + Minimize to tray 收回托盘 - + Minimize to tray, method 2 收回托盘,方法 2 - - - - + + + + Icon 图标 - + + Position + + + + + Correct window positions + + + + + No titlebar correction + + + + + Add titlebar size + + + + + Subtract titlebar size + + + + Default icon 默认 - - + + Default Thunderbird Thunderbird 默认 - + Lookthrough icon 透明 - - + + Custom icon 自定义 - - + + Choose 选择图标 - + KDE integration (Hide) KDE 集成(隐藏) - + Mail notification icon 有未读邮件时 - + Blank icon 空白 - + New mail icon 新邮件 - + No icon - + Invert icon 反色 - + Count 计数 - + Show message count 显示消息计数 - + Show new indicator 显示新消息提示 - + Startup delay 启动延迟秒数 - + Count type 计数类型 - + Unread 未读消息 - + New 新消息 - + Number properties 数字属性 - + Margins (left, top, right, bottom): 边距(左,上,中,下): - + Number color 颜色 - + Number size 字号 - + Alignment 位置 - + Top left 左上 - + Top centre 中上 - + Top right 右上 - + Middle left 左中 - + Middle centre 正中 - + Middle right 右中 - + Bottom left 左下 - + Bottom centre 中下 - + Bottom right 右下 - + New indicator 新消息提示 - + Icon round 圆点 - + Icon star 星形 - + Shade 背景色 - + Special options 特殊 - + API count method 由 API 提供计数方法 - + Apps 应用 - + Close application 关闭应用时 - - + + Browse... 浏览... - - + + Arguments: 参数: - + Start application 启动应用时 - + Mail 邮件 - + Use the preferences dialog in Thunderbird to select the accounts and folders 在 Thunderbird 的插件首选项中选择要监视的账户和文件夹 - + Shortcuts 快捷键 - + Current show / hide shortcut: 当前显示 / 隐藏快捷键: - + New show / hide shortcut: 新的显示 / 隐藏快捷键: - + Clear 清空 - + Debug 调试 - + Display debug window 显示调试窗口 - + Cancel 取消 - + Save 保存 - - + + Open Image 打开图片 - - + + Image Files (*.png *.jpg *.bmp) 图片文件(*.png *.jpg *.bmp) - - + + Select application 选择应用 @@ -483,27 +512,27 @@ SysTrayX - + &Show/Hide 显示 / 隐藏(&S) - + &Preferences 首选项(&P) - + &About 关于(&A) - + &Quit 退出(&Q) - + Close 关闭 diff --git a/webext/_locales/de/messages.json b/webext/_locales/de/messages.json index 6c628e1..f1ed22b 100644 --- a/webext/_locales/de/messages.json +++ b/webext/_locales/de/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "Fensterpositionen wiederherstellen beim Start", "description": "Restore the window positions on startup" diff --git a/webext/_locales/el/messages.json b/webext/_locales/el/messages.json index 7879664..bd948c9 100644 --- a/webext/_locales/el/messages.json +++ b/webext/_locales/el/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "Επαναφορά θέσεων παραθύρου κατά την εκκίνηση", "description": "Restore the window positions on startup" diff --git a/webext/_locales/en-US/messages.json b/webext/_locales/en-US/messages.json index f4621ec..64d8458 100644 --- a/webext/_locales/en-US/messages.json +++ b/webext/_locales/en-US/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "Restore window positions on startup", "description": "Restore the window positions on startup" diff --git a/webext/_locales/it/messages.json b/webext/_locales/it/messages.json index 15cab54..75f5211 100644 --- a/webext/_locales/it/messages.json +++ b/webext/_locales/it/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "Ripristina le posizioni della finestra all'avvio", "description": "Restore the window positions on startup" diff --git a/webext/_locales/nl/messages.json b/webext/_locales/nl/messages.json index 4af130b..adf38f0 100644 --- a/webext/_locales/nl/messages.json +++ b/webext/_locales/nl/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "Herstel vensterposities bij opstarten", "description": "Restore the window positions on startup" diff --git a/webext/_locales/pt-BR/messages.json b/webext/_locales/pt-BR/messages.json index 357f23c..3e30b27 100644 --- a/webext/_locales/pt-BR/messages.json +++ b/webext/_locales/pt-BR/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "Restaurar posições da janela na inicialização", "description": "Restore the window positions on startup" diff --git a/webext/_locales/ru/messages.json b/webext/_locales/ru/messages.json index 57f0e5a..1302428 100644 --- a/webext/_locales/ru/messages.json +++ b/webext/_locales/ru/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "Восстановить положение окон при запуске", "description": "Restore the window positions on startup" diff --git a/webext/_locales/zh-CN/messages.json b/webext/_locales/zh-CN/messages.json index 3625d63..6f49b54 100644 --- a/webext/_locales/zh-CN/messages.json +++ b/webext/_locales/zh-CN/messages.json @@ -154,6 +154,31 @@ "description": "Start application in tray" }, + "windows_positions_correction_options": { + "message": "Position", + "description": "Position" + }, + + "windows_positions_correction": { + "message": "Correct window positions", + "description": "Correct window positions" + }, + + "windows_no_correction": { + "message": "No titlebar correction", + "description": "No titlebar correction" + }, + + "windows_add_titlebar_size": { + "message": "Add titlebar size", + "description": "Add titlebar size" + }, + + "windows_subtract_titlebar_size": { + "message": "Subtract titlebar size", + "description": "Subtract titlebar size" + }, + "restore_positions_on_startup": { "message": "启动时恢复窗口位置", "description": "Restore the window positions on startup" diff --git a/webext/css/options.css b/webext/css/options.css index 85a78eb..c15c723 100644 --- a/webext/css/options.css +++ b/webext/css/options.css @@ -78,6 +78,7 @@ body { #minimizeiconselect, #closeselect, #startupselect, +#positionscorrectionselect, #defaulticonselect, #iconselect, #numberprops, diff --git a/webext/options.html b/webext/options.html index 4b620f0..6b51149 100644 --- a/webext/options.html +++ b/webext/options.html @@ -188,6 +188,63 @@ + + + + + + + + + + + + + + +
+ __MSG_windows_positions_correction_options__ +
+ + +
+ + +
+ + +
+ + +
+
Date: Tue, 16 Apr 2024 10:28:50 +0200 Subject: [PATCH 63/80] Hide option for windows --- webext/options.js | 1 + 1 file changed, 1 insertion(+) diff --git a/webext/options.js b/webext/options.js index 262fb50..cd0d7c5 100644 --- a/webext/options.js +++ b/webext/options.js @@ -1603,6 +1603,7 @@ async function start() { if ( !SysTrayX.Info.options.kdeIntegration || SysTrayX.Info.platformInfo.os !== "linux" ) { document.getElementById("kdeintegration").style.display = "none"; + document.getElementById("positionscorrectionselect").style.display = "none"; } // Enable save button From 612ed28663323cf5513d9e1fb9cf58c13e0e0c46 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 16 Apr 2024 20:23:56 +0200 Subject: [PATCH 64/80] Add google translations --- .../SysTray-X-app/languages/SysTray-X.de.qm | Bin 9279 -> 10048 bytes .../SysTray-X-app/languages/SysTray-X.de.ts | 12 ++++++------ .../SysTray-X-app/languages/SysTray-X.el.qm | Bin 9641 -> 10408 bytes .../SysTray-X-app/languages/SysTray-X.el.ts | 12 ++++++------ .../SysTray-X-app/languages/SysTray-X.it.qm | Bin 9339 -> 10158 bytes .../SysTray-X-app/languages/SysTray-X.it.ts | 12 ++++++------ .../SysTray-X-app/languages/SysTray-X.nl.qm | Bin 9061 -> 9760 bytes .../SysTray-X-app/languages/SysTray-X.nl.ts | 12 ++++++------ .../languages/SysTray-X.pt-BR.qm | Bin 8989 -> 9842 bytes .../languages/SysTray-X.pt-BR.ts | 12 ++++++------ .../SysTray-X-app/languages/SysTray-X.ru.qm | Bin 9062 -> 9745 bytes .../SysTray-X-app/languages/SysTray-X.ru.ts | 12 ++++++------ .../languages/SysTray-X.zh-CN.qm | Bin 6898 -> 7437 bytes .../languages/SysTray-X.zh-CN.ts | 12 ++++++------ webext/_locales/de/messages.json | 8 ++++---- webext/_locales/el/messages.json | 10 +++++----- webext/_locales/it/messages.json | 10 +++++----- webext/_locales/nl/messages.json | 10 +++++----- webext/_locales/pt-BR/messages.json | 10 +++++----- webext/_locales/ru/messages.json | 10 +++++----- webext/_locales/zh-CN/messages.json | 10 +++++----- 21 files changed, 76 insertions(+), 76 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.qm index 1d9ef5d56aa0d7d29d12743ae502e758270501dc..8c230adb69ea8d5e6d93d761f3ce70321a553b48 100644 GIT binary patch delta 1558 zcmbtTeNfYN82@bh{eIin7$AuZ4CX*P&y$G~ZwH)&VvGw>5a~tl1{-WAW3>HHpki02 zmm!+h3YARKODf7MU1vs~8s&NYQCDHF0v#C{cS%KPiT3i@G`j1qzuNb{zvuh%e4o$f z`8>}~-+iWRcalFFz!J{Tk5+jMs5}SEwnKQ_2Z+x>nBE9P-UTu11`u@^;@-1>@gx>? z3V>O}ve+2Dod@fp#{f+nteMZyuD)r_TVZXe1hf^fzV#*$F^$qSvw`>?ls(Z8_?5{h zFJ1}6oX5SF4g(2Qc;u;60=6hD`cpuxUXl6GAz)5Wk>54N`)?Ho%C`c7Uvd7AUjhA) za>2)TzAsX)sya{Gp={}W8c5!we6j02@(L&?oqGUPv`U+Hh3^JcQ4^EEZ9}SKzG?WO z{YiCvs)HBvg}o&w0rh@izp@QbTo!ujn2CBs_@rS3kmiZPK_;3~CB{t~fVit-;y8)U z{avgXC-LYBv33EiwnKciH=TeRXqVDHNxO{p9oh`qU&NCc6I5cKcxJiX&%guX*&Q+& z4@v4VGc!LWrCuVCey4Ot8Z%2?Cs{Oa06L3Qm}&$JqO`fNguo9=-B*gJ$Udp(GJ%s- z((|vRQQ9%-VAVR7CQAxF`W1<7kjAYCm`H^>yKjIc?o_{DzYv(!uKr-DpBK7|nvN(+ zqfgiDG;d^$$29#vlA)$kGmt~T+mC89d+BG`uJtX-Wq?8L_L6BTbVA$rApPbpjCkqU z-Sm?qK0N0Dl7xs0u_-Ls^@yR7K?23;bnc6QDMM%3(azqQ)~)&TWtN~tXY=>>QOfnY z*LJN164&a!y!H{9pV0kKS-=1}x{2Z!$Xu(RW#7iks`bkUSt@Z@zxn|Ziv3jIFge0z z{7v7jV5Z74{b&7SOsF$b>Wij?#gQxT87J}2BM)78mkA9=j(tPL62CAA$Aj#RYQu^p z*S%zP#E?Ir;=vh%Bg8zZ+t6}^-ET}Ww0E6grtTLoO^F^>A_TL^EoThFW;w=4mxg-JI#jK^Fgn z7W%hx%8X>=YB5?Es{j?@)5@9CY9dhkZw~Y+t;n##hLO0QFzP0}skcJ9D z;#{9+GdaDEx_q-!mYaOJ7E8TLb~e|f)q32PYM0xUo|Co2;%oKEUR&$p7IQ&GtFJP& ztj@F83QR>Fcatq}T38rpSB(b07q%&@mSYuZUd7jx!UQ|NUfRlV`VKU3IJgd_7`k_I z-H0~IQimH9$$`chZZU;+yGeG*4UQUH;HYt4(5()rjM*q+PF@Zdy+bcTqMJ|`NK7!r z&peJV@_4`B#em)ob=^OJxg2WiP2izgB%c+)%Eyrr zy_C5L@Fl+v*d+L}n~Av(aOH>al^1Y-3%)P90Y@dC&W{0N+pyzI2ngU$?DTF0mgM2N z@yo!&(K!01hlG<-iqQuwJt1Wuz6iuzl{U1@@V-N8-+2;HMx??2<`|bRufAIXID6zL z3kQh{^1;rx0C%7KUdvZNd`O;t`E44jR-EB!8p~Hc_0I$LQsvrAJ^7V7aeVGLAgvLt zdA)#EC*GA0(b3o9!i#jG-4^%ChXK`4MF)>p9aUrJO$s`ox+W-ec}U$iLE+B*>i*S4 z+k*O0XBr8w6Vr)P#0&~fB4!eItG$_FcEVI|Y$^$`@D=rDLk+M((QKoMfRUkj#z~~h z+L|Zm%zZ>lv46&dOWI~n9PbZluWrsGagNqDyM-Mo)Gkbt*!`H+QMj8=Qmk1ge&AEx z(Cs~fud2AidJG!bE7dIC1{yR;KON;n1I*A?mBjTsw0TMLmdd06a z^n#w!a12;hspl_z07OmddqZ8^f2)7o_$>3C`cUAn@2L1^J?y>2PRtllC8szXyNpc( z^&Gxi#xr{;Aj)TyPY-kGJ~!GVI+H#zz7LI3xD>f{`vefVEpqfeI}z7xifb0%JYc5& zT}`4yb3?zv{kU1WDA4t#dGLy#^?xyswe--4*XcHL8(E;wIa#EJECr1#X;-bkpn7lZ+M-~)NU^S} gr(~f+{xJ)a-<&ms6+#|x8Pw=Y$16ynAr2qf` diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts index eba1905..4798595 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.de.ts @@ -15,7 +15,7 @@ <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App von Ximi1970 @@ -321,27 +321,27 @@ Position - + Position Correct window positions - + Corriegere fensterpositionen No titlebar correction - + Keine Korrektur mit Titelleiste Add titlebar size - + Größe der Titelleiste hinzufügen Subtract titlebar size - + Größe der Titelleiste hinzufügen subtrahieren diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.el.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.el.qm index 5cd9a42b7466ab7c93378a6cb48a17f107670298..208ae568ae42ee2da23044e1f54764c292791b2a 100644 GIT binary patch delta 1534 zcma)5eN2>f9RJ+?p6B7-xDymq5V-)gMsU6$2m^-m9T#DohO4<9+#$E|qIXAv88=<7 z(sJe{Ic&a1NSWe^yhNb9Xf()tnJaDlVPlR}SWIi8t3HQ|w))3=_S^UQeShEI_w(|7 z?&RwFHG5}z7Xg^d75Fi#zXPn7f$$@c-f{!-JxF64fZ##MDUX3k6_5|~0ugr*|E>hY zF2RDyA-wwxvg3CE8Y{As_cQK(5@S1%U19~a$C2II4CtT7>NR1&^e>U~P8;A=uR!kd zWk6^P*5CaYh}?=d_Qe6l2$jXq0Zd6&CBJ?QnAWGtsJYMc$EriQZvxVQ>c*dckeFRP z`>LJy=cre#yTRyESJr(1m@le7sp$b?uBb zk)zQoN7t?8Xxxf_`z;bnRfe+<5$9mgqJ}OCI~&xu@i|~}bl-#;{-W zUd#s0xLMP7j|?@JG+n6#oOxTDT*o@oO07FSjSU`Z-(EEas0OtSn^_k%M^}GvFYD@b z-&}S8(Mh`7lVdsKFx?M>*9oN7>q~#6K&#%eyBe4pp05Lj(=1eiy67%NZl>yKD%tgdOH((NWg+8#O+X&UlyRC0sqw~>V;a?uIQTINd< z+1?(c!v-^o;erE2$UqF=J$yF7jWk&JY=o2hVpO02i6}%lN}0`Pwv=lgQjx+xp@sET zTpo6^@ht(B?3IbU@vLawD>7jg$9>zRXC0zZToC=-_J~eW`A=gF9f892a=Oi2 z>~a)k#1wlxo7`y@%SNZCxS}Aju)Nfg?<{rBOHG+;aaXxLE?ZSXWlUyXmD?J4%}=-3 zGJQWu7GJe^)vsiUBjTdy6y2gld@kBVGtt{clkkgE%yf!g(Z!6PHI2--vnH_b z5vRGn2%Jx_3R!Hon>|iXiKD>gGP|8yeOGle{8xkAB4OnONFy7yi+;lOh^FyIt>X<_ z2-i(m?tEWQnPr-`q}=6l6ne~CoMra%Ex!85S^lN^Gsg94qIR6gY0=2*=Xjx?En7q% zuLrn44b$+P@_&gIJ^^z2&KRQozfaFn#fFL#6n25Dg^ao>wQ)kECb!(}^aP5d{K=8S wQdy38UtA)iR<4r)k{BC$2R=wVUC26$Kn09r&N6(dJ$9-`{baE&u=k delta 886 zcmX9+32Y2u7=5#I>@l;mrLLZ~M-&Z3wT`5y(x&SyC7MX3)Ris?E8+<2s$JhJ3pm7)*S|581L?jXc!0N zKLmQ4A?ok$Ju!QMDHlD7fIEI86Dh#UT+ zJphL@A24Zf+-d;K6_}FO8|Yh)>3bRhx1eEW_GF+(90~$wfQTX3bRdz0+l3VEF3__^ zNZ)u8=+h)*RDR?C%R=?c9Tb)-yz2S^s80<8UK9gi<%XQOuZV9A>uL`IF`o=)D_em6 zKMftr4$)YhXbW`!y&A-;u1*R%Bi{Jtfg9p8Y0Hl-fRHI2&TRse7t%4q20D5z)hy|D zVw7Gw{eWC7ODDRGK9l=&>J+p}jtWv})MI&Jkix^V2~+LX-1 z2*5f}S(}+l;xwh|dlnN}rqp~Uam-ZZ#N0Vt$uY&ZwGFVHRDzCb8uA!N*EKVNe#S>j z2Qle@@#zSDw^W-vHurZvbeZDr3(UK7 z868fU>sGNYvdwbtXgTW&EN{aTxKoqmoxha?C91mOBMog*Q}%A=S=z4V{XNgsegNK}FhxRu7Yj)Mm`5fbgA~v%}9r*Q!+s zbS8YzUN^Q=_;~B&X+a)J&D#EfNko?F(hVPXep?^*do_th>lw`=6G_$=cMFUT=<6=I zIKNBZTzQj5vTf1Y*fI{-VQXK*6-Y;HUqfjmu3rwsuk_9r9p3lSZ=uk;G- <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Συνοδευτική εφαρμογή από το Ximi1970 @@ -321,27 +321,27 @@ Position - + Τοποθεσία Correct window positions - + Προσαρμόστε τις θέσεις των παραθύρων No titlebar correction - + Καμία διόρθωση γραμμής τίτλου Add titlebar size - + Προσθήκη μεγέθους γραμμής τίτλου Subtract titlebar size - + Αφαιρέστε το μέγεθος της γραμμής τίτλου diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.it.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.it.qm index f6da2577b4f6dbbd1e2c365f61bd63bfbad180d8..2baad7f74c8c8c7678deda15a72907e056325167 100644 GIT binary patch delta 1620 zcmcIjeN2>f9RJ+i^E`KOZ-PLeyqqWL8j}M>K?Y1jMUSbdMAX7MxCidm9e3Rw3A()1 zYUNALbxDS$$<%_h7mrafbB%JWKWY}PO=Yw)W~`)zG7}s1dCs@C`lElkXTRtBd%n;2 z`F>u$zq`5m-SvAj!$kn{xRf8GdIYE$1d<0JybuJ$Q3z9;0b?)3!asl+$q@IS0cNEj zXSV=Y>#=BN0>7OLd(N|f&I9|BeT+wMMeAAEJvBhwAnYH12z z0@bTl0*SSF`0`OU?!(hBXA|%zmCbM(nAxFPvaJia@4BkA;~Fr#NOiFKIY8)EotwVS zI=gz_*G?dzTU}Xuj(ybXwqvgVSwE}a>i8U(^Sye)^(vrQu8GT?q#&clJU&5zD>NsA zQwSrzTGMxJCmYra``4TTv{SaBDlK{(W;C@B!W@z53N2~jw#2z_5nnKF@(Rh&IW zq8X)P!x)Jt)QOGr7~=);__2Hf?qgiYILNq&@djf7adN~{1>>yyPW*J4GfY68cxG1! zuoO$$Q7d3tC}m$Jkm0H{KbOj~UXyIPURvjs%Cpn>zFm5%d<~F(TI!svpkr61Lstl# zRVlssPA-sEC>^eSkfYflMW4CAkwv93`$6JFwM9Jx6n0$uMe_r6R?>dCFw7T*#k!ql zT4UIud&#<)AFS8)|4N3sVcoz|0%lCcEjh+IGvb0d#Z;n-dvVPapc;{X z*vq>9_^$?KAk!XyapqjkxFUXdWQZf_(CfXID6ma$+qE4?S*_pjXE%`aquvqj?_uH% z{d;>ha<*Oi^Eb|t`LzC*nlf7K){n0`LgtSd5}nVpVW(l)5Jx4=H>`h@gp$@8JQE{y zz;5VNQK>p$__lwPPF*lcJu_(GM&ru0V?7H|F4`HQo^anbYt}_XJQJ#$>rWJWN z13V0qrqTfofiq3A!aQ@t)OLcWKW&R?d&fsqy3K4T-or+pm`6h#m3Ywn+xTJ<`M?ci zS49dmwc(Q}fddw}5P*y(l)}n=h?gHh6vM`=8E!ti(254+q7goLnXO~i%axC%DCD2e z#`<=y5IZ@zTYxt9D#NB&w&rfOj)*o^lo7QeHP+0}#}>Bo@oqsmq5Y9w;r_CRN*oqf zKyE6vx}ZF%(DgCgQ0+~IUA7S6-n3PtcD3UDj#H2f8LS$xxw>ijs=cFB;+Z7G03&aH6$y+E> zF~!FUpN=zw#FbF)bXr30kVkHC1S~=KR#~fLt0^HeoR%0pq3zZzT8?Udra*1I4X031 zTvZ@sHVyH92gsxBBXd&Hl2R*tfq>i?vTSj;IDK0zeqYcXnNGJvYxP~m@J6g-WssL5 zPnqbwj(2eW-c_miud-6s`R=J|yv4%pYq_gU4#*LIhB^9s>N3@w#DB<>@A{*wRyaSN qkrgePH6(=Vcs6`7y~>ICKL(PrskMP;gQoq3eU7(H+1zBkKzol&i&W>mFBq+!}(?36~Cu~)Ukl9bw#O6VZQ(m@D{T83IG zno3(Vmc)~yX@o|J9}UQ>FL^ol-FLt5ob#P~eeSOr$D#v003`D5 zeu#!NAmcF*83nQ52Z$Po&gFonLLU7au;oHNQwQ`ZLBe4H3`oa_h;Y`%!JDuLFr~ul zK1JN|9|zRIo0|ccqv5@K8?YS3%=x{5-c^`$uo?(R{V*?W8qnh!7Jn`W`cB5q6Y(UR zEV;CMKzNJf-hL72bzhoT)Xx78qzm)*Qdqe3va177OAUjc=dd1z>6tHyiw#>VP6EzG z!=<8!KyD1zj>$wHF`&W1ZO5u?vtq;*6&TP@aqPhHZ58 zMU<@WcA|`}^8J*Y02{xT>ke%K`nwcUQ!JeyRN_CANcAd1hSQm|P;r@W zvEZRHB|eJ(pDA0Wct|{5Irk%#6WO7Zw2;_2K`G5#$Vl=PefJv*vMSBq3p7+<8dF(I zL6N2>Yld>7%S=y`xoqOSQg@h-0Rj^<6`V5wxi4`j0fUUUePH=UpmM=l{LJ z(T`WNt1J24uHGn2XMKYDI`H!u6@OP-)5@sSt@X^=$3`o)lu!XP?$YKirGTDgT5ekd zFI`AGC()VoMys!GqVS}!X|tOt@M2ig2TmgDxJ^{)%>1k^@mC&+X4xjz8reU>wyIm8 zBV^lp&Bs2l <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App-X di Ximi1970 @@ -322,27 +322,27 @@ Position - + Posizione Correct window positions - + Posizioni corrette delle finestre No titlebar correction - + Nessuna correzione della barra del titolo Add titlebar size - + Aggiungi la dimensione della barra del titolo Subtract titlebar size - + Sottrai la dimensione della barra del titolo diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.qm index 93f80aab1538c2003b3ba5049ce1d9626a6b0278..82c56908ba9e487fba9009f8264f60c0084cc405 100644 GIT binary patch delta 1416 zcma)5e@v8R9RJ+i`@Z-4P9O&z|@DywCIf@%end z&pTAswP1UCcqV{c&e%h%Jpy>n026HxUJU_aJA|{kH&FQ{<81sJCNYcoBl@OuCw&p$Z(1wtNaCUeLH-IsiPJrzz^Z4NRJ=*;~005H@Ho{dJeX_Gq)d ztYy4iJAc_F+A3{J_nScaZtdHhrwA~l9c|bF=u&h>*B!=vt+S7e0uQ~cI~E#47{>Q? z$8T@pL5{GqypIf43465b0L@KdUmcm~j|yM;uTqIWMPWaQIv*F4$811yo0v9Cpp)~& z>R|$(Fd)`s(Hg77Bi++kP@$bcyMs25_AG5a?LDzCe}qarDSkGmHVjA|;_0m_5nq$^ zLryYZCr!Q1LY5NgQ5Tt|FPCJ)M+`V8l}t_LdB3!#q#Q^aly==IrDAubeZR7BdXm)j zu8Y$8r2WgDWk;-1bi;Q9CQHK=dr2fiKeK0mE#9O*TmKl9eO`ZlMwkcYcEc7sr7{0t zc*D7ZJ^t9xdy@zaD+~j(Sa9+!qr01awk5_;b|Dj-H@;RrMumEfJ*(-L)@piZ_jdXn zGYy_mfGK6BD@l*AW$R7fU%kkd+%TIPe+Dwr&GObZ-mMPv;=d2G1&L;FxVMKJznMSS zwuHSsYX0{33q-!re8W>riO-lv$_`SY%a+92b|xIO%(=)`i6<=2yg)!n%@+UYRVq+t z*`*;?!6!Z zl-P;}blm8&DKX?zPTE@Dng&>FdJSt(10Km)S(DYu2qgz2%!)%M?HM}Za_1t;X(}pXyk4ccN;mUV-^bd6Uy{& z8KFX zePl5;V|f+osxrGWo-%n+;6ETiM@>9^y0IB*eFvyJfT_O-U6)8ahyc-2){8m7I1*iQW zUYyJAX`R@bxY5RGlpTf2K`%%H#M>Iamu`j*~u^6M+bl5Zt|5GPh=T&IJT;xSz@9kq+K zE9gXS6rbdGF^OJDtmpBN!%|2;V+fX{Fh7Nc21-l)6mHFsmc(ep-+gbTY-xMbHT(130;;<6AK6^e#QY?E*Uvg9}vfo)l10ja-&22RJ z$lZ3B%vahbkSMg%Xm4Pl_QL3jpGYU8 zjXN_K9V(5@>sV*YF*P0C$GS?>tDtBmQf+$O^^^oIRbBIehAPy=iY>rEn>zQ;X&~^h zn%mmUeX)9e&peKDulmCMqmzois@;y0OyZ#yn75sc{95YMaz=hmo4tqv0)A=vJzaE~ zt{oBROt_>yZ}l;e%jWc%e!!e$_Pu8kHpwEkcscVEmZYBrob`RnKjypKqIGOVw2xaahB(iF??f&gv`V2*e52uiaxQBy}|~bfjmI-syQHz6)|96Gd<# z3kAsKDgim3C^5|xomu3{D#$HL$nn&PiQWs+cAfXQvR3ac)f&uRPpDn+O5ydQcW{&< F{RN!-;_?6h diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts index 5af7d57..639e0de 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.nl.ts @@ -15,7 +15,7 @@ <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App door Ximi1970 @@ -325,27 +325,27 @@ Position - + Positie Correct window positions - + Corrigeer vensterposities No titlebar correction - + Geen titelbalk correctie Add titlebar size - + Titlebalk grootte toevoegen Subtract titlebar size - + Titlebalk grootte aftrekken diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.qm index 1cd794cfcc9b7241477a29754b640945079f9714..8d522597183bba30ba3cf72d4b8df8264cc44ccc 100644 GIT binary patch delta 1539 zcmbtTe{54_6g_R$L$m~BAxNf(kZ4c{31XHYS;i7J<77dm5zp)5Lj23bzTDjJ-S>Ux zo^$Tk_sT|}+?5qw2w)yV{V{6~09EIJ2d+SPJpzb%5XLtFmMah!{0Z2fg}C=DkdcC% zw*(+N2lG>tc{UraoR*z zQBk%WNPZ1Z4}L`8BiQ=(Y`|*L$d=PU%4tpEi=9B)Z<^xv+rYFe&4G$n072AT{_75j z)oJH^?*WpAwJX+NCeA`_bJsgS)>ZAt?Oy?oliE?=9tyjuGvJ)3|FdNInBVBpKD`n1Su4kUlypy?rIWC?m7@-qW#4}4gQ9!B?&+brw znFW%5z)9s*((FMtvKXa@a;Yq9t0Wta@xWoJban>6e;_?yS`JJ zOP1d6$pzAjrH=LMIFSufeA|y4*c7O1d~G%dZ%|;^EbnLqrc|5P+&c`U{%&?hd%IbP zn~%1wkqc-7qoOk0T+vD^8 z2$O)(R@|p!;ik>2GSB?R*8B-?e|n3pwf%D{joK|mZFEMo4=5a!aLfMd$fG23&kxM9 z#|m_=Xdf2C4F`M(!;3l;!^yS6XEP!wg3PBLe!lzAgc{_c79j*#t!6dI$ipHm;GaT5pKpP-2HY|2Kd|_{0vD2q0 znKEtn@qS|Uo=-7>e?SyI^&sZy8Ki)D97Y@Hy-T6JgQ z+k{;0rj;m#hm30(AvBOfn4J~oAftf_Lwxse?VwWitExn;s0W0?Z}5b+#9A{RjBhm6S-oXgMF5p(Q-bpSu!Fdfps&jMuk_Pah5lh5cGONZ^~XN7 zXU5M=b!leW?$bf=Nq&ZkP{glHY&2z@7rZVGS-l(+qxUBms8;?TYtt&5YB*E6aKFEo HGF{@|sm^sS delta 860 zcmXAnc}P@I6vn@|&hp;OShlER=7ud+mYLN+(1ON{mX-?z6;!sNAvIC9Ijv+6n7YAo-%0*qF$_f$Nf#Ry6I zV<6;>kh;4T7*Qt7srbqL9m0j|Lj|(a~f1;`$*c z;qt4Z4nUr-$TeIZo1u*Aw-RW9V(%tsc$u=Mo8Z<)Wo-i0uu^HLn+Av()MV-w>U3%) zHHG>}X-es3B_=7&a|=AY_=D1VY#R`1Pz{~2bY7^&cQKJUS{*lq&g|K0lJPDNG^_LC z!?_<&x6gAju|+-mYXK|bP%ri{v0YSa^7DYGiK>79djf^1-L4BXRArb|-$H{23~d`G zu%b@G^JK1@N{n8c=NAVp#uKrt*xLqU;5*6GR%6R-CW>&FQtKF~J5BCH2QO$dl{r~D zRGR9yFfQzp`P#XYj1$ZsLgQGGcJs%M*KENjP22pHhSId8W2Hc7v9{#zb(Y?ytq#<4 z{!F`7zLely+B?th7bLFMdebkH)S(YAILyZ}Q=j|V%N`HtSt|%IY>!?P?BJuT(a#EW zCS>Yw1Dynqv!pHRCSZl7^9w5xmSL6e`PuUv>(oD6nJC&ir$yrYp>^F5V8l6V$xS!! ze`PJLct9iRwn*JkPUn%f&TVXgw8QqJcLrPH-NZ(J@vV?tzRz;AuT-*_<8pSobGNSE mIeD4yww&azRT4#irtya4FVxpt{5cUW!T-+QCi}<7xRie{!r!+5 diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts index 4cf3782..8d0b677 100644 --- a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts +++ b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.pt-BR.ts @@ -11,7 +11,7 @@ <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Aplicativo complementar de Ximi1970 @@ -321,27 +321,27 @@ Position - + Posição Correct window positions - + Posições corretas da janela No titlebar correction - + Nenhuma correção na barra de título Add titlebar size - + Adicionar tamanho da barra de título Subtract titlebar size - + Subtraia o tamanho da barra de título diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.ru.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.ru.qm index ae475d4223a61ee4adb449992f7d68e7dca60fa5..fbdaac53f6a787bfe8ff4bb06d028329044e1e1b 100644 GIT binary patch delta 1477 zcmZ`&3v82B7(H$8|M$6e4>ks4TbT!_#x}R#|9|(p=R4uN?%&1@QO_xj@3b3X9<+ki1h-{MddV?E{5l`yltPEA}jW3J?*+r9Xcou`S9; z7d$}XkaGUgOT=+0+Yh}6WIe1ry!~SmoTnUUc?nP@tF-w;Ja<`T>K~xMT-7_lVML() zUUh766F2h2j*1h2x>M{@b^wZ-V($tnQGY7FY`p@=T1o7q(40gmZP*B;4oDe&B${zU zYV0HN#9dO;Bt~tg^!lMfHf&&Uluwi1C(mqNtxvxTOzWo(O@vq%)gCWPC(c z_vTRf8aekG8yO1a$@x^4l`2~_@AAM^xh!`a_fN@d$|~5nUEVn~myR5j_ugRR%yaT9 zNAo!vle}-~5-PtT$DaI##8h%$4^%@dl_Gud#$Zf)@))){NG!MqXzT+lvKF-(U}YP%j~T}G{L*xvfl7jcQ1w9pCET7(!%nDc?drfgC=E_-#WFC9v?j5?;QyU^N<%k0$uxW43`=A6Fq}!p1+L zh4o>s5Ru$`nuc~_IZ-!~tsl)cu%m?)PMAe@beWhMjfpJh1Ep?rOQ3m$Bc~-4Y73TF zEGxaCmeq~1k=i*Gi*O=rz4E~_XJ1sd88nJcNx<1vT4q1NU` zcfcILHlemaB=N9~2kjyb80TzdtJ{FJ%sWO@Sos@o zQ9BBpR^z`*y6JWkZ`7Tb8Jm*6Sdnccb0zU7%A)+cTg;MieynG=F_vd jZ~ut9>suMKt`S*wviW}()9O|?a!^$IA1kx7=1YGAV?;HTFzujX$x{4g$b^!Wv{QHQ8K0xL@ zAY>rKHV+_5A=&t)+U!~-dX70b2N+)gsjK8Gkzgv0EY3T7J8?Y4{(xyHqzA>yRF9z&2hLa_CfG*XB zriJ@xtjK6n;ocN za$(x}T^T^wIPInP`(rA8t2MfgQ>m)A&)&*H$Mg};^7;5`^a-;lAo!i0(^N~Rntni{ zGwG@RB2dRf>Vs0pH2^`bpt^TVBCN_PF8SH>LTle2D@eT9np|z<{Ev0sKY&aX(du{A=UxkSCIb_8jki7 <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Приложение-компаньон от Ximi1970 @@ -322,27 +322,27 @@ Position - + Позиция Correct window positions - + Правильное расположение окон No titlebar correction - + Без исправления названия Add titlebar size - + Добавить размер заголовка Subtract titlebar size - + Вычтите размер строки заголовка diff --git a/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.qm b/app/SysTray-X/SysTray-X-app/languages/SysTray-X.zh-CN.qm index b7fa85a8a320c9539f36dc9eca0d98454e2cc0a3..26677c1693d238dcce6bdb24d3066c7a2848780e 100644 GIT binary patch delta 1271 zcmZuweN2>f9RJ>P&&xgB@f>h);>x^`LB`+#@blRwkMeI5%OM8Wg4^dfeFEIQN69ZJ%TuUUJr?P89M5=T2bX5XT>?G}YBShq5 zII7%MLKGdKopbLI=~#N{STYJ8QplPcMABYGZr51^WGRaJmT#a!hc34>_- z5N8g9xaJ;bNdXE!a2E!$kWU6~0PY5E1oi;4f!Da}*$e1|le@Xu>OOr z*(4|m@yT;2B!0)IW#%Yt3NtY4JDV< zcm5ay^Bd}4YK^eZsTa1LLx<)xan@Ina6q$p9HZi5H5I!+NE+2NFHS-6EzJo9lrq_x z??bZ?@E*k zvPGCD+>|;l;`YatNC*0^La9xwDL8^ev)WlNM#X-t{cRx!M7kWf5TE$7m36+8R7fT= zke%FQqXsIXB<#I-TggKOB;#!)2fpppMrO(&3%SS%Ydx$^tSri>Jp6<*{5!F{$YjDU zojQ=qNHq_vwJX+oRFvUiB*Ry(3mKz;jdz(4K;&RIM z4yPk4KQB}Ebb7pQQ)hZdlCh@KQybaV7s@81zn_);-OAD67@Nl=OV0b%XY4{CVAt+U z-KABboy23s7F(?bufyAHGn@Qfy2pcpaFI!snk*eH?FaWCubHVR_qD8eCvI`M-8PHY zu+PzAb?rMApA!5`EE3bC=Ke0U~vBFde5nJ=BG(!mu*A6w6qzEc2Bm1Ma%MRC~$h@$o z%uJLHtt<)JFxx~@vWO5nBv|j7T`b4gdL0BzyTe&x_Gd{IbGfU?RW2{S1+< zlE2#UkSK7N_m!L@;+G5NaUYDO2)CV65cEOl`dS5kAzQ5YUIFK`#m1~2IM^dL^9SJQ zk=VKgPFS1xqI3jFY+>R>90#vrK~ow8RkP4h2(@Z#<0ynHPuQk8KfKO$Uov>Z;k;Ig{0JiXnlyJFoY@K`yL<-? z?NWMV2);j%_NHeMSq7x0Z%dI#jnp~@Vq3U$v9JIuDUsYq-at@^H0o%9fyIV}9sMx) z$na!q6cYMm7>vWYoFrG7UElCfD%XauM?;wGnSe4WMebh&B5R#7sU3x;c%w5q84f~? zm05_6&Ko;+qRw*6bnQYt>WWNntr1A%v+3Q)OAuUElpP-+XhN}9mm~5?CHL=jtn#D@pIVKw3k&#CRSaw4g&lxsinRVI1N>s zI5^`P)mI)b68Y(uv0@YgOZ>d=k%T2%6T95l`DHEk=PnTUXsP`I<_p^9X@S;3ZGWc| z^P9EuhHeoB0(?A?tO2t(#CYrJ#UcfB+aUn(@5Qn$~eRhaV xw~JAxh}C7z{9PN$V%F#lqTPLlE#Te$awqRLDoc#|DcgH@Ti|@b9TqYs`~wdy <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> Companion App by Ximi1970 - + <a href="https://github.com/Ximi1970/systray-x">SysTray-X</a> 配套应用,作者 Ximi1970 @@ -198,27 +198,27 @@ Position - + 位置 Correct window positions - + 正确的窗口位置 No titlebar correction - + 没有标题栏修正 Add titlebar size - + 添加标题栏大小 Subtract titlebar size - + 减去标题栏大小 diff --git a/webext/_locales/de/messages.json b/webext/_locales/de/messages.json index f1ed22b..4f28721 100644 --- a/webext/_locales/de/messages.json +++ b/webext/_locales/de/messages.json @@ -160,22 +160,22 @@ }, "windows_positions_correction": { - "message": "Correct window positions", + "message": "Corriegere fensterpositionen", "description": "Correct window positions" }, "windows_no_correction": { - "message": "No titlebar correction", + "message": "Keine Korrektur mit Titelleiste", "description": "No titlebar correction" }, "windows_add_titlebar_size": { - "message": "Add titlebar size", + "message": "Größe der Titelleiste hinzufügen", "description": "Add titlebar size" }, "windows_subtract_titlebar_size": { - "message": "Subtract titlebar size", + "message": "Größe der Titelleiste hinzufügen subtrahieren", "description": "Subtract titlebar size" }, diff --git a/webext/_locales/el/messages.json b/webext/_locales/el/messages.json index bd948c9..cddda6d 100644 --- a/webext/_locales/el/messages.json +++ b/webext/_locales/el/messages.json @@ -155,27 +155,27 @@ }, "windows_positions_correction_options": { - "message": "Position", + "message": "Τοποθεσία", "description": "Position" }, "windows_positions_correction": { - "message": "Correct window positions", + "message": "Προσαρμόστε τις θέσεις των παραθύρων", "description": "Correct window positions" }, "windows_no_correction": { - "message": "No titlebar correction", + "message": "Καμία διόρθωση γραμμής τίτλου", "description": "No titlebar correction" }, "windows_add_titlebar_size": { - "message": "Add titlebar size", + "message": "Προσθήκη μεγέθους γραμμής τίτλου", "description": "Add titlebar size" }, "windows_subtract_titlebar_size": { - "message": "Subtract titlebar size", + "message": "Αφαιρέστε το μέγεθος της γραμμής τίτλου", "description": "Subtract titlebar size" }, diff --git a/webext/_locales/it/messages.json b/webext/_locales/it/messages.json index 75f5211..9875c2a 100644 --- a/webext/_locales/it/messages.json +++ b/webext/_locales/it/messages.json @@ -155,27 +155,27 @@ }, "windows_positions_correction_options": { - "message": "Position", + "message": "Posizione", "description": "Position" }, "windows_positions_correction": { - "message": "Correct window positions", + "message": "Posizioni corrette delle finestre", "description": "Correct window positions" }, "windows_no_correction": { - "message": "No titlebar correction", + "message": "Nessuna correzione della barra del titolo", "description": "No titlebar correction" }, "windows_add_titlebar_size": { - "message": "Add titlebar size", + "message": "Aggiungi la dimensione della barra del titolo", "description": "Add titlebar size" }, "windows_subtract_titlebar_size": { - "message": "Subtract titlebar size", + "message": "Sottrai la dimensione della barra del titolo", "description": "Subtract titlebar size" }, diff --git a/webext/_locales/nl/messages.json b/webext/_locales/nl/messages.json index adf38f0..6b644c3 100644 --- a/webext/_locales/nl/messages.json +++ b/webext/_locales/nl/messages.json @@ -155,27 +155,27 @@ }, "windows_positions_correction_options": { - "message": "Position", + "message": "Positie", "description": "Position" }, "windows_positions_correction": { - "message": "Correct window positions", + "message": "Corrigeer vensterposities", "description": "Correct window positions" }, "windows_no_correction": { - "message": "No titlebar correction", + "message": "Geen titelbalk correctie", "description": "No titlebar correction" }, "windows_add_titlebar_size": { - "message": "Add titlebar size", + "message": "Titlebalk grootte toevoegen", "description": "Add titlebar size" }, "windows_subtract_titlebar_size": { - "message": "Subtract titlebar size", + "message": "Titlebalk grootte aftrekken", "description": "Subtract titlebar size" }, diff --git a/webext/_locales/pt-BR/messages.json b/webext/_locales/pt-BR/messages.json index 3e30b27..35127b5 100644 --- a/webext/_locales/pt-BR/messages.json +++ b/webext/_locales/pt-BR/messages.json @@ -155,27 +155,27 @@ }, "windows_positions_correction_options": { - "message": "Position", + "message": "Posição", "description": "Position" }, "windows_positions_correction": { - "message": "Correct window positions", + "message": "Posições corretas da janela", "description": "Correct window positions" }, "windows_no_correction": { - "message": "No titlebar correction", + "message": "Nenhuma correção na barra de título", "description": "No titlebar correction" }, "windows_add_titlebar_size": { - "message": "Add titlebar size", + "message": "Adicionar tamanho da barra de título", "description": "Add titlebar size" }, "windows_subtract_titlebar_size": { - "message": "Subtract titlebar size", + "message": "Subtraia o tamanho da barra de título", "description": "Subtract titlebar size" }, diff --git a/webext/_locales/ru/messages.json b/webext/_locales/ru/messages.json index 1302428..8b6d68a 100644 --- a/webext/_locales/ru/messages.json +++ b/webext/_locales/ru/messages.json @@ -155,27 +155,27 @@ }, "windows_positions_correction_options": { - "message": "Position", + "message": "Позиция", "description": "Position" }, "windows_positions_correction": { - "message": "Correct window positions", + "message": "Правильное расположение окон", "description": "Correct window positions" }, "windows_no_correction": { "message": "No titlebar correction", - "description": "No titlebar correction" + "description": "Без исправления названия" }, "windows_add_titlebar_size": { - "message": "Add titlebar size", + "message": "Добавить размер заголовка", "description": "Add titlebar size" }, "windows_subtract_titlebar_size": { - "message": "Subtract titlebar size", + "message": "Вычтите размер строки заголовка", "description": "Subtract titlebar size" }, diff --git a/webext/_locales/zh-CN/messages.json b/webext/_locales/zh-CN/messages.json index 6f49b54..7543550 100644 --- a/webext/_locales/zh-CN/messages.json +++ b/webext/_locales/zh-CN/messages.json @@ -155,27 +155,27 @@ }, "windows_positions_correction_options": { - "message": "Position", + "message": "位置", "description": "Position" }, "windows_positions_correction": { - "message": "Correct window positions", + "message": "正确的窗口位置", "description": "Correct window positions" }, "windows_no_correction": { - "message": "No titlebar correction", + "message": "没有标题栏修正", "description": "No titlebar correction" }, "windows_add_titlebar_size": { - "message": "Add titlebar size", + "message": "添加标题栏大小", "description": "Add titlebar size" }, "windows_subtract_titlebar_size": { - "message": "Subtract titlebar size", + "message": "减去标题栏大小", "description": "Subtract titlebar size" }, From 97f9afe579bb6f22a89982d544cc27aafc6288df Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Tue, 16 Apr 2024 21:52:00 +0200 Subject: [PATCH 65/80] Fix option visibility --- webext/options.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webext/options.js b/webext/options.js index cd0d7c5..8946388 100644 --- a/webext/options.js +++ b/webext/options.js @@ -1603,6 +1603,9 @@ async function start() { if ( !SysTrayX.Info.options.kdeIntegration || SysTrayX.Info.platformInfo.os !== "linux" ) { document.getElementById("kdeintegration").style.display = "none"; + } + + if ( SysTrayX.Info.platformInfo.os !== "linux" ) { document.getElementById("positionscorrectionselect").style.display = "none"; } From ef264455525a8e372c903faeac4703bb2eb84498 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 17 Apr 2024 19:44:24 +0200 Subject: [PATCH 66/80] Extend width --- app/SysTray-X/SysTray-X-app/preferences.ui | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/preferences.ui b/app/SysTray-X/SysTray-X-app/preferences.ui index c0e1b98..1434b67 100644 --- a/app/SysTray-X/SysTray-X-app/preferences.ui +++ b/app/SysTray-X/SysTray-X-app/preferences.ui @@ -6,7 +6,7 @@ 0 0 - 558 + 663 519 @@ -1358,14 +1358,14 @@ - - - - - - - - + + + + + + + + From 4ef176f3f907efa0ec47072bb34bd025ae05a9df Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 17 Apr 2024 19:54:49 +0200 Subject: [PATCH 67/80] Cleanup --- .../SysTray-X-app/windowctrl-unix.cpp | 37 ++++++------------- .../SysTray-X-lib-x11/systray-x-lib-x11.cpp | 9 +---- .../SysTray-X-lib-x11/systray-x-lib-x11.h | 2 +- 3 files changed, 13 insertions(+), 35 deletions(-) diff --git a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp index d1d4253..02bcd72 100644 --- a/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp +++ b/app/SysTray-X/SysTray-X-app/windowctrl-unix.cpp @@ -151,9 +151,9 @@ QString WindowCtrlUnix::getProcessName( qint64 pid ) const */ void WindowCtrlUnix::findWindows( qint64 pid ) { -//#ifdef DEBUG_DISPLAY_ACTIONS +#ifdef DEBUG_DISPLAY_ACTIONS emit signalConsole( "Find windows" ); -//#endif +#endif QList< WindowItem > windows = listXWindows( m_display, GetDefaultRootWindow( m_display ) ); @@ -185,8 +185,6 @@ void WindowCtrlUnix::findWindows( qint64 pid ) if( old_positions.contains( win.window ) ) { point = old_positions[ win.window ]; - - emit signalConsole( QString( "Old position found: %1, %2" ).arg( point.x() ).arg( point.y() ) ); } else { @@ -386,22 +384,16 @@ void WindowCtrlUnix::updatePositions() int bottom; GetWindowFrameExtensions( m_display, window, &left, &top, &right, &bottom ); -//#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS +#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS emit signalConsole( QString( "Margins: %1, %2, %3, %4" ).arg( left ).arg( top ).arg( right ).arg( bottom ) ); -//#endif +#endif /* * Get the position */ int x; int y; - int x1; - int y1; - int x2; - int y2; - int x3; - int y3; - GetWindowPosition( m_display, window, &x, &y, &x1, &y1, &x2, &y2, &x3, &y3 ); + GetWindowPosition( m_display, window, &x, &y ); /* * Apply the requested correction @@ -435,21 +427,16 @@ void WindowCtrlUnix::updatePositions() { m_tb_window_positions[ window ] = point; - emit signalConsole( QString( "Update pos changed" ) ); - /* * Mar the list changed */ changed = true; } -//#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS +#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS emit signalConsole( QString( "Update pos: %1, %2" ).arg( x ).arg( y ) ); - emit signalConsole( QString( "Update pos1: %1, %2" ).arg( x1 ).arg( y1 ) ); - emit signalConsole( QString( "Update pos2: %1, %2" ).arg( x2 ).arg( y2 ) ); - emit signalConsole( QString( "Update pos3: %1, %2" ).arg( x3 ).arg( y3 ) ); emit signalConsole( QString( "Update pos corrected: %1, %2" ).arg( point.x() ).arg( point.y() ) ); -//#endif +#endif } } @@ -673,8 +660,6 @@ void WindowCtrlUnix::normalizeWindow( quint64 window ) QPoint pos = m_tb_window_positions[ window ]; MoveWindow( m_display, window, pos.x(), pos.y() ); Flush( m_display ); - - emit signalConsole( QString( "Set pos: %1, %2" ).arg( pos.x() ).arg( pos.y() ) ); } /* @@ -735,17 +720,17 @@ void WindowCtrlUnix::deleteWindow( quint64 window ) */ void WindowCtrlUnix::setPositions( QList< QPoint > window_positions ) { -//#ifdef DEBUG_DISPLAY_ACTIONS +#ifdef DEBUG_DISPLAY_ACTIONS emit signalConsole( "Set positions" ); -//#endif +#endif for( int i = 0 ; i < m_tb_windows.length() ; ++i ) { quint64 window = m_tb_windows.at( i ); -//#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS +#ifdef DEBUG_DISPLAY_ACTIONS_DETAILS emit signalConsole( QString( "Set pos: %1, %2").arg( window_positions.at( i ).x() ).arg( window_positions.at( i ).y() ) ); -//#endif +#endif if( i < window_positions.length() ) { QPoint pos = window_positions.at( i ); diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp index ed08251..5371e4e 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.cpp @@ -460,7 +460,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* /* * Get the window position */ -void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d, int* x3d, int* y3d ) +void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y ) { Display* dsp = (Display*)display; @@ -498,13 +498,6 @@ void GetWindowPosition( void* display, quint64 window, int* pos_x, int* pos_y *pos_x = x - xwa.x; *pos_y = y - xwa.y; - - *x1d = x1; - *y1d = y1; - *x2d = x2; - *y2d = y2; - *x3d = xwa.x; - *y3d = xwa.y; } diff --git a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h index c1813a3..a99b77f 100644 --- a/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h +++ b/app/SysTray-X/SysTray-X-lib-x11/systray-x-lib-x11.h @@ -251,7 +251,7 @@ void GetWindowFrameExtensions( void *display, quint64 window, int* left, int* * @param pos_x Storage for the x coordinate * @param pos_y Storage for the y coordinate */ -void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y, int* x1d, int* y1d, int* x2d, int* y2d, int* x3d, int* y3d ); +void GetWindowPosition( void *display, quint64 window, int* pos_x, int* pos_y ); /** * @brief GetWindowRectangle. Get the window rectangle. From 3b726fe48e4f305ddf58b3ef06f6c3445a3d2d0b Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Wed, 17 Apr 2024 21:12:41 +0200 Subject: [PATCH 68/80] Update changelogs --- dist/deb/gnome/debian.changelog | 2 ++ dist/deb/kde/debian.changelog | 2 ++ dist/deb/minimal/debian.changelog | 2 ++ dist/rpm/gnome/systray-x-gnome.changes | 2 ++ dist/rpm/kde/systray-x.changes | 2 ++ dist/rpm/minimal/systray-x-minimal.changes | 2 ++ 6 files changed, 12 insertions(+) diff --git a/dist/deb/gnome/debian.changelog b/dist/deb/gnome/debian.changelog index 2afa477..798f4ba 100644 --- a/dist/deb/gnome/debian.changelog +++ b/dist/deb/gnome/debian.changelog @@ -3,6 +3,8 @@ systray-x-gnome (0.9.9-1) unstable; urgency=low * Update to 0.9.9 - Qt 6 fixes + - Added window positions correction option + - Bugfixes systray-x-gnome (0.9.8-1) unstable; urgency=low diff --git a/dist/deb/kde/debian.changelog b/dist/deb/kde/debian.changelog index 6e4de3c..f0e1c3d 100644 --- a/dist/deb/kde/debian.changelog +++ b/dist/deb/kde/debian.changelog @@ -3,6 +3,8 @@ systray-x (0.9.9-1) unstable; urgency=low * Update to 0.9.9 - Qt 6 fixes + - Added window positions correction option + - Bugfixes systray-x (0.9.8-1) unstable; urgency=low diff --git a/dist/deb/minimal/debian.changelog b/dist/deb/minimal/debian.changelog index 90ccf3f..51d0e64 100644 --- a/dist/deb/minimal/debian.changelog +++ b/dist/deb/minimal/debian.changelog @@ -3,6 +3,8 @@ systray-x-minimal (0.9.9-1) unstable; urgency=low * Update to 0.9.9 - Qt 6 fixes + - Added window positions correction option + - Bugfixes systray-x-minimal (0.9.8-1) unstable; urgency=low diff --git a/dist/rpm/gnome/systray-x-gnome.changes b/dist/rpm/gnome/systray-x-gnome.changes index 5fe5dc9..689f6fc 100644 --- a/dist/rpm/gnome/systray-x-gnome.changes +++ b/dist/rpm/gnome/systray-x-gnome.changes @@ -4,6 +4,8 @@ Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 - Qt 6 fixes + - Added window positions correction option + - Bugfixes ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders diff --git a/dist/rpm/kde/systray-x.changes b/dist/rpm/kde/systray-x.changes index 5fe5dc9..689f6fc 100644 --- a/dist/rpm/kde/systray-x.changes +++ b/dist/rpm/kde/systray-x.changes @@ -4,6 +4,8 @@ Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 - Qt 6 fixes + - Added window positions correction option + - Bugfixes ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders diff --git a/dist/rpm/minimal/systray-x-minimal.changes b/dist/rpm/minimal/systray-x-minimal.changes index 5fe5dc9..689f6fc 100644 --- a/dist/rpm/minimal/systray-x-minimal.changes +++ b/dist/rpm/minimal/systray-x-minimal.changes @@ -4,6 +4,8 @@ Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 - Qt 6 fixes + - Added window positions correction option + - Bugfixes ------------------------------------------------------------------- Sun Dec 10 13:24:00 UTC 2023 - Maxime Rijnders From 16a4afa3062a532d9e2a9b7bba68f4c6d5e49b91 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Fri, 26 Apr 2024 23:34:56 +0200 Subject: [PATCH 69/80] Fix rpm --- dist/rpm/kde/systray-x.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index c809223..161becd 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -31,10 +31,11 @@ BuildRequires: pkgconfig(Qt6Core) BuildRequires: pkgconfig(Qt6Widgets) BuildRequires: kf6-kstatusnotifieritem-devel %if 0%{?fedora_version} +Requires: kf6-knotifications %else Requires: kf6-knotifications -%endif Requires: libKF6Notifications6 +%endif %else BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Widgets) From 5239aef852271b889b6564f717068e1e1d6490c3 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 27 Apr 2024 15:13:46 +0200 Subject: [PATCH 70/80] Update README for Ubuntu 24.04 LTS and Fedora 40 --- README.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/README.md b/README.md index 0e51a10..d118e9c 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,42 @@ sudo zypper in systray-x-minimal Installing the repository: +###### 24.04 LTS + +Remove the Thunderbird snap package: +```bash +sudo apt remove thunderbird +``` + +Install the deb Thunderbird repository: +```bash +sudo add-apt-repository ppa:mozillateam/ppa +sudo nano /etc/apt/preferences.d/mozillateamppa + +``` + +Insert this into the preferences file (it blocks the snap package): +```bash +Package: thunderbird* +Pin: release o=LP-PPA-mozillateam +Pin-Priority: 1001 +``` +Save the file. + +Refresh the repositories and install the deb version of Thunderbird: +```bash +sudo apt update +sudo apt install thunderbird +``` + +Now install the SysTray-X repository: +```bash +wget -q https://download.opensuse.org/repositories/home:/Ximi1970/xUbuntu_24.04/Release.key +sudo mv -f Release.key /etc/apt/trusted.gpg.d/Systray-x.Ximi1970.asc +sudo bash -c 'echo "deb https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/xUbuntu_24.04 ./" > /etc/apt/sources.list.d/systray-x.list' +sudo apt update +``` + ###### 23.10 ```bash @@ -307,6 +343,13 @@ sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/ho sudo dnf update --refresh ``` +###### 40 + +```bash +sudo dnf config-manager --add-repo https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/Fedora_40/home:Ximi1970:Mozilla:Add-ons.repo +sudo dnf update --refresh +``` + ###### 39 ```bash From ddf0bce8c09f8e2a50516ea14d2c0371961cb91b Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 27 Apr 2024 16:02:55 +0200 Subject: [PATCH 71/80] Update changelogs --- dist/deb/gnome/debian.changelog | 1 + dist/deb/kde/debian.changelog | 1 + dist/deb/minimal/debian.changelog | 1 + dist/rpm/gnome/systray-x-gnome.changes | 3 ++- dist/rpm/kde/systray-x.changes | 3 ++- dist/rpm/minimal/systray-x-minimal.changes | 3 ++- 6 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dist/deb/gnome/debian.changelog b/dist/deb/gnome/debian.changelog index 798f4ba..9d9efac 100644 --- a/dist/deb/gnome/debian.changelog +++ b/dist/deb/gnome/debian.changelog @@ -3,6 +3,7 @@ systray-x-gnome (0.9.9-1) unstable; urgency=low * Update to 0.9.9 - Qt 6 fixes + - TB 121+ fixes - Added window positions correction option - Bugfixes diff --git a/dist/deb/kde/debian.changelog b/dist/deb/kde/debian.changelog index f0e1c3d..b17fc95 100644 --- a/dist/deb/kde/debian.changelog +++ b/dist/deb/kde/debian.changelog @@ -3,6 +3,7 @@ systray-x (0.9.9-1) unstable; urgency=low * Update to 0.9.9 - Qt 6 fixes + - TB 121+ fixes - Added window positions correction option - Bugfixes diff --git a/dist/deb/minimal/debian.changelog b/dist/deb/minimal/debian.changelog index 51d0e64..c069bcc 100644 --- a/dist/deb/minimal/debian.changelog +++ b/dist/deb/minimal/debian.changelog @@ -3,6 +3,7 @@ systray-x-minimal (0.9.9-1) unstable; urgency=low * Update to 0.9.9 - Qt 6 fixes + - TB 121+ fixes - Added window positions correction option - Bugfixes diff --git a/dist/rpm/gnome/systray-x-gnome.changes b/dist/rpm/gnome/systray-x-gnome.changes index 689f6fc..8127db6 100644 --- a/dist/rpm/gnome/systray-x-gnome.changes +++ b/dist/rpm/gnome/systray-x-gnome.changes @@ -1,9 +1,10 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders +Tue Apr 27 16:00:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 - Qt 6 fixes + - TB 121+ fixes - Added window positions correction option - Bugfixes diff --git a/dist/rpm/kde/systray-x.changes b/dist/rpm/kde/systray-x.changes index 689f6fc..8127db6 100644 --- a/dist/rpm/kde/systray-x.changes +++ b/dist/rpm/kde/systray-x.changes @@ -1,9 +1,10 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders +Tue Apr 27 16:00:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 - Qt 6 fixes + - TB 121+ fixes - Added window positions correction option - Bugfixes diff --git a/dist/rpm/minimal/systray-x-minimal.changes b/dist/rpm/minimal/systray-x-minimal.changes index 689f6fc..8127db6 100644 --- a/dist/rpm/minimal/systray-x-minimal.changes +++ b/dist/rpm/minimal/systray-x-minimal.changes @@ -1,9 +1,10 @@ ------------------------------------------------------------------- -Tue Apr 2 21:32:00 UTC 2024 - Maxime Rijnders +Tue Apr 27 16:00:00 UTC 2024 - Maxime Rijnders * Update to 0.9.9 - Qt 6 fixes + - TB 121+ fixes - Added window positions correction option - Bugfixes From d3ec96ec8265052c45a9c8f369396172717407bb Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 27 Apr 2024 16:27:02 +0200 Subject: [PATCH 72/80] Cleanup --- create_linux_gnome_installers.sh | 711 --------------------- create_linux_kde_installers.sh | 572 ----------------- create_linux_minimal_installers.sh | 564 ---------------- create_linux_staging_gnome_installers.sh | 711 --------------------- create_linux_staging_kde_installers.sh | 572 ----------------- create_linux_staging_minimal_installers.sh | 563 ---------------- create_win_installers.sh | 74 --- 7 files changed, 3767 deletions(-) delete mode 100755 create_linux_gnome_installers.sh delete mode 100755 create_linux_kde_installers.sh delete mode 100755 create_linux_minimal_installers.sh delete mode 100755 create_linux_staging_gnome_installers.sh delete mode 100755 create_linux_staging_kde_installers.sh delete mode 100755 create_linux_staging_minimal_installers.sh delete mode 100755 create_win_installers.sh diff --git a/create_linux_gnome_installers.sh b/create_linux_gnome_installers.sh deleted file mode 100755 index a29fd2e..0000000 --- a/create_linux_gnome_installers.sh +++ /dev/null @@ -1,711 +0,0 @@ -#!/bin/bash - -VERSION=`git describe --long | sed "s/-.*//"` - -OBS_REPO_BASE="https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons" -TARGET_DIR="bin" - -GNOME_APPINDICATOR="https://github.com/ubuntu/gnome-shell-extension-appindicator.git" - -OBS_PACKAGE="systray-x-gnome" - -ENABLE_RPM=true -ENABLE_DEB=true -ENABLE_PAC=true - -OBS_RPM_ARCHS="" -OBS_RPM_PKS="" -OBS_RPM_GNOME_EXT="" -OBS_RPM_ARCHS+="openSUSE_Leap_15.4/x86_64 " -OBS_RPM_PKS+="_ " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/i586 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_GNOME_EXT+="master " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/x86_64 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_GNOME_EXT+="master " -OBS_RPM_ARCHS+="15.4/x86_64 " -OBS_RPM_PKS+="lp154 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="15.5/x86_64 " -OBS_RPM_PKS+="lp155 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="Fedora_37/x86_64 " -OBS_RPM_PKS+="fed37 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="Fedora_38/x86_64 " -OBS_RPM_PKS+="fed38 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="Fedora_39/x86_64 " -OBS_RPM_PKS+="fed39 " -OBS_RPM_GNOME_EXT+="master " -OBS_RPM_ARCHS+="Fedora_Rawhide/x86_64 " -OBS_RPM_PKS+="fedraw " -OBS_RPM_GNOME_EXT+="master " - - -OBS_DEB_ARCHS="" -OBS_DEB_PKS="" -OBS_DEB_GNOME_EXT="" -OBS_DEB_ARCHS+="Debian_10/i386 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="Debian_10/amd64 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="Debian_11/i386 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_GNOME_EXT+="v34 " -OBS_DEB_ARCHS+="Debian_11/amd64 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_GNOME_EXT+="v34 " -OBS_DEB_ARCHS+="Debian_12/i386 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="Debian_12/amd64 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="Debian_Unstable/amd64 " -OBS_DEB_PKS+="debunstable " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="Debian_Testing/amd64 " -OBS_DEB_PKS+="debtest " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="xUbuntu_18.04/i386 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="xUbuntu_18.04/amd64 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="xUbuntu_20.04/amd64 " -OBS_DEB_PKS+="focal2004 " -OBS_DEB_GNOME_EXT+="0 " -OBS_DEB_ARCHS+="xUbuntu_22.04/amd64 " -OBS_DEB_PKS+="jammy2022 " -OBS_DEB_GNOME_EXT+="0 " -OBS_DEB_ARCHS+="xUbuntu_23.04/amd64 " -OBS_DEB_PKS+="lunar2023 " -OBS_DEB_GNOME_EXT+="0 " -OBS_DEB_ARCHS+="xUbuntu_23.10/amd64 " -OBS_DEB_PKS+="mantic2023 " -OBS_DEB_GNOME_EXT+="0 " - - -OBS_PAC_ARCHS="" -OBS_PAC_PKS="" -OBS_PAC_ARCHS+="Arch/x86_64 " -OBS_PAC_PKS+="arch " -OBS_PAC_GNOME_EXT+="master " - - -create_gnome_extension_tar() { - - local GIT_BASE=$1 - local GNOME_EXT=$2 - - ########################################## - # - # Create user installable - # gnome-shell-extension-appindicator - # - ########################################## - - if [ -f gnome-shell-extension-${GNOME_EXT}.tar.xz ] ; then - return - fi - - if [ ${GNOME_EXT} != "v26" ] && - [ ${GNOME_EXT} != "v34" ] && - [ ${GNOME_EXT} != "v46" ] && - [ ${GNOME_EXT} != "v53" ] && - [ ${GNOME_EXT} != "master" ] ; then - return - fi - - git clone -q ${GIT_BASE} - pushd gnome-shell-extension-appindicator > /dev/null 2>&1 - git checkout -q ${GNOME_EXT} - popd > /dev/null 2>&1 - - # - # Create tar - # - mv -f gnome-shell-extension-appindicator appindicatorsupport@rgcjonas.gmail.com - tar -cJf gnome-shell-extension-${GNOME_EXT}.tar.xz appindicatorsupport@rgcjonas.gmail.com - - # - # Cleanup - # - rm -rf appindicatorsupport@rgcjonas.gmail.com -} - - -create_rpm_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local RPM_NAME_EXT=$4 - local GNOME_EXT=$5 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find rpm - # - local RPM_FILE=$(grep ">${OBS_PACKAGE}-${VERSION}.*rpm<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*rpm\)<.*/\1/") - rm -f index.html - - echo "Found: "${RPM_FILE} - - FOUND_VERSION=$(echo ${RPM_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Add the gnome extension to the tar - # - if [ "${GNOME_EXT}" == "v26" ] && [ -f gnome-shell-extension-v26.tar.xz ] ; then - cp -f gnome-shell-extension-v26.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v34" ] && [ -f gnome-shell-extension-v34.tar.xz ] ; then - cp -f gnome-shell-extension-v34.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v46" ] && [ -f gnome-shell-extension-v46.tar.xz ] ; then - cp -f gnome-shell-extension-v46.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "master" ] && [ -f gnome-shell-extension-master.tar.xz ] ; then - cp -f gnome-shell-extension-master.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - - # - # Get the SysTray-X rpm - # - if [ ! -f ${RPM_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${RPM_FILE}" - fi - - # - # Get compression type - # - COMPRESSION=$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}\n' ${RPM_FILE}) -# echo ${COMPRESSION} - - case ${COMPRESSION} in -# zstd) - # - # Extract - # -# rpm2cpio ${RPM_FILE} | zstd -d | cpio --quiet -idm - - # - # Get files - # -# cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X -# chmod 755 ./${TAR_DIR}/SysTray-X -# cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi -# ;; - *) - # - # Extract - # - rpm2cpio ${RPM_FILE} | cpio --quiet -idm - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - if [ -d ./usr/share/doc/packages ] ; then - cp -f ./usr/share/doc/packages/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - if [ -d ./usr/share/doc/${OBS_PACKAGE} ] ; then - cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - cp -f ./usr/share/doc/${OBS_PACKAGE}*/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - fi - fi - ;; - esac - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the RPM - # - if [ "${RPM_NAME_EXT}" != "_" ] ; then - NEW_RPM_FILE=`echo ${RPM_FILE} | sed -s "s/\(systray-x-gnome-${FOUND_VERSION}-\)\(.*\)/\1${RPM_NAME_EXT}\.\2/"` - mv -f ${RPM_FILE} $NEW_RPM_FILE - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_deb_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local DEB_NAME_EXT=$4 - local GNOME_EXT=$5 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find deb - # - local DEB_FILE=$(grep ">${OBS_PACKAGE}_${VERSION}.*\.deb<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*deb\)<.*/\1/") - rm -f index.html - - echo "Found: "${DEB_FILE} - - FOUND_VERSION=$(echo ${DEB_FILE} | sed -e "s/${OBS_PACKAGE}_\(.*\)_.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Add the gnome extension to the tar - # - if [ "${GNOME_EXT}" == "v26" ] && [ -f gnome-shell-extension-v26.tar.xz ] ; then - cp -f gnome-shell-extension-v26.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v34" ] && [ -f gnome-shell-extension-v34.tar.xz ] ; then - cp -f gnome-shell-extension-v34.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v46" ] && [ -f gnome-shell-extension-v46.tar.xz ] ; then - cp -f gnome-shell-extension-v46.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "master" ] && [ -f gnome-shell-extension-master.tar.xz ] ; then - cp -f gnome-shell-extension-master.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - - # - # Get the SysTray-X deb - # - if [ ! -f ${DEB_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${DEB_FILE}" - fi - - # - # Extract - # - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/bin/SysTray-X > ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi > ./${TAR_DIR}/systray-x@Ximi1970.xpi - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the DEB - # - if [ "${DEB_NAME_EXT}" != "_" ] ; then - NEW_DEB_FILE=`echo ${DEB_FILE} | sed -s "s/\(${OBS_PACKAGE}\_${FOUND_VERSION}\_\)\(.*\)/\1${DEB_NAME_EXT}\_\2/"` - mv -f ${DEB_FILE} ${NEW_DEB_FILE} - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_pac_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local PAC_NAME_EXT=$4 - local GNOME_EXT=$5 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - curl -s "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" > index.html - - # - # Find rpm - # - local PAC_FILE=$(grep ">${OBS_PACKAGE}-[^dgm].*${VERSION}.*\.zst<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-[^d].*zst\)<.*/\1/") - rm -f index.html - - echo "Found: "${PAC_FILE} - - FOUND_VERSION=$(echo ${PAC_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Add the gnome extension to the tar - # - if [ "${GNOME_EXT}" == "v26" ] && [ -f gnome-shell-extension-v26.tar.xz ] ; then - cp -f gnome-shell-extension-v26.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v34" ] && [ -f gnome-shell-extension-v34.tar.xz ] ; then - cp -f gnome-shell-extension-v34.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v46" ] && [ -f gnome-shell-extension-v46.tar.xz ] ; then - cp -f gnome-shell-extension-v46.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "master" ] && [ -f gnome-shell-extension-master.tar.xz ] ; then - cp -f gnome-shell-extension-master.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - - # - # Get the SysTray-X rpm - # - if [ ! -f ${PAC_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${PAC_FILE}" - fi - - if [ ! -f systray-x.tar.zst ] ; then - cp -f ${PAC_FILE} systray-x.tar.zst - fi - - tar -I zstd -xf systray-x.tar.zst - - rm -f systray-x.tar.zst - rm -f .BUILDINFO - rm -f .INSTALL - rm -f .MTREE - rm -f .PKGINFO - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - cp -f ./usr/lib/thunderbird/distribution/extensions/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # -# tar -C "./${TAR_DIR}" -cJf "${TAR_DIR}.tar.xz" . - tar -C "./${TAR_DIR}" -cJf systray-x.tar.xz . - mv -f systray-x.tar.xz ${TAR_DIR}.tar.xz - - # - # Rename the PAC - # - if [ "${PAC_NAME_EXT}" != "_" ] ; then - NEW_PAC_FILE=`echo ${PAC_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${PAC_NAME_EXT}\.\2/"` - mv -f "${PAC_FILE}" "$NEW_PAC_FILE" - fi - - # - # Cleanup - # - rm -rf "${TAR_DIR}" -} - -################################################################################# -# -# -# Main -# -# -################################################################################# - -mkdir -p $TARGET_DIR -pushd $TARGET_DIR > /dev/null 2>&1 - -if [ "$ENABLE_RPM" = true ] ; then - # - # Create bash installers for RPM based distributions - # - INDEX=1 - for rpmdir in $OBS_RPM_ARCHS ; do - - echo - echo - echo "Generating installer: "${rpmdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${rpmdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${rpmdir} | cut -d'/' -f2) - - RPM_NAME_EXT=$(echo ${OBS_RPM_PKS} | cut -d' ' -f${INDEX}) - GNOME_EXT=$(echo ${OBS_RPM_GNOME_EXT} | cut -d' ' -f${INDEX}) - - # - # Generate the gnome tar file - # - create_gnome_extension_tar ${GNOME_APPINDICATOR} ${GNOME_EXT} - - # - # Generate the SysTray-X tar file - # - create_rpm_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${RPM_NAME_EXT} ${GNOME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Gnome setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Gnome.sh" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_DEB" = true ] ; then - # - # Cleanup - # - rm -f gnome-shell-extension.tar.xz - - # - # Create bash installers for DEB based distributions - # - INDEX=1 - for debdir in $OBS_DEB_ARCHS ; do - - echo - echo - echo "Generating installer: "${debdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${debdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${debdir} | cut -d'/' -f2) - - DEB_NAME_EXT=$(echo ${OBS_DEB_PKS} | cut -d' ' -f${INDEX}) - GNOME_EXT=$(echo ${OBS_DEB_GNOME_EXT} | cut -d' ' -f${INDEX}) - - # - # Generate the gnome tar file - # - create_gnome_extension_tar ${GNOME_APPINDICATOR} ${GNOME_EXT} - - # - # Generate the SysTray-X tar file - # - create_deb_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${DEB_NAME_EXT} ${GNOME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Gnome setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Gnome.sh" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_PAC" = true ] ; then - # - # Create bash installers for PAC based distributions - # - INDEX=1 - for pacdir in $OBS_PAC_ARCHS ; do - - echo - echo - echo "Generating installer: "${pacdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${pacdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${pacdir} | cut -d'/' -f2) - - PAC_NAME_EXT=$(echo ${OBS_PAC_PKS} | cut -d' ' -f${INDEX}) - GNOME_EXT=$(echo ${OBS_DEB_GNOME_EXT} | cut -d' ' -f${INDEX}) - - # - # Generate the gnome tar file - # - create_gnome_extension_tar ${GNOME_APPINDICATOR} ${GNOME_EXT} - - # - # Generate the SysTray-X tar file - # - create_pac_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${PAC_NAME_EXT} ${GNOME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Gnome setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Gnome.sh" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -# -# Cleanup -# -rm -f gnome-shell-extension-*.tar.xz - -popd > /dev/null 2>&1 diff --git a/create_linux_kde_installers.sh b/create_linux_kde_installers.sh deleted file mode 100755 index ed72de6..0000000 --- a/create_linux_kde_installers.sh +++ /dev/null @@ -1,572 +0,0 @@ -#!/bin/bash - -VERSION=`git describe --long | sed "s/-.*//"` - -OBS_REPO_BASE="https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons" -TARGET_DIR="bin" - -OBS_PACKAGE="systray-x" - -ENABLE_RPM=true -ENABLE_DEB=true -ENABLE_PAC=true - -OBS_RPM_ARCHS="" -OBS_RPM_PKS="" -OBS_RPM_ARCHS+="openSUSE_Leap_15.4/x86_64 " -OBS_RPM_PKS+="_ " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/i586 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/x86_64 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="15.4/x86_64 " -OBS_RPM_PKS+="lp154 " -OBS_RPM_ARCHS+="15.5/x86_64 " -OBS_RPM_PKS+="lp155 " -OBS_RPM_ARCHS+="Fedora_37/x86_64 " -OBS_RPM_PKS+="fed37 " -OBS_RPM_ARCHS+="Fedora_38/x86_64 " -OBS_RPM_PKS+="fed38 " -OBS_RPM_ARCHS+="Fedora_39/x86_64 " -OBS_RPM_PKS+="fed39 " -OBS_RPM_ARCHS+="Fedora_Rawhide/x86_64 " -OBS_RPM_PKS+="fedraw " - - -OBS_DEB_ARCHS="" -OBS_DEB_PKS="" -OBS_DEB_ARCHS+="Debian_10/i386 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_10/amd64 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_11/i386 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_11/amd64 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_12/i386 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_12/amd64 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_Unstable/amd64 " -OBS_DEB_PKS+="debunstable " -OBS_DEB_ARCHS+="Debian_Testing/amd64 " -OBS_DEB_PKS+="debtest " -OBS_DEB_ARCHS+="xUbuntu_18.04/i386 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_18.04/amd64 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_20.04/amd64 " -OBS_DEB_PKS+="focal2004 " -OBS_DEB_ARCHS+="xUbuntu_22.04/amd64 " -OBS_DEB_PKS+="jammy2022 " -OBS_DEB_ARCHS+="xUbuntu_23.04/amd64 " -OBS_DEB_PKS+="lunar2023 " -OBS_DEB_ARCHS+="xUbuntu_23.10/amd64 " -OBS_DEB_PKS+="mantic2023 " - - -OBS_PAC_ARCHS="" -OBS_PAC_PKS="" -OBS_PAC_ARCHS+="Arch/x86_64 " -OBS_PAC_PKS+="arch " - - -create_rpm_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local RPM_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find rpm - # - local RPM_FILE=$(grep ">${OBS_PACKAGE}-${VERSION}.*rpm<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*rpm\)<.*/\1/") - rm -f index.html - - echo "Found: "${RPM_FILE} - - FOUND_VERSION=$(echo ${RPM_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${RPM_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${RPM_FILE}" - fi - - # - # Get compression type - # - COMPRESSION=$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}\n' ${RPM_FILE}) -# echo ${COMPRESSION} - - case ${COMPRESSION} in -# zstd) - # - # Extract - # -# rpm2cpio ${RPM_FILE} | zstd -d | cpio --quiet -idm - - # - # Get files - # -# cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X -# chmod 755 ./${TAR_DIR}/SysTray-X -# cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi -# ;; - *) - # - # Extract - # - rpm2cpio ${RPM_FILE} | cpio --quiet -idm - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - if [ -d ./usr/share/doc/packages ] ; then - cp -f ./usr/share/doc/packages/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - if [ -d ./usr/share/doc/${OBS_PACKAGE} ] ; then - cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - cp -f ./usr/share/doc/${OBS_PACKAGE}*/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - fi - fi - ;; - esac - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the RPM - # - if [ "${RPM_NAME_EXT}" != "_" ] ; then - NEW_RPM_FILE=`echo ${RPM_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${RPM_NAME_EXT}\.\2/"` - mv -f ${RPM_FILE} $NEW_RPM_FILE - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_deb_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local DEB_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find deb - # - local DEB_FILE=$(grep ">${OBS_PACKAGE}_${VERSION}.*\.deb<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*deb\)<.*/\1/") - rm -f index.html - - echo "Found: "${DEB_FILE} - - FOUND_VERSION=$(echo ${DEB_FILE} | sed -e "s/${OBS_PACKAGE}_\(.*\)_.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X deb - # - if [ ! -f ${DEB_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${DEB_FILE}" - fi - - # - # Extract - # - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/bin/SysTray-X > ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi > ./${TAR_DIR}/systray-x@Ximi1970.xpi - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the DEB - # - if [ "${DEB_NAME_EXT}" != "_" ] ; then - NEW_DEB_FILE=`echo ${DEB_FILE} | sed -s "s/\(${OBS_PACKAGE}\_${FOUND_VERSION}\_\)\(.*\)/\1${DEB_NAME_EXT}\_\2/"` - mv -f ${DEB_FILE} ${NEW_DEB_FILE} - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_pac_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local PAC_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - curl -s "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" > index.html - - # - # Find rpm - # - local PAC_FILE=$(grep ">${OBS_PACKAGE}-[^dgm].*${VERSION}.*\.zst<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-[^d].*zst\)<.*/\1/") - rm -f index.html - - echo "Found: "${PAC_FILE} - - FOUND_VERSION=$(echo ${PAC_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${PAC_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${PAC_FILE}" - fi - - if [ ! -f systray-x.tar.zst ] ; then - cp -f ${PAC_FILE} systray-x.tar.zst - fi - - tar -I zstd -xf systray-x.tar.zst - - rm -f systray-x.tar.zst - rm -f .BUILDINFO - rm -f .INSTALL - rm -f .MTREE - rm -f .PKGINFO - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - cp -f ./usr/lib/thunderbird/distribution/extensions/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # -# tar -C "./${TAR_DIR}" -cJf "${TAR_DIR}.tar.xz" . - tar -C "./${TAR_DIR}" -cJf systray-x.tar.xz . - mv -f systray-x.tar.xz ${TAR_DIR}.tar.xz - - # - # Rename the PAC - # - if [ "${PAC_NAME_EXT}" != "_" ] ; then - NEW_PAC_FILE=`echo ${PAC_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${PAC_NAME_EXT}\.\2/"` - mv -f "${PAC_FILE}" "$NEW_PAC_FILE" - fi - - # - # Cleanup - # - rm -rf "${TAR_DIR}" -} - -################################################################################# -# -# -# Main -# -# -################################################################################# - -mkdir -p $TARGET_DIR -pushd $TARGET_DIR > /dev/null 2>&1 - -if [ "$ENABLE_RPM" = true ] ; then - # - # Create bash installers for RPM based distributions - # - INDEX=1 - for rpmdir in $OBS_RPM_ARCHS ; do - - echo - echo - echo "Generating installer: "${rpmdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${rpmdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${rpmdir} | cut -d'/' -f2) - - RPM_NAME_EXT=$(echo ${OBS_RPM_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_rpm_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${RPM_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Kde setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Kde.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_DEB" = true ] ; then - # - # Cleanup - # - rm -f gnome-shell-extension.tar.xz - - # - # Create bash installers for DEB based distributions - # - INDEX=1 - for debdir in $OBS_DEB_ARCHS ; do - - echo - echo - echo "Generating installer: "${debdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${debdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${debdir} | cut -d'/' -f2) - - DEB_NAME_EXT=$(echo ${OBS_DEB_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_deb_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${DEB_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Kde setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Kde.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_PAC" = true ] ; then - # - # Create bash installers for PAC based distributions - # - INDEX=1 - for pacdir in $OBS_PAC_ARCHS ; do - - echo - echo - echo "Generating installer: "${pacdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${pacdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${pacdir} | cut -d'/' -f2) - - PAC_NAME_EXT=$(echo ${OBS_PAC_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_pac_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${PAC_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Kde setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Kde.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -# -# Cleanup -# -rm -f gnome-shell-extension-*.tar.xz - -popd > /dev/null 2>&1 diff --git a/create_linux_minimal_installers.sh b/create_linux_minimal_installers.sh deleted file mode 100755 index 10f37d6..0000000 --- a/create_linux_minimal_installers.sh +++ /dev/null @@ -1,564 +0,0 @@ -#!/bin/bash - -VERSION=`git describe --long | sed "s/-.*//"` - -OBS_REPO_BASE="https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons" -TARGET_DIR="bin" - -OBS_PACKAGE="systray-x-minimal" - -ENABLE_RPM=true -ENABLE_DEB=true -ENABLE_PAC=true - -OBS_RPM_ARCHS="" -OBS_RPM_PKS="" -OBS_RPM_ARCHS+="openSUSE_Leap_15.4/x86_64 " -OBS_RPM_PKS+="_ " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/i586 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/x86_64 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="15.4/x86_64 " -OBS_RPM_PKS+="lp154 " -OBS_RPM_ARCHS+="15.5/x86_64 " -OBS_RPM_PKS+="lp155 " -OBS_RPM_ARCHS+="Fedora_37/x86_64 " -OBS_RPM_PKS+="fed37 " -OBS_RPM_ARCHS+="Fedora_38/x86_64 " -OBS_RPM_PKS+="fed38 " -OBS_RPM_ARCHS+="Fedora_39/x86_64 " -OBS_RPM_PKS+="fed39 " -OBS_RPM_ARCHS+="Fedora_Rawhide/x86_64 " -OBS_RPM_PKS+="fedraw " - - -OBS_DEB_ARCHS="" -OBS_DEB_PKS="" -OBS_DEB_ARCHS+="Debian_10/i386 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_10/amd64 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_11/i386 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_11/amd64 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_12/i386 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_12/amd64 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_Unstable/amd64 " -OBS_DEB_PKS+="debunstable " -OBS_DEB_ARCHS+="Debian_Testing/amd64 " -OBS_DEB_PKS+="debtest " -OBS_DEB_ARCHS+="xUbuntu_18.04/i386 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_18.04/amd64 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_20.04/amd64 " -OBS_DEB_PKS+="focal2004 " -OBS_DEB_ARCHS+="xUbuntu_22.04/amd64 " -OBS_DEB_PKS+="jammy2022 " -OBS_DEB_ARCHS+="xUbuntu_23.04/amd64 " -OBS_DEB_PKS+="lunar2023 " -OBS_DEB_ARCHS+="xUbuntu_23.10/amd64 " -OBS_DEB_PKS+="mantic2023 " - - -OBS_PAC_ARCHS="" -OBS_PAC_PKS="" -OBS_PAC_ARCHS+="Arch/x86_64 " -OBS_PAC_PKS+="arch " - - -create_rpm_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local RPM_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find rpm - # - local RPM_FILE=$(grep ">${OBS_PACKAGE}-.*${VERSION}.*rpm<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-.*rpm\)<.*/\1/") - - rm -f index.html - - echo "Found: "${RPM_FILE} - - FOUND_VERSION=$(echo ${RPM_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${RPM_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${RPM_FILE}" - fi - - # - # Get compression type - # - COMPRESSION=$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}\n' ${RPM_FILE}) -# echo ${COMPRESSION} - - case ${COMPRESSION} in -# zstd) - # - # Extract - # -# rpm2cpio ${RPM_FILE} | zstd -d | cpio --quiet -idm - - # - # Get files - # -# cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X -# chmod 755 ./${TAR_DIR}/SysTray-X -# cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi -# ;; - *) - # - # Extract - # - rpm2cpio ${RPM_FILE} | cpio --quiet -idm - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - if [ -d ./usr/share/doc/packages ] ; then - cp -f ./usr/share/doc/packages/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - if [ -d ./usr/share/doc/${OBS_PACKAGE} ] ; then - cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - cp -f ./usr/share/doc/${OBS_PACKAGE}*/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - fi - fi - ;; - esac - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the RPM - # - if [ "${RPM_NAME_EXT}" != "_" ] ; then - NEW_RPM_FILE=`echo ${RPM_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${RPM_NAME_EXT}\.\2/"` - mv -f ${RPM_FILE} $NEW_RPM_FILE - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_deb_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local DEB_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find deb - # - local DEB_FILE=$(grep ">${OBS_PACKAGE}_${VERSION}.*\.deb<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*deb\)<.*/\1/") - rm -f index.html - - echo "Found: "${DEB_FILE} - - FOUND_VERSION=$(echo ${DEB_FILE} | sed -e "s/${OBS_PACKAGE}_\(.*\)_.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X deb - # - if [ ! -f ${DEB_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${DEB_FILE}" - fi - - # - # Extract - # - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/bin/SysTray-X > ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi > ./${TAR_DIR}/systray-x@Ximi1970.xpi - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the DEB - # - if [ "${DEB_NAME_EXT}" != "_" ] ; then - NEW_DEB_FILE=`echo ${DEB_FILE} | sed -s "s/\(${OBS_PACKAGE}\_${FOUND_VERSION}\_\)\(.*\)/\1${DEB_NAME_EXT}\_\2/"` - mv -f ${DEB_FILE} ${NEW_DEB_FILE} - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_pac_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local PAC_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - curl -s "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" > index.html - - # - # Find rpm - # - local PAC_FILE=$(grep ">${OBS_PACKAGE}-[^d].*${VERSION}.*\.zst<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-[^d].*zst\)<.*/\1/") - rm -f index.html - - echo "Found: "${PAC_FILE} - - FOUND_VERSION=$(echo ${PAC_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${PAC_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${PAC_FILE}" - fi - - if [ ! -f systray-x.tar.zst ] ; then - cp -f ${PAC_FILE} systray-x.tar.zst - fi - - tar -I zstd -xf systray-x.tar.zst - - rm -f systray-x.tar.zst - rm -f .BUILDINFO - rm -f .INSTALL - rm -f .MTREE - rm -f .PKGINFO - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - cp -f ./usr/lib/thunderbird/distribution/extensions/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # -# tar -C "./${TAR_DIR}" -cJf "${TAR_DIR}.tar.xz" . - tar -C "./${TAR_DIR}" -cJf systray-x.tar.xz . - mv -f systray-x.tar.xz ${TAR_DIR}.tar.xz - - # - # Rename the PAC - # - if [ "${PAC_NAME_EXT}" != "_" ] ; then - NEW_PAC_FILE=`echo ${PAC_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${PAC_NAME_EXT}\.\2/"` - mv -f "${PAC_FILE}" "$NEW_PAC_FILE" - fi - - # - # Cleanup - # - rm -rf "${TAR_DIR}" -} - - -################################################################################# -# -# -# Main -# -# -################################################################################# - -mkdir -p $TARGET_DIR -pushd $TARGET_DIR > /dev/null 2>&1 - -if [ "$ENABLE_RPM" = true ] ; then - # - # Create bash installers for RPM based distributions - # - INDEX=1 - for rpmdir in $OBS_RPM_ARCHS ; do - - echo - echo - echo "Generating installer: "${rpmdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${rpmdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${rpmdir} | cut -d'/' -f2) - - RPM_NAME_EXT=$(echo ${OBS_RPM_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_rpm_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${RPM_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Minimal setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_DEB" = true ] ; then - # - # Create bash installers for DEB based distributions - # - INDEX=1 - for debdir in $OBS_DEB_ARCHS ; do - - echo - echo - echo "Generating installer: "${debdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${debdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${debdir} | cut -d'/' -f2) - - DEB_NAME_EXT=$(echo ${OBS_DEB_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_deb_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${DEB_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Minimal setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_PAC" = true ] ; then - # - # Create bash installers for PAC based distributions - # - INDEX=1 - for pacdir in $OBS_PAC_ARCHS ; do - - echo - echo - echo "Generating installer: "${pacdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${pacdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${pacdir} | cut -d'/' -f2) - - PAC_NAME_EXT=$(echo ${OBS_PAC_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_pac_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${PAC_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Minimal setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -popd > /dev/null 2>&1 diff --git a/create_linux_staging_gnome_installers.sh b/create_linux_staging_gnome_installers.sh deleted file mode 100755 index df703b3..0000000 --- a/create_linux_staging_gnome_installers.sh +++ /dev/null @@ -1,711 +0,0 @@ -#!/bin/bash - -VERSION=`git describe --long | sed "s/-.*//"` - -OBS_REPO_BASE="https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons:/Staging" -TARGET_DIR="bin-staging" - -GNOME_APPINDICATOR="https://github.com/ubuntu/gnome-shell-extension-appindicator.git" - -OBS_PACKAGE="systray-x-gnome" - -ENABLE_RPM=true -ENABLE_DEB=true -ENABLE_PAC=true - -OBS_RPM_ARCHS="" -OBS_RPM_PKS="" -OBS_RPM_GNOME_EXT="" -OBS_RPM_ARCHS+="openSUSE_Leap_15.4/x86_64 " -OBS_RPM_PKS+="_ " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/i586 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_GNOME_EXT+="master " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/x86_64 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_GNOME_EXT+="master " -OBS_RPM_ARCHS+="15.4/x86_64 " -OBS_RPM_PKS+="lp154 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="15.5/x86_64 " -OBS_RPM_PKS+="lp155 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="Fedora_37/x86_64 " -OBS_RPM_PKS+="fed37 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="Fedora_38/x86_64 " -OBS_RPM_PKS+="fed38 " -OBS_RPM_GNOME_EXT+="v53 " -OBS_RPM_ARCHS+="Fedora_39/x86_64 " -OBS_RPM_PKS+="fed39 " -OBS_RPM_GNOME_EXT+="master " -OBS_RPM_ARCHS+="Fedora_Rawhide/x86_64 " -OBS_RPM_PKS+="fedraw " -OBS_RPM_GNOME_EXT+="master " - - -OBS_DEB_ARCHS="" -OBS_DEB_PKS="" -OBS_DEB_GNOME_EXT="" -OBS_DEB_ARCHS+="Debian_10/i386 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="Debian_10/amd64 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="Debian_11/i386 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_GNOME_EXT+="v34 " -OBS_DEB_ARCHS+="Debian_11/amd64 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_GNOME_EXT+="v34 " -OBS_DEB_ARCHS+="Debian_12/i386 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="Debian_12/amd64 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="Debian_Unstable/amd64 " -OBS_DEB_PKS+="debunstable " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="Debian_Testing/amd64 " -OBS_DEB_PKS+="debtest " -OBS_DEB_GNOME_EXT+="v46 " -OBS_DEB_ARCHS+="xUbuntu_18.04/i386 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="xUbuntu_18.04/amd64 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_GNOME_EXT+="v26 " -OBS_DEB_ARCHS+="xUbuntu_20.04/amd64 " -OBS_DEB_PKS+="focal2004 " -OBS_DEB_GNOME_EXT+="0 " -OBS_DEB_ARCHS+="xUbuntu_22.04/amd64 " -OBS_DEB_PKS+="jammy2022 " -OBS_DEB_GNOME_EXT+="0 " -OBS_DEB_ARCHS+="xUbuntu_23.04/amd64 " -OBS_DEB_PKS+="lunar2023 " -OBS_DEB_GNOME_EXT+="0 " -OBS_DEB_ARCHS+="xUbuntu_23.10/amd64 " -OBS_DEB_PKS+="mantic2023 " -OBS_DEB_GNOME_EXT+="0 " - - -OBS_PAC_ARCHS="" -OBS_PAC_PKS="" -OBS_PAC_ARCHS+="Arch/x86_64 " -OBS_PAC_PKS+="arch " -OBS_PAC_GNOME_EXT+="master " - - -create_gnome_extension_tar() { - - local GIT_BASE=$1 - local GNOME_EXT=$2 - - ########################################## - # - # Create user installable - # gnome-shell-extension-appindicator - # - ########################################## - - if [ -f gnome-shell-extension-${GNOME_EXT}.tar.xz ] ; then - return - fi - - if [ "${GNOME_EXT}" != "v26" ] && - [ "${GNOME_EXT}" != "v34" ] && - [ "${GNOME_EXT}" != "v46" ] && - [ "${GNOME_EXT}" != "v53" ] && - [ "${GNOME_EXT}" != "master" ] ; then - return - fi - - git clone -q ${GIT_BASE} - pushd gnome-shell-extension-appindicator > /dev/null 2>&1 - git checkout -q ${GNOME_EXT} - popd > /dev/null 2>&1 - - # - # Create tar - # - mv -f gnome-shell-extension-appindicator appindicatorsupport@rgcjonas.gmail.com - tar -cJf gnome-shell-extension-${GNOME_EXT}.tar.xz appindicatorsupport@rgcjonas.gmail.com - - # - # Cleanup - # - rm -rf appindicatorsupport@rgcjonas.gmail.com -} - - -create_rpm_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local RPM_NAME_EXT=$4 - local GNOME_EXT=$5 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find rpm - # - local RPM_FILE=$(grep ">${OBS_PACKAGE}-${VERSION}.*rpm<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*rpm\)<.*/\1/") - rm -f index.html - - echo "Found: "${RPM_FILE} - - FOUND_VERSION=$(echo ${RPM_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Add the gnome extension to the tar - # - if [ "${GNOME_EXT}" == "v26" ] && [ -f gnome-shell-extension-v26.tar.xz ] ; then - cp -f gnome-shell-extension-v26.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v34" ] && [ -f gnome-shell-extension-v34.tar.xz ] ; then - cp -f gnome-shell-extension-v34.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v46" ] && [ -f gnome-shell-extension-v46.tar.xz ] ; then - cp -f gnome-shell-extension-v46.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "master" ] && [ -f gnome-shell-extension-master.tar.xz ] ; then - cp -f gnome-shell-extension-master.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - - # - # Get the SysTray-X rpm - # - if [ ! -f ${RPM_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${RPM_FILE}" - fi - - # - # Get compression type - # - COMPRESSION=$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}\n' ${RPM_FILE}) -# echo ${COMPRESSION} - - case ${COMPRESSION} in -# zstd) - # - # Extract - # -# rpm2cpio ${RPM_FILE} | zstd -d | cpio --quiet -idm - - # - # Get files - # -# cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X -# chmod 755 ./${TAR_DIR}/SysTray-X -# cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi -# ;; - *) - # - # Extract - # - rpm2cpio ${RPM_FILE} | cpio --quiet -idm - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - if [ -d ./usr/share/doc/packages ] ; then - cp -f ./usr/share/doc/packages/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - if [ -d ./usr/share/doc/${OBS_PACKAGE} ] ; then - cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - cp -f ./usr/share/doc/${OBS_PACKAGE}*/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - fi - fi - ;; - esac - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the RPM - # - if [ "${RPM_NAME_EXT}" != "_" ] ; then - NEW_RPM_FILE=`echo ${RPM_FILE} | sed -s "s/\(systray-x-gnome-${FOUND_VERSION}-\)\(.*\)/\1${RPM_NAME_EXT}\.\2/"` - mv -f ${RPM_FILE} $NEW_RPM_FILE - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_deb_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local DEB_NAME_EXT=$4 - local GNOME_EXT=$5 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find deb - # - local DEB_FILE=$(grep ">${OBS_PACKAGE}_${VERSION}.*\.deb<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*deb\)<.*/\1/") - rm -f index.html - - echo "Found: "${DEB_FILE} - - FOUND_VERSION=$(echo ${DEB_FILE} | sed -e "s/${OBS_PACKAGE}_\(.*\)_.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Add the gnome extension to the tar - # - if [ "${GNOME_EXT}" == "v26" ] && [ -f gnome-shell-extension-v26.tar.xz ] ; then - cp -f gnome-shell-extension-v26.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v34" ] && [ -f gnome-shell-extension-v34.tar.xz ] ; then - cp -f gnome-shell-extension-v34.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v46" ] && [ -f gnome-shell-extension-v46.tar.xz ] ; then - cp -f gnome-shell-extension-v46.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "master" ] && [ -f gnome-shell-extension-master.tar.xz ] ; then - cp -f gnome-shell-extension-master.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - - # - # Get the SysTray-X deb - # - if [ ! -f ${DEB_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${DEB_FILE}" - fi - - # - # Extract - # - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/bin/SysTray-X > ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi > ./${TAR_DIR}/systray-x@Ximi1970.xpi - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the DEB - # - if [ "${DEB_NAME_EXT}" != "_" ] ; then - NEW_DEB_FILE=`echo ${DEB_FILE} | sed -s "s/\(${OBS_PACKAGE}\_${FOUND_VERSION}\_\)\(.*\)/\1${DEB_NAME_EXT}\_\2/"` - mv -f ${DEB_FILE} ${NEW_DEB_FILE} - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_pac_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local PAC_NAME_EXT=$4 - local GNOME_EXT=$5 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - curl -s "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" > index.html - - # - # Find rpm - # - local PAC_FILE=$(grep ">${OBS_PACKAGE}-[^dgm].*${VERSION}.*\.zst<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-[^d].*zst\)<.*/\1/") - rm -f index.html - - echo "Found: "${PAC_FILE} - - FOUND_VERSION=$(echo ${PAC_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Add the gnome extension to the tar - # - if [ "${GNOME_EXT}" == "v26" ] && [ -f gnome-shell-extension-v26.tar.xz ] ; then - cp -f gnome-shell-extension-v26.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v34" ] && [ -f gnome-shell-extension-v34.tar.xz ] ; then - cp -f gnome-shell-extension-v34.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "v46" ] && [ -f gnome-shell-extension-v46.tar.xz ] ; then - cp -f gnome-shell-extension-v46.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - if [ "${GNOME_EXT}" == "master" ] && [ -f gnome-shell-extension-master.tar.xz ] ; then - cp -f gnome-shell-extension-master.tar.xz ${TAR_DIR}/gnome-shell-extension.tar.xz - fi - - # - # Get the SysTray-X rpm - # - if [ ! -f ${PAC_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${PAC_FILE}" - fi - - if [ ! -f systray-x.tar.zst ] ; then - cp -f ${PAC_FILE} systray-x.tar.zst - fi - - tar -I zstd -xf systray-x.tar.zst - - rm -f systray-x.tar.zst - rm -f .BUILDINFO - rm -f .INSTALL - rm -f .MTREE - rm -f .PKGINFO - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - cp -f ./usr/lib/thunderbird/distribution/extensions/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # -# tar -C "./${TAR_DIR}" -cJf "${TAR_DIR}.tar.xz" . - tar -C "./${TAR_DIR}" -cJf systray-x.tar.xz . - mv -f systray-x.tar.xz ${TAR_DIR}.tar.xz - - # - # Rename the PAC - # - if [ "${PAC_NAME_EXT}" != "_" ] ; then - NEW_PAC_FILE=`echo ${PAC_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${PAC_NAME_EXT}\.\2/"` - mv -f "${PAC_FILE}" "$NEW_PAC_FILE" - fi - - # - # Cleanup - # - rm -rf "${TAR_DIR}" -} - -################################################################################# -# -# -# Main -# -# -################################################################################# - -mkdir -p $TARGET_DIR -pushd $TARGET_DIR > /dev/null 2>&1 - -if [ "$ENABLE_RPM" = true ] ; then - # - # Create bash installers for RPM based distributions - # - INDEX=1 - for rpmdir in $OBS_RPM_ARCHS ; do - - echo - echo - echo "Generating installer: "${rpmdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${rpmdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${rpmdir} | cut -d'/' -f2) - - RPM_NAME_EXT=$(echo ${OBS_RPM_PKS} | cut -d' ' -f${INDEX}) - GNOME_EXT=$(echo ${OBS_RPM_GNOME_EXT} | cut -d' ' -f${INDEX}) - - # - # Generate the gnome tar file - # - create_gnome_extension_tar ${GNOME_APPINDICATOR} ${GNOME_EXT} - - # - # Generate the SysTray-X tar file - # - create_rpm_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${RPM_NAME_EXT} ${GNOME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Gnome setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Gnome.sh" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_DEB" = true ] ; then - # - # Cleanup - # - rm -f gnome-shell-extension.tar.xz - - # - # Create bash installers for DEB based distributions - # - INDEX=1 - for debdir in $OBS_DEB_ARCHS ; do - - echo - echo - echo "Generating installer: "${debdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${debdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${debdir} | cut -d'/' -f2) - - DEB_NAME_EXT=$(echo ${OBS_DEB_PKS} | cut -d' ' -f${INDEX}) - GNOME_EXT=$(echo ${OBS_DEB_GNOME_EXT} | cut -d' ' -f${INDEX}) - - # - # Generate the gnome tar file - # - create_gnome_extension_tar ${GNOME_APPINDICATOR} ${GNOME_EXT} - - # - # Generate the SysTray-X tar file - # - create_deb_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${DEB_NAME_EXT} ${GNOME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Gnome setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Gnome.sh" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_PAC" = true ] ; then - # - # Create bash installers for PAC based distributions - # - INDEX=1 - for pacdir in $OBS_PAC_ARCHS ; do - - echo - echo - echo "Generating installer: "${pacdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${pacdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${pacdir} | cut -d'/' -f2) - - PAC_NAME_EXT=$(echo ${OBS_PAC_PKS} | cut -d' ' -f${INDEX}) - GNOME_EXT=$(echo ${OBS_DEB_GNOME_EXT} | cut -d' ' -f${INDEX}) - - # - # Generate the gnome tar file - # - create_gnome_extension_tar ${GNOME_APPINDICATOR} ${GNOME_EXT} - - # - # Generate the SysTray-X tar file - # - create_pac_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${PAC_NAME_EXT} ${GNOME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Gnome setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Gnome.sh" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -# -# Cleanup -# -rm -f gnome-shell-extension-*.tar.xz - -popd > /dev/null 2>&1 diff --git a/create_linux_staging_kde_installers.sh b/create_linux_staging_kde_installers.sh deleted file mode 100755 index 3d95324..0000000 --- a/create_linux_staging_kde_installers.sh +++ /dev/null @@ -1,572 +0,0 @@ -#!/bin/bash - -VERSION=`git describe --long | sed "s/-.*//"` - -OBS_REPO_BASE="https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons:/Staging" -TARGET_DIR="bin-staging" - -OBS_PACKAGE="systray-x" - -ENABLE_RPM=true -ENABLE_DEB=true -ENABLE_PAC=true - -OBS_RPM_ARCHS="" -OBS_RPM_PKS="" -OBS_RPM_ARCHS+="openSUSE_Leap_15.4/x86_64 " -OBS_RPM_PKS+="_ " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/i586 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/x86_64 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="15.4/x86_64 " -OBS_RPM_PKS+="lp154 " -OBS_RPM_ARCHS+="15.5/x86_64 " -OBS_RPM_PKS+="lp155 " -OBS_RPM_ARCHS+="Fedora_37/x86_64 " -OBS_RPM_PKS+="fed37 " -OBS_RPM_ARCHS+="Fedora_38/x86_64 " -OBS_RPM_PKS+="fed38 " -OBS_RPM_ARCHS+="Fedora_39/x86_64 " -OBS_RPM_PKS+="fed39 " -OBS_RPM_ARCHS+="Fedora_Rawhide/x86_64 " -OBS_RPM_PKS+="fedraw " - - -OBS_DEB_ARCHS="" -OBS_DEB_PKS="" -OBS_DEB_ARCHS+="Debian_10/i386 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_10/amd64 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_11/i386 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_11/amd64 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_12/i386 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_12/amd64 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_Unstable/amd64 " -OBS_DEB_PKS+="debunstable " -OBS_DEB_ARCHS+="Debian_Testing/amd64 " -OBS_DEB_PKS+="debtest " -OBS_DEB_ARCHS+="xUbuntu_18.04/i386 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_18.04/amd64 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_20.04/amd64 " -OBS_DEB_PKS+="focal2004 " -OBS_DEB_ARCHS+="xUbuntu_22.04/amd64 " -OBS_DEB_PKS+="jammy2022 " -OBS_DEB_ARCHS+="xUbuntu_23.04/amd64 " -OBS_DEB_PKS+="lunar2023 " -OBS_DEB_ARCHS+="xUbuntu_23.10/amd64 " -OBS_DEB_PKS+="mantic2023 " - - -OBS_PAC_ARCHS="" -OBS_PAC_PKS="" -OBS_PAC_ARCHS+="Arch/x86_64 " -OBS_PAC_PKS+="arch " - - -create_rpm_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local RPM_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find rpm - # - local RPM_FILE=$(grep ">${OBS_PACKAGE}-${VERSION}.*rpm<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*rpm\)<.*/\1/") - rm -f index.html - - echo "Found: "${RPM_FILE} - - FOUND_VERSION=$(echo ${RPM_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${RPM_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${RPM_FILE}" - fi - - # - # Get compression type - # - COMPRESSION=$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}\n' ${RPM_FILE}) -# echo ${COMPRESSION} - - case ${COMPRESSION} in -# zstd) - # - # Extract - # -# rpm2cpio ${RPM_FILE} | zstd -d | cpio --quiet -idm - - # - # Get files - # -# cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X -# chmod 755 ./${TAR_DIR}/SysTray-X -# cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi -# ;; - *) - # - # Extract - # - rpm2cpio ${RPM_FILE} | cpio --quiet -idm - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - if [ -d ./usr/share/doc/packages ] ; then - cp -f ./usr/share/doc/packages/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - if [ -d ./usr/share/doc/${OBS_PACKAGE} ] ; then - cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - cp -f ./usr/share/doc/${OBS_PACKAGE}*/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - fi - fi - ;; - esac - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the RPM - # - if [ "${RPM_NAME_EXT}" != "_" ] ; then - NEW_RPM_FILE=`echo ${RPM_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${RPM_NAME_EXT}\.\2/"` - mv -f ${RPM_FILE} $NEW_RPM_FILE - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_deb_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local DEB_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find deb - # - local DEB_FILE=$(grep ">${OBS_PACKAGE}_${VERSION}.*\.deb<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*deb\)<.*/\1/") - rm -f index.html - - echo "Found: "${DEB_FILE} - - FOUND_VERSION=$(echo ${DEB_FILE} | sed -e "s/${OBS_PACKAGE}_\(.*\)_.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X deb - # - if [ ! -f ${DEB_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${DEB_FILE}" - fi - - # - # Extract - # - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/bin/SysTray-X > ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi > ./${TAR_DIR}/systray-x@Ximi1970.xpi - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the DEB - # - if [ "${DEB_NAME_EXT}" != "_" ] ; then - NEW_DEB_FILE=`echo ${DEB_FILE} | sed -s "s/\(${OBS_PACKAGE}\_${FOUND_VERSION}\_\)\(.*\)/\1${DEB_NAME_EXT}\_\2/"` - mv -f ${DEB_FILE} ${NEW_DEB_FILE} - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_pac_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local PAC_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - curl -s "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" > index.html - - # - # Find rpm - # - local PAC_FILE=$(grep ">${OBS_PACKAGE}-[^dgm].*${VERSION}.*\.zst<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-[^d].*zst\)<.*/\1/") - rm -f index.html - - echo "Found: "${PAC_FILE} - - FOUND_VERSION=$(echo ${PAC_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${PAC_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${PAC_FILE}" - fi - - if [ ! -f systray-x.tar.zst ] ; then - cp -f ${PAC_FILE} systray-x.tar.zst - fi - - tar -I zstd -xf systray-x.tar.zst - - rm -f systray-x.tar.zst - rm -f .BUILDINFO - rm -f .INSTALL - rm -f .MTREE - rm -f .PKGINFO - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - cp -f ./usr/lib/thunderbird/distribution/extensions/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # -# tar -C "./${TAR_DIR}" -cJf "${TAR_DIR}.tar.xz" . - tar -C "./${TAR_DIR}" -cJf systray-x.tar.xz . - mv -f systray-x.tar.xz ${TAR_DIR}.tar.xz - - # - # Rename the PAC - # - if [ "${PAC_NAME_EXT}" != "_" ] ; then - NEW_PAC_FILE=`echo ${PAC_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${PAC_NAME_EXT}\.\2/"` - mv -f "${PAC_FILE}" "$NEW_PAC_FILE" - fi - - # - # Cleanup - # - rm -rf "${TAR_DIR}" -} - -################################################################################# -# -# -# Main -# -# -################################################################################# - -mkdir -p $TARGET_DIR -pushd $TARGET_DIR > /dev/null 2>&1 - -if [ "$ENABLE_RPM" = true ] ; then - # - # Create bash installers for RPM based distributions - # - INDEX=1 - for rpmdir in $OBS_RPM_ARCHS ; do - - echo - echo - echo "Generating installer: "${rpmdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${rpmdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${rpmdir} | cut -d'/' -f2) - - RPM_NAME_EXT=$(echo ${OBS_RPM_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_rpm_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${RPM_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Kde setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Kde.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_DEB" = true ] ; then - # - # Cleanup - # - rm -f gnome-shell-extension.tar.xz - - # - # Create bash installers for DEB based distributions - # - INDEX=1 - for debdir in $OBS_DEB_ARCHS ; do - - echo - echo - echo "Generating installer: "${debdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${debdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${debdir} | cut -d'/' -f2) - - DEB_NAME_EXT=$(echo ${OBS_DEB_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_deb_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${DEB_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Kde setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Kde.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_PAC" = true ] ; then - # - # Create bash installers for PAC based distributions - # - INDEX=1 - for pacdir in $OBS_PAC_ARCHS ; do - - echo - echo - echo "Generating installer: "${pacdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${pacdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${pacdir} | cut -d'/' -f2) - - PAC_NAME_EXT=$(echo ${OBS_PAC_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_pac_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${PAC_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Kde setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}-Kde.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__MINIMAL_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -# -# Cleanup -# -rm -f gnome-shell-extension-*.tar.xz - -popd > /dev/null 2>&1 diff --git a/create_linux_staging_minimal_installers.sh b/create_linux_staging_minimal_installers.sh deleted file mode 100755 index 1e27d07..0000000 --- a/create_linux_staging_minimal_installers.sh +++ /dev/null @@ -1,563 +0,0 @@ -#!/bin/bash - -VERSION=`git describe --long | sed "s/-.*//"` - -OBS_REPO_BASE="https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons:/Staging" -TARGET_DIR="bin-staging" - -OBS_PACKAGE="systray-x-minimal" - -ENABLE_RPM=true -ENABLE_DEB=true -ENABLE_PAC=true - -OBS_RPM_ARCHS="" -OBS_RPM_PKS="" -OBS_RPM_ARCHS+="openSUSE_Leap_15.4/x86_64 " -OBS_RPM_PKS+="_ " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/i586 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="openSUSE_Tumbleweed/x86_64 " -OBS_RPM_PKS+="tmblwd " -OBS_RPM_ARCHS+="15.4/x86_64 " -OBS_RPM_PKS+="lp154 " -OBS_RPM_ARCHS+="15.5/x86_64 " -OBS_RPM_PKS+="lp155 " -OBS_RPM_ARCHS+="Fedora_37/x86_64 " -OBS_RPM_PKS+="fed37 " -OBS_RPM_ARCHS+="Fedora_38/x86_64 " -OBS_RPM_PKS+="fed38 " -OBS_RPM_ARCHS+="Fedora_39/x86_64 " -OBS_RPM_PKS+="fed39 " -OBS_RPM_ARCHS+="Fedora_Rawhide/x86_64 " -OBS_RPM_PKS+="fedraw " - - -OBS_DEB_ARCHS="" -OBS_DEB_PKS="" -OBS_DEB_ARCHS+="Debian_10/i386 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_10/amd64 " -OBS_DEB_PKS+="deb10 " -OBS_DEB_ARCHS+="Debian_11/i386 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_11/amd64 " -OBS_DEB_PKS+="deb11 " -OBS_DEB_ARCHS+="Debian_12/i386 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_12/amd64 " -OBS_DEB_PKS+="deb12 " -OBS_DEB_ARCHS+="Debian_Unstable/amd64 " -OBS_DEB_PKS+="debunstable " -OBS_DEB_ARCHS+="Debian_Testing/amd64 " -OBS_DEB_PKS+="debtest " -OBS_DEB_ARCHS+="xUbuntu_18.04/i386 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_18.04/amd64 " -OBS_DEB_PKS+="bionic1804 " -OBS_DEB_ARCHS+="xUbuntu_20.04/amd64 " -OBS_DEB_PKS+="focal2004 " -OBS_DEB_ARCHS+="xUbuntu_22.04/amd64 " -OBS_DEB_PKS+="jammy2022 " -OBS_DEB_ARCHS+="xUbuntu_23.04/amd64 " -OBS_DEB_PKS+="lunar2023 " -OBS_DEB_ARCHS+="xUbuntu_23.10/amd64 " -OBS_DEB_PKS+="mantic2023 " - - -OBS_PAC_ARCHS="" -OBS_PAC_PKS="" -OBS_PAC_ARCHS+="Arch/x86_64 " -OBS_PAC_PKS+="arch " - - -create_rpm_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local RPM_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find rpm - # - local RPM_FILE=$(grep ">${OBS_PACKAGE}-.*${VERSION}.*rpm<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-.*rpm\)<.*/\1/") - - rm -f index.html - - echo "Found: "${RPM_FILE} - - FOUND_VERSION=$(echo ${RPM_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${RPM_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${RPM_FILE}" - fi - - # - # Get compression type - # - COMPRESSION=$(rpm -qp --qf '%{PAYLOADCOMPRESSOR}\n' ${RPM_FILE}) -# echo ${COMPRESSION} - - case ${COMPRESSION} in -# zstd) - # - # Extract - # -# rpm2cpio ${RPM_FILE} | zstd -d | cpio --quiet -idm - - # - # Get files - # -# cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X -# chmod 755 ./${TAR_DIR}/SysTray-X -# cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi -# ;; - *) - # - # Extract - # - rpm2cpio ${RPM_FILE} | cpio --quiet -idm - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - if [ -d ./usr/share/doc/packages ] ; then - cp -f ./usr/share/doc/packages/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - if [ -d ./usr/share/doc/${OBS_PACKAGE} ] ; then - cp -f ./usr/share/doc/${OBS_PACKAGE}/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - else - cp -f ./usr/share/doc/${OBS_PACKAGE}*/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - fi - fi - ;; - esac - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the RPM - # - if [ "${RPM_NAME_EXT}" != "_" ] ; then - NEW_RPM_FILE=`echo ${RPM_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${RPM_NAME_EXT}\.\2/"` - mv -f ${RPM_FILE} $NEW_RPM_FILE - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_deb_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local DEB_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" - - # - # Find deb - # - local DEB_FILE=$(grep ">${OBS_PACKAGE}_${VERSION}.*\.deb<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}.*deb\)<.*/\1/") - rm -f index.html - - echo "Found: "${DEB_FILE} - - FOUND_VERSION=$(echo ${DEB_FILE} | sed -e "s/${OBS_PACKAGE}_\(.*\)_.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X deb - # - if [ ! -f ${DEB_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${DEB_FILE}" - fi - - # - # Extract - # - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/bin/SysTray-X > ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - - dpkg-deb --fsys-tarfile ${DEB_FILE} | tar xOf - ./usr/lib/thunderbird-addons/extensions/systray-x@Ximi1970.xpi > ./${TAR_DIR}/systray-x@Ximi1970.xpi - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # - tar -C ./${TAR_DIR} -cJf ${TAR_DIR}.tar.xz . - - # - # Rename the DEB - # - if [ "${DEB_NAME_EXT}" != "_" ] ; then - NEW_DEB_FILE=`echo ${DEB_FILE} | sed -s "s/\(${OBS_PACKAGE}\_${FOUND_VERSION}\_\)\(.*\)/\1${DEB_NAME_EXT}\_\2/"` - mv -f ${DEB_FILE} ${NEW_DEB_FILE} - fi - - # - # Cleanup - # - rm -rf ${TAR_DIR} -} - - -create_pac_tar() { - - local REPO_BASE=$1 - local REPO_DISTR=$2 - local REPO_ARCH=$3 - local PAC_NAME_EXT=$4 - - ########################################## - # - # Create the SysTray-X tar - # - ########################################## - - # - # Get index.html - # - rm -f index.html - curl -s "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/" > index.html - - # - # Find rpm - # - local PAC_FILE=$(grep ">${OBS_PACKAGE}-[^d].*${VERSION}.*\.zst<" index.html | sed -e "s/.*>\(${OBS_PACKAGE}-[^d].*zst\)<.*/\1/") - rm -f index.html - - echo "Found: "${PAC_FILE} - - FOUND_VERSION=$(echo ${PAC_FILE} | sed -e "s/${OBS_PACKAGE}-\(.*\)-.*/\1/") - - echo "Version: "${FOUND_VERSION} - - # - # Create tar dir - # - local TAR_DIR=SysTray-X-${FOUND_VERSION}-${REPO_DISTR} - - rm -rf ${TAR_DIR} - mkdir -p ${TAR_DIR} - - # - # Get the SysTray-X rpm - # - if [ ! -f ${PAC_FILE} ] ; then - wget -q "${REPO_BASE}/${REPO_DISTR}/${REPO_ARCH}/${PAC_FILE}" - fi - - if [ ! -f systray-x.tar.zst ] ; then - cp -f ${PAC_FILE} systray-x.tar.zst - fi - - tar -I zstd -xf systray-x.tar.zst - - rm -f systray-x.tar.zst - rm -f .BUILDINFO - rm -f .INSTALL - rm -f .MTREE - rm -f .PKGINFO - - # - # Get files - # - cp -f ./usr/bin/SysTray-X ./${TAR_DIR}/SysTray-X - chmod 755 ./${TAR_DIR}/SysTray-X - cp -f ./usr/lib/thunderbird/distribution/extensions/systray-x@Ximi1970.xpi ./${TAR_DIR}/systray-x@Ximi1970.xpi - - # - # Cleanup - # - rm -rf ./usr - - if [ ! -f systray-x@Ximi1970.xpi ] ; then - cp -f ./${TAR_DIR}/systray-x@Ximi1970.xpi . - fi - - # - # Get JSON - # - cp -f ../app/config/linux/SysTray_X.json.template ./${TAR_DIR}/SysTray_X.json.template - - # - # Create tar - # -# tar -C "./${TAR_DIR}" -cJf "${TAR_DIR}.tar.xz" . - tar -C "./${TAR_DIR}" -cJf systray-x.tar.xz . - mv -f systray-x.tar.xz ${TAR_DIR}.tar.xz - - # - # Rename the PAC - # - if [ "${PAC_NAME_EXT}" != "_" ] ; then - NEW_PAC_FILE=`echo ${PAC_FILE} | sed -s "s/\(${OBS_PACKAGE}-${FOUND_VERSION}-\)\(.*\)/\1${PAC_NAME_EXT}\.\2/"` - mv -f "${PAC_FILE}" "$NEW_PAC_FILE" - fi - - # - # Cleanup - # - rm -rf "${TAR_DIR}" -} - -################################################################################# -# -# -# Main -# -# -################################################################################# - -mkdir -p $TARGET_DIR -pushd $TARGET_DIR > /dev/null 2>&1 - -if [ "$ENABLE_RPM" = true ] ; then - # - # Create bash installers for RPM based distributions - # - INDEX=1 - for rpmdir in $OBS_RPM_ARCHS ; do - - echo - echo - echo "Generating installer: "${rpmdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${rpmdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${rpmdir} | cut -d'/' -f2) - - RPM_NAME_EXT=$(echo ${OBS_RPM_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_rpm_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${RPM_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Minimal setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_DEB" = true ] ; then - # - # Create bash installers for DEB based distributions - # - INDEX=1 - for debdir in $OBS_DEB_ARCHS ; do - - echo - echo - echo "Generating installer: "${debdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${debdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${debdir} | cut -d'/' -f2) - - DEB_NAME_EXT=$(echo ${OBS_DEB_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_deb_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${DEB_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Minimal setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -if [ "$ENABLE_PAC" = true ] ; then - # - # Create bash installers for PAC based distributions - # - INDEX=1 - for pacdir in $OBS_PAC_ARCHS ; do - - echo - echo - echo "Generating installer: "${pacdir} - echo - - # - # Get base of the repo - # - REPO_DISTR=$(echo ${pacdir} | cut -d'/' -f1) - REPO_ARCH=$(echo ${pacdir} | cut -d'/' -f2) - - PAC_NAME_EXT=$(echo ${OBS_PAC_PKS} | cut -d' ' -f${INDEX}) - - # - # Generate the SysTray-X tar file - # - create_pac_tar ${OBS_REPO_BASE} ${REPO_DISTR} ${REPO_ARCH} ${PAC_NAME_EXT} - - # - # Create installer - # - INSTALLER=SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-Minimal-install.sh - cp -f ../dist/install.sh ${INSTALLER} - - # - # Insert Minimal setup - # - sed -i -e "/__XXXX_SETUP__/r../dist/install.${REPO_DISTR}.sh" ${INSTALLER} - sed -i -e "s/__GNOME_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-GNOME-install.sh/" ${INSTALLER} - sed -i -e "s/__KDE_INSTALLER__/SysTray-X-${FOUND_VERSION}-${REPO_DISTR}-${REPO_ARCH}-KDE-install.sh/" ${INSTALLER} - sed -i -e "s/__XXXX_SETUP__//" ${INSTALLER} - - # - # Insert install tar - # - cat SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz >> ${INSTALLER} - chmod 755 ${INSTALLER} - - # - # Cleanup - # - rm -f SysTray-X-${FOUND_VERSION}-${REPO_DISTR}.tar.xz - - # - # Update index - # - INDEX=$((INDEX+1)) - done -fi - -popd > /dev/null 2>&1 diff --git a/create_win_installers.sh b/create_win_installers.sh deleted file mode 100755 index 2903792..0000000 --- a/create_win_installers.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/bash -UPLOAD_SERVER="upload.server.com" -UPLOAD_USER="user" -UPLOAD_PASSWORD="password" -UPLOAD_DIR="src/systray-x/bin" - -BUILD_FARM="build.farm.com" -BUILD_FARM_USER="farmuser" - -BUILD_WORKER="worker.build.farm.com" -BUILD_WORKER_USER="BuildUser" -BUILD_WORKER_VMNAME="Virtual Machine Name" - -VERSION=`git describe --long | sed "s/-.*//"` - -# -# Start the worker on the farm -# -ssh ${BUILD_FARM_USER}@${BUILD_FARM} <<-ENDSSH - VBoxHeadless -startvm "${BUILD_WORKER_VMNAME}" > /dev/null 2>&1 & -ENDSSH - -# -# Wait for the worker to become active -# -timeout=30 -t=0 -while [ $t -lt $timeout ] ; do - ping -c1 ${BUILD_WORKER} - - if [ $? -eq 0 ] ; then - break; - fi - - sleep 10 - - t=$((t+1)) -done - -if [ $t -eq $timeout ] ; then - echo "Cannot find server" - exit 1 -fi - -# -# Start build -# -ssh ${BUILD_WORKER_USER}@${BUILD_WORKER} -T <<-ENDSSH - cd /cygdrive/c/Users/${BUILD_WORKER_USER}/Documents - mkdir -p Projects/Github/Ximi1970 - cd Projects/Github/Ximi1970 - rm -rf systray-x - git clone https://github.com/Ximi1970/systray-x.git - cd systray-x - make - cd dist - /cygdrive/c/Program\ Files\ \(x86\)/NSIS/Bin/makensis.exe SysTray-X-32bit.nsi - /cygdrive/c/Program\ Files\ \(x86\)/NSIS/Bin/makensis.exe SysTray-X-64bit.nsi - mv -f SysTray-X-setup32.exe SysTray-X-setup32-${VERSION}.exe - mv -f SysTray-X-setup64.exe SysTray-X-setup64-${VERSION}.exe - lftp -u ${UPLOAD_USER},${UPLOAD_PASSWORD} ${UPLOAD_SERVER}/${UPLOAD_DIR} <<-ENDFTP - mput SysTray-X-setup*.exe - close - quit -ENDFTP - exit -ENDSSH - -# -# Shutdown worker -# -ssh ${BUILD_FARM_USER}@${BUILD_FARM} <<-ENDSSH - VBoxManage controlvm "${BUILD_WORKER_VMNAME}" acpipowerbutton -ENDSSH From 34b0870589eeb9975ea1056c0115be68dab75f05 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 27 Apr 2024 16:30:33 +0200 Subject: [PATCH 73/80] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index d118e9c..a7b7d5e 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,18 @@ Installing the repository: sudo zypper ar -f https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/openSUSE_Tumbleweed/ SysTray-X ``` +###### Slowroll + +```bash +sudo zypper ar -f https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/openSUSE_Slowroll/ SysTray-X +``` + +###### 15.6 + +```bash +sudo zypper ar -f https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/15.6/ SysTray-X +``` + ###### 15.5 ```bash From 4cc230a117e13f3bca1d63bfa1f9de857ffa99aa Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 27 Apr 2024 16:33:44 +0200 Subject: [PATCH 74/80] Update version --- dist/SysTray-X-32bit.nsi | 2 +- dist/SysTray-X-64bit.nsi | 2 +- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/rpm/VERSION | 6 +++--- dist/rpm/gnome/_service | 4 ++-- dist/rpm/kde/_service | 4 ++-- dist/rpm/minimal/_service | 4 ++-- webext/manifest.json | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/dist/SysTray-X-32bit.nsi b/dist/SysTray-X-32bit.nsi index b8284b5..0c19944 100644 --- a/dist/SysTray-X-32bit.nsi +++ b/dist/SysTray-X-32bit.nsi @@ -11,7 +11,7 @@ Name "${Name}" !define PRODUCT_ID "systray-x@Ximi1970" !define VERSIONMAJOR 0 !define VERSIONMINOR 9 -!define VERSIONBUILD 8 +!define VERSIONBUILD 9 !define VERSION "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}" CRCCheck On diff --git a/dist/SysTray-X-64bit.nsi b/dist/SysTray-X-64bit.nsi index bde2f75..0cfb9fa 100644 --- a/dist/SysTray-X-64bit.nsi +++ b/dist/SysTray-X-64bit.nsi @@ -11,7 +11,7 @@ Name "${Name}" !define PRODUCT_ID "systray-x@Ximi1970" !define VERSIONMAJOR 0 !define VERSIONMINOR 9 -!define VERSIONBUILD 8 +!define VERSIONBUILD 9 !define VERSION "${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}" CRCCheck On diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index 522fefe..1d08ef9 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Maxime Rijnders pkgname=systray-x-gnome -pkgver=0.9.8 +pkgver=0.9.9 pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (GNOME)' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 16aa9ce..d81b59f 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Maxime Rijnders pkgname=systray-x -pkgver=0.9.8 +pkgver=0.9.9 pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (KDE)' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index d8c82a3..e929f0e 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Maxime Rijnders pkgname=systray-x-minimal -pkgver=0.9.8 +pkgver=0.9.9 pkgrel=1 epoch=1 pkgdesc='A system tray extension for Thunderbird (Unity/XFCE/other)' diff --git a/dist/rpm/VERSION b/dist/rpm/VERSION index 9af9985..ebacefe 100644 --- a/dist/rpm/VERSION +++ b/dist/rpm/VERSION @@ -1,4 +1,4 @@ -VERSION=0.9.8 -BUILD_NUMBER=1067 -GIT_HASH=581a2014b2f11a7b2d0fa2de9e8b30dbacdb266f +VERSION=0.9.9 +BUILD_NUMBER=1143 +GIT_HASH=34b0870589eeb9975ea1056c0115be68dab75f05 GIT_BRANCH=develop diff --git a/dist/rpm/gnome/_service b/dist/rpm/gnome/_service index f56678f..e4f986b 100644 --- a/dist/rpm/gnome/_service +++ b/dist/rpm/gnome/_service @@ -2,8 +2,8 @@ https://github.com/Ximi1970/systray-x.git git - release-0.9.8 - 0.9.8 + release-0.9.9 + 0.9.9 systray-x-gnome dist/rpm/gnome/systray-x-gnome.changes dist/rpm/gnome/systray-x-gnome.spec diff --git a/dist/rpm/kde/_service b/dist/rpm/kde/_service index b99815b..026e73e 100644 --- a/dist/rpm/kde/_service +++ b/dist/rpm/kde/_service @@ -2,8 +2,8 @@ https://github.com/Ximi1970/systray-x.git git - release-0.9.8 - 0.9.8 + release-0.9.9 + 0.9.9 dist/rpm/kde/systray-x.changes dist/rpm/kde/systray-x.spec dist/rpm/VERSION diff --git a/dist/rpm/minimal/_service b/dist/rpm/minimal/_service index 60967da..02aca0d 100644 --- a/dist/rpm/minimal/_service +++ b/dist/rpm/minimal/_service @@ -2,8 +2,8 @@ https://github.com/Ximi1970/systray-x.git git - release-0.9.8 - 0.9.8 + release-0.9.9 + 0.9.9 systray-x-minimal dist/rpm/minimal/systray-x-minimal.changes dist/rpm/minimal/systray-x-minimal.spec diff --git a/webext/manifest.json b/webext/manifest.json index e1e0e3d..23c2b56 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "__MSG_extension_name__", "description": "__MSG_extension_description__", - "version": "0.9.8", + "version": "0.9.9", "author": "Maxime Rijnders", "homepage_url": "https://github.com/Ximi1970/systray-x", From d420cedd8f257799f14521fee0d4fce611f3be47 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 27 Apr 2024 16:38:41 +0200 Subject: [PATCH 75/80] Update version --- dist/rpm/VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/rpm/VERSION b/dist/rpm/VERSION index ebacefe..8eb0ab5 100644 --- a/dist/rpm/VERSION +++ b/dist/rpm/VERSION @@ -1,4 +1,4 @@ VERSION=0.9.9 -BUILD_NUMBER=1143 -GIT_HASH=34b0870589eeb9975ea1056c0115be68dab75f05 +BUILD_NUMBER=1144 +GIT_HASH=4cc230a117e13f3bca1d63bfa1f9de857ffa99aa GIT_BRANCH=develop From 25bb52f79402c156be8a6aeb13f1a0ed8e96cd6b Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 27 Apr 2024 20:19:33 +0200 Subject: [PATCH 76/80] Fix filter conversion --- webext/js/defaults.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/webext/js/defaults.js b/webext/js/defaults.js index 5e49cac..263c884 100644 --- a/webext/js/defaults.js +++ b/webext/js/defaults.js @@ -301,6 +301,14 @@ async function getFilters() { const newFilters = []; for (const account of SysTrayX.Messaging.accounts) { + let rootFolder = account.rootFolder + if( rootFolder === undefined ) { + rootFolder = { + path: "", + subFolders: account.folders + }; + } + const filter = filters.filter( (filter) => filter.accountId === account.id ); @@ -316,7 +324,7 @@ async function getFilters() { }; for (const path of filter[0].folders) { - const accountFolder = findFolder(account.rootFolder, path) + const accountFolder = findFolder(rootFolder, path); if (accountFolder !== undefined) { @@ -706,7 +714,10 @@ const sendMailCount = async () => { }; } else { // Filters TB 121 - listParam = storedFolder.mailFolderId; + listParam = { + accountId: filter.accountId, + path: storedFolder.path, + }; } async function* listMessages(listParam) { From 5fcf8c4c41d25bee289256f343ef6f0fc4206fa0 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sun, 26 May 2024 15:03:23 +0200 Subject: [PATCH 77/80] Update Arch package number --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index 1d08ef9..d5feb14 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x-gnome pkgver=0.9.9 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc='A system tray extension for Thunderbird (GNOME)' arch=(x86_64) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index d81b59f..0f327c3 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x pkgver=0.9.9 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc='A system tray extension for Thunderbird (KDE)' arch=(x86_64) diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index e929f0e..85f8a4a 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x-minimal pkgver=0.9.9 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc='A system tray extension for Thunderbird (Unity/XFCE/other)' arch=(x86_64) From e500b37526a703d77196bc872552e8bcab029311 Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 13 Jul 2024 13:47:54 +0200 Subject: [PATCH 78/80] Update TB version --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/debian.control | 2 +- dist/deb/kde/debian.control | 2 +- dist/deb/minimal/debian.control | 2 +- dist/rpm/gnome/systray-x-gnome.spec | 4 ++-- dist/rpm/kde/systray-x.spec | 4 ++-- dist/rpm/minimal/systray-x-minimal.spec | 4 ++-- webext/manifest.json | 2 +- 10 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index d5feb14..b9e7bcd 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'gnome-shell-extension-appindicator' 'thunderbird>=91' - 'thunderbird<126' + 'thunderbird<129' ) makedepends=( 'git' diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 0f327c3..1473ac7 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -13,7 +13,7 @@ depends=( 'qt6-wayland' 'kstatusnotifieritem' 'thunderbird>=91' - 'thunderbird<126' + 'thunderbird<129' ) makedepends=( 'git' diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 85f8a4a..7ecbbed 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -12,7 +12,7 @@ depends=( 'qt6-base' 'qt6-wayland' 'thunderbird>=91' - 'thunderbird<126' + 'thunderbird<129' ) makedepends=( 'git' diff --git a/dist/deb/gnome/debian.control b/dist/deb/gnome/debian.control index 3b97ada..76d4211 100644 --- a/dist/deb/gnome/debian.control +++ b/dist/deb/gnome/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-gnome Architecture: any -Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:126) +Depends: ${shlibs:Depends}, gnome-shell-extension-appindicator, thunderbird (>= 1:91), thunderbird (< 1:129) Description: SysTray-X is a system tray extension for Thunderbird (GNOME). This version is optimized for the GNOME desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/kde/debian.control b/dist/deb/kde/debian.control index 31a9a8c..e0aa427 100644 --- a/dist/deb/kde/debian.control +++ b/dist/deb/kde/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:126) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:129) Description: SysTray-X is a system tray extension for Thunderbird (KDE). This version is optimized for the KDE desktop. The add-on uses the WebExtension API's to control an external system diff --git a/dist/deb/minimal/debian.control b/dist/deb/minimal/debian.control index 30cb79b..986180e 100644 --- a/dist/deb/minimal/debian.control +++ b/dist/deb/minimal/debian.control @@ -6,7 +6,7 @@ Build-Depends: debhelper (>= 4.1.16), zip, g++, libx11-dev, qt5-qmake, qtbase5-d Package: systray-x-minimal Architecture: any -Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:126) +Depends: ${shlibs:Depends}, thunderbird (>= 1:91), thunderbird (< 1:129) Description: SysTray-X is a system tray extension for Thunderbird (non-GNOME,non-KDE). This version is for non-KDE and non-GNOME desktops. The add-on uses the WebExtension API's to control an external system diff --git a/dist/rpm/gnome/systray-x-gnome.spec b/dist/rpm/gnome/systray-x-gnome.spec index ed475b1..b50457c 100644 --- a/dist/rpm/gnome/systray-x-gnome.spec +++ b/dist/rpm/gnome/systray-x-gnome.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 126 +Requires: thunderbird < 129 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 126 +Requires: MozillaThunderbird < 129 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/kde/systray-x.spec b/dist/rpm/kde/systray-x.spec index ef3e927..cdab400 100644 --- a/dist/rpm/kde/systray-x.spec +++ b/dist/rpm/kde/systray-x.spec @@ -54,10 +54,10 @@ Requires: libKF5Notifications5 BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} Requires: thunderbird >= 91 -Requires: thunderbird < 126 +Requires: thunderbird < 129 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 126 +Requires: MozillaThunderbird < 129 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/dist/rpm/minimal/systray-x-minimal.spec b/dist/rpm/minimal/systray-x-minimal.spec index 2277226..6a741cf 100644 --- a/dist/rpm/minimal/systray-x-minimal.spec +++ b/dist/rpm/minimal/systray-x-minimal.spec @@ -43,10 +43,10 @@ BuildRequires: libqt5-qtx11extras-devel BuildRequires: pkgconfig(x11) %if 0%{?fedora_version} || 0%{?centos_version} Requires: thunderbird >= 91 -Requires: thunderbird < 126 +Requires: thunderbird < 129 %else Requires: MozillaThunderbird >= 91 -Requires: MozillaThunderbird < 126 +Requires: MozillaThunderbird < 129 %endif %if 0%{?suse_version} > 1600 || 0%{?fedora_version} > 39 %if 0%{?fedora_version} diff --git a/webext/manifest.json b/webext/manifest.json index 23c2b56..35fa08a 100644 --- a/webext/manifest.json +++ b/webext/manifest.json @@ -10,7 +10,7 @@ "gecko": { "id": "systray-x@Ximi1970", "strict_min_version": "91.0", - "strict_max_version": "125.*" + "strict_max_version": "128.*" } }, From e8cb31b05f17688efd514654165806933479e4fa Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 13 Jul 2024 14:09:04 +0200 Subject: [PATCH 79/80] Update package release number --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/systray-x-gnome.dsc | 2 +- dist/deb/kde/systray-x.dsc | 2 +- dist/deb/minimal/systray-x-minimal.dsc | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index b9e7bcd..d7e9cf3 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x-gnome pkgver=0.9.9 -pkgrel=2 +pkgrel=3' epoch=1 pkgdesc='A system tray extension for Thunderbird (GNOME)' arch=(x86_64) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 1473ac7..4b8eb50 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x pkgver=0.9.9 -pkgrel=2 +pkgrel=3' epoch=1 pkgdesc='A system tray extension for Thunderbird (KDE)' arch=(x86_64) diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 7ecbbed..66c366e 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x-minimal pkgver=0.9.9 -pkgrel=2 +pkgrel=3' epoch=1 pkgdesc='A system tray extension for Thunderbird (Unity/XFCE/other)' arch=(x86_64) diff --git a/dist/deb/gnome/systray-x-gnome.dsc b/dist/deb/gnome/systray-x-gnome.dsc index 9af3a77..5253b28 100644 --- a/dist/deb/gnome/systray-x-gnome.dsc +++ b/dist/deb/gnome/systray-x-gnome.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-gnome -Version: 0.9.9-1 +Version: 0.9.9-3) Binary: systray-x-gnome Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/kde/systray-x.dsc b/dist/deb/kde/systray-x.dsc index d58cfb2..f37a3df 100644 --- a/dist/deb/kde/systray-x.dsc +++ b/dist/deb/kde/systray-x.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x -Version: 0.9.9-1 +Version: 0.9.9-3) Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/minimal/systray-x-minimal.dsc b/dist/deb/minimal/systray-x-minimal.dsc index c946a85..437ae59 100644 --- a/dist/deb/minimal/systray-x-minimal.dsc +++ b/dist/deb/minimal/systray-x-minimal.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-minimal -Version: 0.9.9-1 +Version: 0.9.9-3) Binary: systray-x-minimal Maintainer: Maxime Rijnders Architecture: any From 99eda6585f0ac9b031b98c380d9f03a143f4264f Mon Sep 17 00:00:00 2001 From: Ximi1970 Date: Sat, 13 Jul 2024 14:20:09 +0200 Subject: [PATCH 80/80] iUpdate package release number --- dist/arch/gnome/PKGBUILD | 2 +- dist/arch/kde/PKGBUILD | 2 +- dist/arch/minimal/PKGBUILD | 2 +- dist/deb/gnome/systray-x-gnome.dsc | 2 +- dist/deb/kde/systray-x.dsc | 2 +- dist/deb/minimal/systray-x-minimal.dsc | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/arch/gnome/PKGBUILD b/dist/arch/gnome/PKGBUILD index d7e9cf3..e657f12 100644 --- a/dist/arch/gnome/PKGBUILD +++ b/dist/arch/gnome/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x-gnome pkgver=0.9.9 -pkgrel=3' +pkgrel=3 epoch=1 pkgdesc='A system tray extension for Thunderbird (GNOME)' arch=(x86_64) diff --git a/dist/arch/kde/PKGBUILD b/dist/arch/kde/PKGBUILD index 4b8eb50..b209248 100644 --- a/dist/arch/kde/PKGBUILD +++ b/dist/arch/kde/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x pkgver=0.9.9 -pkgrel=3' +pkgrel=3 epoch=1 pkgdesc='A system tray extension for Thunderbird (KDE)' arch=(x86_64) diff --git a/dist/arch/minimal/PKGBUILD b/dist/arch/minimal/PKGBUILD index 66c366e..ffe0436 100644 --- a/dist/arch/minimal/PKGBUILD +++ b/dist/arch/minimal/PKGBUILD @@ -2,7 +2,7 @@ pkgname=systray-x-minimal pkgver=0.9.9 -pkgrel=3' +pkgrel=3 epoch=1 pkgdesc='A system tray extension for Thunderbird (Unity/XFCE/other)' arch=(x86_64) diff --git a/dist/deb/gnome/systray-x-gnome.dsc b/dist/deb/gnome/systray-x-gnome.dsc index 5253b28..c9e1a12 100644 --- a/dist/deb/gnome/systray-x-gnome.dsc +++ b/dist/deb/gnome/systray-x-gnome.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-gnome -Version: 0.9.9-3) +Version: 0.9.9-3 Binary: systray-x-gnome Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/kde/systray-x.dsc b/dist/deb/kde/systray-x.dsc index f37a3df..db4abf4 100644 --- a/dist/deb/kde/systray-x.dsc +++ b/dist/deb/kde/systray-x.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x -Version: 0.9.9-3) +Version: 0.9.9-3 Binary: SysTray-X Maintainer: Maxime Rijnders Architecture: any diff --git a/dist/deb/minimal/systray-x-minimal.dsc b/dist/deb/minimal/systray-x-minimal.dsc index 437ae59..96068c7 100644 --- a/dist/deb/minimal/systray-x-minimal.dsc +++ b/dist/deb/minimal/systray-x-minimal.dsc @@ -1,6 +1,6 @@ Format: 1.0 Source: systray-x-minimal -Version: 0.9.9-3) +Version: 0.9.9-3 Binary: systray-x-minimal Maintainer: Maxime Rijnders Architecture: any