General TC > General TC Talk

[Solved] flatpak and TCL

(1/5) > >>

GNUser:
Every now and then there is an interesting application that I would like to try which is available for linux only as source code or flatpak. I don't have a specific application in mind at the moment but it happens often enough.

Would a flatpak extension add value to TCL x86_64? I'm not sure--maybe it is philosophically incompatible with TCL principles (too complex, with too many hooks into dbus +/- gnome-things)?

I'd be interested in knowing what the TCL developers and other users think about this. I don't want to put in the work of creating a flatpak.tcz (or requesting it if my efforts lead to a dead end) if it's not a good fit for our favorite OS.

GNUser:
It seems a TCL extension and a flatpak are antithetical in every possible way. I think I've answered my own question. Sorry for the noise.

hiro:
i for one would like your answer to be more concrete. is it just the dbus things? or what exactly? i have never looked deeply what dependencies there are for flatpak.

GNUser:

--- Quote from: hiro on December 11, 2025, 07:35:08 PM ---is it just the dbus things? or what exactly?

--- End quote ---
Hi hiro. I'm not sure but I will investigate and will get back to you.

GNUser:
Hi hiro. It seems flatpak is heavily dependent on dbus but not on systemd or other "gnome things".

I almost have it working in TCL with a binary-only extension (built from borrowed binaries and libraries from Devuan), but I don't know enough about dbus to get it quite right:


--- Code: ---$ tce-load -i flatpak

$ sudo /usr/local/etc/init.d/dbus start
starting dbus daemon...

$ flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo

Note that the directories

'/var/lib/flatpak/exports/share'
'/home/bruno/.local/share/flatpak/exports/share'

are not in the search path set by the XDG_DATA_DIRS environment variable, so applications installed by Flatpak may not appear on your desktop until the session is restarted.

error: Rejected send message, 1 matched rules; type="method_call", sender=":1.2" (uid=1000 pid=12259 comm="flatpak remote-add flathub https://flathub.org/rep")
interface="org.freedesktop.Flatpak.SystemHelper" member="EnsureRepo" error name="(unset)" requested_reply="0" destination="org.freedesktop.Flatpak.SystemHelper" (bus)

--- End code ---
It seems flatpak-system-helper is important, so let's try to run it:


--- Code: ---$ sudo /usr/libexec/flatpak-system-helper

(/usr/libexec/flatpak-system-helper:11896): GLib-GIO-WARNING **: 08:36:06.570: Unexpected reply 2 when releasing name org.freedesktop.Flatpak.SystemHelper

--- End code ---

If someone knowledgeable about dbus can give me a hand, I would be happy to proceed--the goal being to submit a binary-only flatpak extension for the x86_64 repo. Otherwise, dbus and flatpak-system-helper have stopped me dead in my tracks.

Navigation

[0] Message Index

[#] Next page

Go to full version