From b59513ab91112501dbc3024b0b201a64fc51dcfe Mon Sep 17 00:00:00 2001 From: LubuWest Date: Mon, 22 Apr 2024 22:01:01 +0200 Subject: [PATCH] Background sync changes --- BackgroundSync.patch | 11 ++ CHANGELOG.md | 6 + PrivacyPolicy.md | 3 +- src/CMakeLists.txt | 1 - src/assets/friendiqa-sync.service | 7 -- src/assets/friendiqa-sync.timer | 10 -- src/common/alarmlinux.cpp | 33 ++++++ src/qml/configqml/ConfigAppearancePage.qml | 2 +- src/qml/configqml/ConfigPage.qml | 2 +- src/qml/configqml/OSSettingsAndroid.qml | 2 +- src/qml/newsqml/NewsStack.qml | 1 + src/qml/newsqml/Newsitem.qml | 3 +- src/translations/friendiqa-de.ts | 130 ++++++++++----------- 13 files changed, 122 insertions(+), 89 deletions(-) create mode 100644 BackgroundSync.patch delete mode 100644 src/assets/friendiqa-sync.service delete mode 100644 src/assets/friendiqa-sync.timer diff --git a/BackgroundSync.patch b/BackgroundSync.patch new file mode 100644 index 0000000..263f528 --- /dev/null +++ b/BackgroundSync.patch @@ -0,0 +1,11 @@ +--- src/common/alarmlinux.cpp ++++ src/common/alarmlinux.cpp +@@ -67,7 +67,7 @@ + stream << "Description=Run friendiqa background sync" << Qt::endl << Qt::endl; + stream << "[Service]" << Qt::endl; + stream << "Type=oneshot" << Qt::endl; +- stream << "ExecStart=/usr/bin/friendiqa -service" << Qt::endl; ++ stream << "ExecStart=flatpak run de.manic.friendiqa -service" << Qt::endl; + } + + QString nameTimer ="friendiqa-sync.timer"; diff --git a/CHANGELOG.md b/CHANGELOG.md index 491a5e5..81cab7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## v0.6.9 + +* Separate window for new messages with more formatting options +* Replaced all Fontawesome icons with system icons +* Switch between OAuth2 and Basic Auth +* Background sync with systemd-timer and removal of system tray ## v0.6.8 diff --git a/PrivacyPolicy.md b/PrivacyPolicy.md index c15eb20..716bb9e 100644 --- a/PrivacyPolicy.md +++ b/PrivacyPolicy.md @@ -5,5 +5,4 @@ You have probably selected Friendica as your preferred social network because yo Storing some pieces of user data on the device is necessary for some app features, other apps on your device may not access this data (keeping app’s own database storage protected from other apps is guaranteed by Android). The app has been programmed so that stored information contain any personal data (only login data and id number of last seen post will be transferred to servers). Photos from the albums and contact images are stored in a public directory on the device. Other apps may access these files and the Friendiqa needs access to this directory. To send images from the Android gallery the app needs access to picture databases on the device. -This app don’t collect any usage statistics. In addition, no information is sent from your Smartphone to me as a developer or to a website associated with me. -On first start, the website https://dir.friendica.social/servers/surprise is contacted and the selected server shown in the app. +This app doesn’t collect any usage statistics. In addition, no information is sent from your smartphone to me as a developer or to a website associated with me. diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d4bde6d..85914fb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -46,7 +46,6 @@ target_link_libraries(friendiqa PRIVATE Qt6::Sql) target_link_libraries(friendiqa PRIVATE Qt6::DBus) target_link_libraries(friendiqa PRIVATE Qt6::NetworkAuth) target_link_libraries(friendiqa PRIVATE Qt6::Multimedia) -#target_link_libraries(friendiqa PRIVATE Qt6::Svg) install(TARGETS friendiqa DESTINATION ${CMAKE_INSTALL_BINDIR}) install(FILES assets/de.manic.Friendiqa.desktop DESTINATION share/applications) diff --git a/src/assets/friendiqa-sync.service b/src/assets/friendiqa-sync.service deleted file mode 100644 index c736814..0000000 --- a/src/assets/friendiqa-sync.service +++ /dev/null @@ -1,7 +0,0 @@ -[Unit] -Description=Run friendiqa background sync - -[Service] -Type=oneshot -ExecStart=/usr/bin/friendiqa -service - diff --git a/src/assets/friendiqa-sync.timer b/src/assets/friendiqa-sync.timer deleted file mode 100644 index c189795..0000000 --- a/src/assets/friendiqa-sync.timer +++ /dev/null @@ -1,10 +0,0 @@ -[Unit] -Description=Run background sync for Friendiqa periodically - -[Timer] -Unit=friendiqa-sync.service -OnBootSec=10min -OnUnitActiveSec=15min - -[Install] -WantedBy=timers.target diff --git a/src/common/alarmlinux.cpp b/src/common/alarmlinux.cpp index b7b0846..5b78567 100644 --- a/src/common/alarmlinux.cpp +++ b/src/common/alarmlinux.cpp @@ -52,6 +52,39 @@ void ALARM::setAlarm(int interval) int intDisable = processDisable.execute("systemctl", QStringList() <<"--user"<<"disable"<<"--now"<<"friendiqa-sync.timer"); qDebug() << " intEnable "< - + AcceptRules @@ -189,7 +189,7 @@ Default News Tabs - + Standard-Tabs für Posts @@ -228,7 +228,7 @@ Close - + Schließen @@ -527,18 +527,18 @@ Direct Message - Direktnachricht + Direktnachricht Close - + Schließen Contactlist Close - + Schließen @@ -557,7 +557,7 @@ Close - + Schließen @@ -644,7 +644,7 @@ Close - + Schließen @@ -753,27 +753,27 @@ Close - + Schließen Start date - + Veranstaltungsbeginn Start time - + Startzeit End date - + Veranstaltungsende End time - + Endzeitpunkt Accept time - + Zeitpunkt akzeptieren @@ -788,7 +788,7 @@ Close - + Schließen @@ -802,7 +802,7 @@ FriendicaActivities Close - + Schließen @@ -825,7 +825,7 @@ refresh - + Aktualisieren @@ -859,18 +859,18 @@ Close - + Schließen Members - + Mitglieder GroupsListTab refresh - + Aktualisieren @@ -909,14 +909,14 @@ Close - + Schließen InfoBox Close - + Schließen @@ -946,7 +946,7 @@ Add - + Neu @@ -983,103 +983,103 @@ Answer to - + Antwort an New message - + Neue Nachricht Copy - + Kopieren Cut - + Ausschneiden Paste - + Einfügen Text - + Text Bold - + Fett Format - + Formatieren Italic - + Kursiv Create list - + Liste erstellen Format as code - + Als Code formatieren Rendered - + gerendert MD - + MD Show Markdown code - + Zeige Markdown Text Edit - + Bearbeiten emojies - + Emojis Insert smiley - + Smiley einfügen Insert previous hashtag - + Bestehenden Hashtag einfügen Image - Bild + Bild Insert images - + Bild einfügen Cancel message - + Nachricht abbrechen Close - + Schließen Format message - + Nachricht Formatieren Send message - + Nachricht senden Send - + Senden @@ -1093,7 +1093,7 @@ NewsPhotolist Close - + Schließen @@ -1108,7 +1108,7 @@ Close - + Schließen @@ -1250,7 +1250,7 @@ NewsVideoLarge Close - + Schließen @@ -1349,19 +1349,19 @@ Like - + Ich mag das Dislike - + Ich mag das nicht Favorite - + Markieren Menu - + Menü @@ -1376,11 +1376,11 @@ save - + Speichern apply - + Anwenden @@ -1407,15 +1407,15 @@ upload - + Hochladen download - + Herunterladen Close - + Schließen @@ -1602,7 +1602,7 @@ refresh - + Aktualisieren @@ -1648,7 +1648,7 @@ Close - + Schließen @@ -1674,7 +1674,7 @@ Backgound Sync - + Hintergrund-Aktualisierung @@ -1751,7 +1751,7 @@ Rechtsklick oder Mittelklick zum Schliessen Images - + Bilder @@ -1850,7 +1850,7 @@ Rechtsklick oder Mittelklick zum Schliessen years - Jahre + Jahre