I'm making big progress on the #tauri version of #deltachat_desktop

So far it only takes 38 mb 📦 (78mb installed) in package size instead of the 150mb 📦(323mb installed) of the Delta Chat Desktop #electron version.

I'll keep you updated in this thread.

Thanks to #nlnet & #ngi0_entrust for funding this project: nlnet.nl/project/DeltaTauri/.

#deltachat #deltatauri

This entry was edited (5 months ago)
in reply to treefit

tauri version source code is meanwhile available on github.com/deltachat/deltachat…

not yet ready for daily use but basic functionality like sending, receiving messages and files and html emails work. notable things that are still in development are notifications, tray icon and webxdc.

Also at this point in time you need to compile from source as there are no "releases" yet.

in reply to treefit

Code for #deltatauri is now public!

For now it contains only the most basic functionality - so more for the fellow developers to try out or/and review my code 😉. That being said, it is already surprisingly usable.

github.com/deltachat/deltachat…

Thanks to #nlnet & #ngi0_entrust for funding this project: nlnet.nl/project/DeltaTauri/.

#deltachat #deltachat_desktop #tauri

treefit reshared this.

in reply to treefit

Dear @treefit
I am trying to build #deltatauri on ArchLinux and I have issues running the resulting binary.
Upon launch it prints:
Failed to setup app: error encountered during setup hook: current logfile does not exist

I am removing all the targets except of deb, then building like normal and moving files into place.
sed -i 's/"targets"\: "all"/"targets"\: ["deb"]/' packages/target-tauri/src-tauri/tauri.conf.json5
pnpm install
cd packages/target-tauri
pnpm tauri build

Can you please think of where I am failing likelly? I can run binaries built elsewhere so I guess webkit-gtk and other dependencies are installed.
in reply to treefit

@treefit Hmm, I can't get it to work no matter what I'm trying.
When I have started my $XDG_DATA_HOME environment variable was not set meaning it should fall back to the default ~/.local/share as per the XDG spec.
I have added it into my /etc/profile.d/0000-xdgdirs.sh file, rebooted, rebuilt delta-tauri with its dependencies but I'm still getting the same error.
Printing $XDG_DATA_HOME now gives me /home/myusername/.local/share, the directory does exist with 0755 permissions and it contains nested directories created by other apps on my system.
Is there a way to find out what the file path and the file name of the resulting log file should be?
in reply to treefit

@treefit Finally I'm making some progress.
It looks as if something is protecting my $HOME/.local/share folder from writing. Folder is created, empty log file is created too but deltachat-tauri can't write to it. Permissions and ownership are okay. Manually writing to that file using whatewer text editor such as nano or gedit is working fine.
Changing the location is also working fine for deltachat-tauri such as
XDG_DATA_HOME=/tmp/share deltachat-tauri
in reply to Peter Vágner

@treefit Another take on this.
I can build the package in a clean chroot. It builds fine however does not work when running on my laptop.
I am suspecting I have some kind of weird configuration here and I can't track it down.
It looks as if tauri runtime capabilities are not setup corectly or something to that effect.
Logging plugin correctly resolves the path but ability to write in there is not granted.
My steps are like this:
# Prepare the container as root so permissions won't get messed up
pacstrap -K -c ~/BuildContainer base base-devel curl wget webkit2gtk-4.1 file openssl appmenu-gtk-module libappindicator-gtk3 librsvg rust pnpm nodejs git cargo-tauri python xdg-utils
systemd-nspawn -D ~/BuildContainer
# inside the container
git clone https://github.com/deltachat/deltachat-desktop.git
cd deltachat-desktop
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
pnpm install
export CARGO_TARGET_DIR=target
CFLAGS+=" -ffat-lto-objects" # otherwise can't link openssl
NO_STRIP=true pnpm --filter @deltachat-desktop/target-tauri tauri build
# then transfer the resulting appimage to the desktop system and experience the fun
in reply to Peter Vágner

@treefit Woohoo! I've found a hacky workaround and I can finally run the Delta Tauri on my system.
It turns out writing into the log file is the only thing I find is broken for me.
Creating the account and using the delta tauri for chatting is working so far.
However as compared to the deltachat-desktop, the electron version, I am experiencing an accessibility issue. When a conversation is active the chat input text entry is stealing the focus and I can't use tab or shift+tab to navigate. Even if I press ctrl+f to focus the search field, pressing tab to navigate to the list of conversations, I can't continue the navigation and focus is placed into the chat input.
Running 1.58.1 both tauri and electron versions.
mkdir /tmp/deltachat-logs
ln -s /tmp/deltachat-logs ~/.local/share/chat.delta.desktop.tauri/logs
deltachat-tauri