# DeltaChat running on mobian (PineTab, PinePhone)

**URL:** <https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222>\
**Category:** Uncategorized\
**Created:** [October 13, 2020, 8:40am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222 "2020-10-13T08:40:40Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![bokf](https://forum.delta.chat/user_avatar/forum.delta.chat/bokf/32/498_2.png) [@bokf](https://forum.delta.chat/u/bokf)\
**Post date:** [August 3, 2021, 9:14am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/41 "2021-08-03T09:14:22Z")

</div>

Following your link I see:

```auto
kdeltachat: unstable-2021-07-17 -> unstable-2021-08-02

```

If I make a reinstall with `nix-env -i kdeltachat-unstable` the message is still:

`replacing old kdeltachat-unstable-2021-06-14`  
`installing kdeltachat-unstable-2021-06-14`

So I don’t even get version 2021-07-17

---

<div class="post-metadata">

**Author:** ![dotlambda](https://forum.delta.chat/letter_avatar_proxy/v4/letter/d/b487fb/32.png) [@dotlambda](https://forum.delta.chat/u/dotlambda)\
**Post date:** [August 3, 2021, 9:52am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/42 "2021-08-03T09:52:21Z")

</div>

Oops, I forgot that you have to do `nix-channel --update` before running `nix-env -u --always`. It’s analogous to running `apt update` before `apt upgrade`.

---

<div class="post-metadata">

**Author:** ![bokf](https://forum.delta.chat/user_avatar/forum.delta.chat/bokf/32/498_2.png) [@bokf](https://forum.delta.chat/u/bokf)\
**Post date:** [August 3, 2021, 10:35am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/43 "2021-08-03T10:35:36Z")

</div>

Thanks! Now I have version 2021-07-17 running.  
One remark regarding pictures, the width is not fitting anymore holding the phone in portrait mode. And portrait pictures are cut in the upper and lower part (I hope you understand). In the example the picture of the lake goes much more to the right, top and button. So I know in kdeltachat, that there is a picture, but I have to look at it in my email program. In the version 2021-06-14 the picture width has fit to the screen width.  
 ![deltachat-red](https://support.delta.chat/uploads/default/original/2X/1/1f10aefcb11bafcb0a3dd3fcaaf8e509240e2ae0.png)

---

<div class="post-metadata">

**Author:** ![bokf](https://forum.delta.chat/user_avatar/forum.delta.chat/bokf/32/498_2.png) [@bokf](https://forum.delta.chat/u/bokf)\
**Post date:** [August 13, 2021, 7:42pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/44 "2021-08-13T19:42:53Z")

</div>

> [@link2xt](#):
>
> Just added basic “New Chat” page, now you can create 1:1 chats from KDeltaChat.

Thanks for adding “New Chat” page! Finally I have the new version running on my PinePhone. If I use the “New Chat” button I come to a selection of email addresses. The suggestions seam arbitrary to me and I did not find out from which address book they result. Is there a field, where I can enter an email address manually, if the address I am looking for is not in the suggestions?

---

<div class="post-metadata">

**Author:** ![mray](https://forum.delta.chat/user_avatar/forum.delta.chat/mray/32/10_2.png) [@mray](https://forum.delta.chat/u/mray)\
**Post date:** [November 12, 2021, 3:37pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/45 "2021-11-12T15:37:09Z")

</div>

Just stumbled upon this post: [arbocenc: "#DeltaChat desktop (using #flatpak) runs very wel…" - Todon.nl](https://todon.nl/@arbocenc/107263224634767703) …

Seems there is a flatpak available!

---

<div class="post-metadata">

**Author:** ![bokf](https://forum.delta.chat/user_avatar/forum.delta.chat/bokf/32/498_2.png) [@bokf](https://forum.delta.chat/u/bokf)\
**Post date:** [November 12, 2021, 8:02pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/46 "2021-11-12T20:02:49Z")

</div>

I installed it right now and the flatpak is also running on my PinePhone!  
Thanks for the note.

---

<div class="post-metadata">

**Author:** ![Marko](https://forum.delta.chat/user_avatar/forum.delta.chat/marko/32/3510_2.png) [@Marko](https://forum.delta.chat/u/Marko)\
**Post date:** [January 4, 2024, 6:50am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/47 "2024-01-04T06:50:58Z")

</div>

Hey, is your project still active?

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/user_avatar/forum.delta.chat/link2xt/32/1971_2.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [January 4, 2024, 4:21pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/48 "2024-01-04T16:21:26Z")

</div>

I do not develop [~link2xt/kdeltachat - DeltaChat client built with Kirigami - sourcehut git](https://git.sr.ht/~link2xt/kdeltachat/) further currently. I would like to wait until kf6 hits Arch Linux repos and then port it to Qt 6 and Kirigami 6.

There is also a fork with notifications that should be ported to mainline: [GitHub - eerielili/kdeltachat: Personal branch for kdeltachat with some added functionnalities](https://github.com/eerielili/kdeltachat)

There is an actively developed [lk108/deltatouch: Messaging app for Ubuntu Touch, powered by deltachat-core - Codeberg.org](https://codeberg.org/lk108/deltatouch) but it uses Ubuntu Touch Lomiri components rather than Kirigami so probably not portable to non-ubuntu touch Linux phones.

---

<div class="post-metadata">

**Author:** ![lk108](https://forum.delta.chat/user_avatar/forum.delta.chat/lk108/32/1668_2.png) [@lk108](https://forum.delta.chat/u/lk108)\
**Post date:** [January 4, 2024, 6:20pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/49 "2024-01-04T18:20:22Z")

</div>

@Marko I don’t want to ignite too much hope, but I recently got myself a second-hand phone and installed mobian on it…

---

<div class="post-metadata">

**Author:** ![link2xt](https://forum.delta.chat/user_avatar/forum.delta.chat/link2xt/32/1971_2.png) [@link2xt](https://forum.delta.chat/u/link2xt)\
**Post date:** [January 14, 2024, 4:31am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/50 "2024-01-14T04:31:21Z")

</div>

While [sourcehut is down](https://outage.sr.ht/), I have set up a mirror at codeberg: [https://codeberg.org/link2xt/kdeltachat](https://codeberg.org/link2xt/kdeltachat)

I also fixed compilation with the new core and added one commit to prepare for Kirigami 6.

---

<div class="post-metadata">

**Author:** ![lk108](https://forum.delta.chat/user_avatar/forum.delta.chat/lk108/32/1668_2.png) [@lk108](https://forum.delta.chat/u/lk108)\
**Post date:** [March 26, 2024, 10:41pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/51 "2024-03-26T22:41:30Z")

</div>

DeltaTouch can run on Mobian and Droidian now. Some things (audio playback + recording, translations, …?) don’t work, and it’s not properly packaged yet. If you want to tinker with it, check out the [installation howto](https://codeberg.org/lk108/deltatouch/wiki/Installation-on-Mobian-and-Droidian-%28manual%2C-experimental%29).

Feedback and help with packaging welcome.

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [January 9, 2025, 9:47pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/52 "2025-01-09T21:47:52Z")

</div>

I tried it on a fresh Mobian install and I’m sorry to say it did not work: all I managed was a blank “DeltaTouch” icon in the apps tray. Since the commands were rather a lot to type into a phone, I shoved them into a script (which I have renamed “.txt” instead of “.sh” so I can upload it):  
[deltatouch\_installation\_script.txt](https://forum.delta.chat/uploads/short-url/fNNmGmYCt9o7zUXBh1kK4igs2f4.txt) (1.5 KB)  
Please let me know if you see what I’m getting wrong.

---

<div class="post-metadata">

**Author:** ![lk108](https://forum.delta.chat/user_avatar/forum.delta.chat/lk108/32/1668_2.png) [@lk108](https://forum.delta.chat/u/lk108)\
**Post date:** [January 9, 2025, 11:34pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/53 "2025-01-09T23:34:04Z")

</div>

As this is currently just a hacky way to make it work, everything is installed into `${HOME}/bin/deltatouch` except for the desktop file and the startup script. However, the `sed` line your script uses `uname -n` which gives the hostname instead of your username, so check the paths in `deltatouch.desktop` and `dt.sh`, they may not point to your home dir.

In your script, you could maybe use  
` eval sed -i 's:/home/droidian:${HOME}:g' ./dt.sh ./deltatouch.desktop`  
instead.

At another point, your script uses `${SUDO_USER}` to get the username, but this var is not set on my mobian install. What is its value on your setup? And why not use  
`binpath=${HOME}/bin/deltatouch`  
instead?

If it still doesn’t work, we can figure it out offline, if you want to.

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [January 10, 2025, 12:41am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/54 "2025-01-10T00:41:14Z")

</div>

As superuser, “echo ${SUDO\_USER}” gives me “mobian”.  
“uname -n” gives me “mobian”, and “${HOME}” gives me the directory /home/mobian, unless I am superuser, in which case I get /root (that’s why I didn’t use “$HOME”).

It seems to install in /home/mobian/bin/deltatouch.

My dt.sh reads:

```auto
#!/bin/sh
env OPEN_OSK_VIA_DBUS=1 QML2_IMPORT_PATH=/home/mobian/bin/deltatouch/lib/aarch64-linux-gnu LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/mobian/bin/deltatouch/lib/aarch64-linux-gnu /home/mobian/bin/deltatouch/deltatouch $@

```

and my deltatouch.desktop file reads:

```auto
[Desktop Entry]
X-Desktop-File-Install-Version=0.11
Name=DeltaTouch
Comment=Messaging app based on deltachat-core-rust
Exec=/usr/local/bin/dt.sh %U
Icon=/home/mobian/bin/deltatouch/assets/logo.svg
Terminal=false
Type=Application
X-Purism-FormFactor=Workstation;Mobile;
Categories=Mobile
MimeType=application/x-webxdc;x-scheme-handler/openpgp4fpr;x-scheme-handler/dcaccount;x-scheme-handler/dclogin;x-scheme-handler/mailto;
X-GNOME-UsesNotifications=true

```

I’m quite happy to try and sort it out here, but I’m afraid I’ll only be intermittently able to work on it.

---

<div class="post-metadata">

**Author:** ![lk108](https://forum.delta.chat/user_avatar/forum.delta.chat/lk108/32/1668_2.png) [@lk108](https://forum.delta.chat/u/lk108)\
**Post date:** [January 10, 2025, 8:11am UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/55 "2025-01-10T08:11:17Z")

</div>

> [@Minim](#):
>
> “uname -n” gives me “mobian”

Yes, you’re right, if your hostname is the same as the username, it will give the correct result. Your dt.sh and desktop file look ok.

> [@Minim](#):
>
> As superuser, “echo ${SUDO\_USER}” gives me “mobian”

Ok, makes sense. However, the corresponding line in your script does not invoke sudo. Are you executing the whole script with sudo?

What happens if you execute `/usr/local/bin/dt.sh` in the terminal? It should say

Checking if another instance is already running…  
…no, continuing

If it doesn’t, can you please share the output?

If it does, can you please check if `/home/mobian/.cache/deltatouch.lotharketterer/logfile.txt` exists and share it?

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [January 10, 2025, 6:26pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/56 "2025-01-10T18:26:03Z")

</div>

I have had to run the script with sudo, or at the su prompt obtained with “sudo su”. If I don’t, permission is denied to run sudo.

```auto
> sudo /usr/local/bin/dt.sh
Checking if another instance is already running...
...yes, checking if arguments need to be sent...
>

```

/home/mobian/.cache exists, but nothing below that.

---

<div class="post-metadata">

**Author:** ![lk108](https://forum.delta.chat/user_avatar/forum.delta.chat/lk108/32/1668_2.png) [@lk108](https://forum.delta.chat/u/lk108)\
**Post date:** [January 10, 2025, 7:50pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/57 "2025-01-10T19:50:34Z")

</div>

> [@Minim](#):
>
> I have had to run the script with sudo, or at the su prompt obtained with “sudo su”. If I don’t, permission is denied to run sudo.

I’m afraid I don’t fully understand. You mean you had to run your installation script with sudo? Or dt.sh?

If you ran the installation script with sudo, then the permissions for ~/bin/deltatouch and everything below are off. Remove the deltatouch dir recursively and execute

```auto
mkdir -p ~/bin/deltatouch
dpkg -x ./deltatouch.lotharketterer_1.10.2_$(dpkg --print-architecture).click ~/bin/deltatouch

```

without sudo.

If that doesn’t help, then the permissions of `/usr/local/bin/dh.sh might be incorrect.

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [January 10, 2025, 11:27pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/58 "2025-01-10T23:27:44Z")

</div>

Of course that’s it. That does indeed work; prefacing the mkdir and dpkg lines in the script with `sudo -u ${SUDO_USER}` also works.

No idea why I didn’t spot that; I suspected it was a permissions problem, and obviously since I’d roughly converted the instructions into a script without bothering to switch the sudo that was where the problem was; I should have taken the time to do it properly, it would have saved us both a lot of time. Thank you for helping me out of my stupidity.

For the reference of anyone who’s done something similar, I had to manually remove the directory, including running `sudo rmdir /home/${SUDO_USER}/bin/`, because the bin folder had the wrong permissions too.

---

<div class="post-metadata">

**Author:** ![lk108](https://forum.delta.chat/user_avatar/forum.delta.chat/lk108/32/1668_2.png) [@lk108](https://forum.delta.chat/u/lk108)\
**Post date:** [January 10, 2025, 11:45pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/59 "2025-01-10T23:45:48Z")

</div>

No problem at all, very happy it works now!

---

<div class="post-metadata">

**Author:** ![Minim](https://forum.delta.chat/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@Minim](https://forum.delta.chat/u/Minim)\
**Post date:** [January 21, 2025, 5:18pm UTC](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222/60 "2025-01-21T17:18:08Z")

</div>

Minor problem: if I rotate the phone screen repeatedly while using Deltatouch, (damaged touchscreen on one Pinephone) then DeltaTouch sometimes flips upside-down and stays in that orinetation regardess of how I rotate the phone. If I close and reopen the app it stops, so really not serious.

Repeatedly flipping the orientation also sometimes seems to freeze the app, and it refuses to close; a bit more troublesome.

I’m not getting notifications. I’ll experiment more between two Mobian Pinephones and try to give details.

When not repeatedly rotated, though, the app has been working well, and I appreciate the UI design that means that an accidental slip or double tap never seems to do anything dreadful; but instead does stuff like opening the “about” page.

[Previous page](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222.md?page=2)

[Next page](https://forum.delta.chat/t/deltachat-running-on-mobian-pinetab-pinephone/1222.md?page=4)
