UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. lk108
    L
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 21
    • Groups 0

    lk108

    @lk108

    5
    Reputation
    3
    Profile views
    21
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    lk108 Unfollow Follow

    Best posts made by lk108

    • RE: DeltaTouch / Delta Chat

      @Schlicki2808 Actually, it's me (Lothar). Great to hear that you like the app. Dekko runs a daemon in the background for notifications. There are some technical reasons why this is not so easy for DeltaTouch (let me know if you like to hear the details, it's a little bit complex). Maybe the situation will be different in the future as the use of the library provided by the Delta team that DeltaTouch is based upon will undergo some changes which might make a daemon easier to realize - not sure about that though.

      For the time being, notifications depend a little bit whether you're on xenial or on focal. In any case, if background suspension is disabled for DeltaTouch, you will receive notifications if the app is running and in background. In xenial, disabling background suspension can be achieved via UT Tweak Tool. For focal, it can be done via command line (see below), or (as far as I know) a certain git version of UT Tweak Tool has to be build by yourself.

      On xenial, if the app is in foreground, you will receive notifications for all accounts that are not the currently selected account (if in chatlist view) or, if you are currently viewing a chat, you will receive notifications for all conversations/accounts except for this specific chat.

      On focal, UT currently suppresses any notifications for the app that is currently in foreground, I can't do anything about that.

      Disabling background suspension in focal via command line (thanks to Danfro for instructions):

      1. Fetch current suspended apps:
      gsettings get com.canonical.qtmir lifecycle-exempt-appids
      
      1. Add DeltaTouch to the list (the following assumes that the output of the previous command gave ['com.ubuntu.music'], please adapt to the output of your device):
      gsettings set com.canonical.qtmir lifecycle-exempt-appids "['com.ubuntu.music', 'deltatouch.lotharketterer']"
      
      posted in App Development
      L
      lk108
    • RE: What are a few straightforward ways to write notes in Ubuntu Touch and be able to get them on the Internet/WWW on my Debian PC?

      @Opolork Maybe some more tips regarding DeltaTouch:

      • You are not restricted to the "Saved Messages" chat. To sort your stuff somewhat, you can create as many groups as you want with yourself as the only member. All these groups will be synchronized with all your devices running DeltaTouch or any other Delta Chat app that also have this profile (added as second device or via backup import).
      • Check out Webxdc Apps: There are, e.g., editor apps, todo lists and shopping lists. Their contents and status will also be synchronized with the members of the chat (your devices only, if you are the only member of a group). These apps are running fully local, and except with the chat members, no data is shared with any third party or website. Just click the "+" at the bottom of a chat and select "Apps".
      posted in Support
      L
      lk108
    • RE: Installing Focal on FP2

      @oli.sax I asked regarding this in the "UBports Welcome & Install help [English]" Telegram channel back in April. Someone responded "oh crap i forgot to fix that". I did not follow up as it was not that important to me.

      posted in Fairphone 2
      L
      lk108
    • RE: Send notification locally from QT/C++/QML App.

      @pparent For my app, this works: https://codeberg.org/lk108/deltatouch/src/commit/d734cab514c0ee0c465b759d46c05ada322f58ca/src/plugins/DeltaHandler/notificationsLomiriPostal.cpp#L345
      (but only if the app is not currently shown to the user)

      posted in App Development
      L
      lk108

    Latest posts made by lk108

    • RE: Ubuntu Touch Q&A 182 Call for Questions

      @UBportsNews Many thanks to Alfred for the possibility to encrypt personal data, really great! In the release notes of 24.04-1.0, it's stated that the feature needs to be enabled per-device, and indeed there seem to be some devices where it hasn't landed yet. How likely is it that the feature will be available for all noble devices eventually?

      posted in News
      L
      lk108
    • RE: What are a few straightforward ways to write notes in Ubuntu Touch and be able to get them on the Internet/WWW on my Debian PC?

      @Opolork Maybe some more tips regarding DeltaTouch:

      • You are not restricted to the "Saved Messages" chat. To sort your stuff somewhat, you can create as many groups as you want with yourself as the only member. All these groups will be synchronized with all your devices running DeltaTouch or any other Delta Chat app that also have this profile (added as second device or via backup import).
      • Check out Webxdc Apps: There are, e.g., editor apps, todo lists and shopping lists. Their contents and status will also be synchronized with the members of the chat (your devices only, if you are the only member of a group). These apps are running fully local, and except with the chat members, no data is shared with any third party or website. Just click the "+" at the bottom of a chat and select "Apps".
      posted in Support
      L
      lk108
    • RE: Call for testing: Ubuntu Touch 24.04-1.1

      @peat_psuwit Thanks for the detailed explanation, very helpful! And the detection in the MR you linked is a piece of art.

      posted in OS
      L
      lk108
    • RE: Call for testing: Ubuntu Touch 24.04-1.1

      @Keli It's not about the "Clear all" button, but about DeltaTouch removing the notification automatically, for example if you open a chat that contains the message for which a notification was sent.

      posted in OS
      L
      lk108
    • RE: Call for testing: Ubuntu Touch 24.04-1.1

      @Keli said in Call for testing: Ubuntu Touch 24.04-1.1:

      ush notifications work - I tested with DeltaTouch

      However, clearing notifications does not work with DeltaTouch and 24.04-1.1 RC. We adapted to what we perceived as a change in the notifications DBus interface from focal to noble, but it seems this change is reverted in 24.04-1.1, so we need to revert as well, I assume.

      @peat_psuwit said in Call for testing: Ubuntu Touch 24.04-1.1:

      The Teleports update should not be needed for this to be fixed, at least in the specific case of Teleports.

      In xenial and focal, the clearPersistent DBus method of com.Lomiri.Postal required the appid and the tag as a string. In 24.04-1.0, the tag(s) had to be passed as array of strings. Is it correct that this has been reverted and tags are passed as strings instead of an array of strings to clearPersistent?

      posted in OS
      L
      lk108
    • RE: Send notification locally from QT/C++/QML App.

      @pparent said in Send notification locally from QT/C++/QML App.:

      I guess this was the missing piece that I had seen nowhere else. ( Having PROGRAM instead of files )

      I found this by checking journalctl -f on the device while calling gdbus

      posted in App Development
      L
      lk108
    • RE: Send notification locally from QT/C++/QML App.

      @pparent Three things:

      1. In your manifest, you define a hook "notify-notify", but it should be "push":
      [...]
          "hooks": {
              "notify": {
                  "apparmor": "notify.apparmor",
                  "desktop":  "notify.desktop",
                  "content-hub": "content-hub.json"
              },
              "push": {
                  "apparmor": "notify-push.apparmor",
                  "push-helper": "notify-push-helper.json"
              }
          },
      [...]
      
      1. You need to install the push helper with execution rights in CMakeLists.txt:
      install(PROGRAMS pushexec DESTINATION ${CMAKE_INSTALL_PREFIX})
      
      1. I was not aware, but there actually seems to be a difference between confined and unconfined apps. The push helper of dekko is allowed to use cp, but for your app, it's not. So instead of the simple bash script that just says cp $1 $2, use python in your pushexec:
      #!/usr/bin/python3
      import sys
      f1, f2 = sys.argv[1:3]
      open(f2, "w").write(open(f1).read())
      

      With this, your gdbus line works.

      posted in App Development
      L
      lk108
    • RE: Send notification locally from QT/C++/QML App.

      @pparent For my app, this works: https://codeberg.org/lk108/deltatouch/src/commit/d734cab514c0ee0c465b759d46c05ada322f58ca/src/plugins/DeltaHandler/notificationsLomiriPostal.cpp#L345
      (but only if the app is not currently shown to the user)

      posted in App Development
      L
      lk108
    • RE: Send notification locally from QT/C++/QML App.

      @pparent The DBus call passes the JSON at the end of your command to the so-called push helper. This is a separate executable that is shipped with each app that supports push. Check the manifest, it defines a hook "push" which has an entry "push-helper". This entry again references a JSON with an entry "exec" pointing to the push helper executable.

      The push helper is called by the system with an infile containing the JSON passed by the DBus call, and an outfile to which the push helper is expected to write a JSON in a format that is understood by the notification service.

      In the case of dekko2, the push helper is just passing the content of the infile to the outfile as it is already fed something in the correct format by dekko's background service. So your command works. In the case of teleports, the push helper is expecting something else entirely, and does not know what to do with the JSON that you fed to it via your DBus call.

      posted in App Development
      L
      lk108
    • RE: Send notification locally from QT/C++/QML App.

      @pparent Notifications has nothing to do with the app being confined or not

      posted in App Development
      L
      lk108