Skip navigation
Basic native desktop UI integration on Linux (file pickers etc.), + "immediate-mode program…
0:00 / 1:01

Basic native desktop UI integration on Linux (file pickers etc.), + "immediate-mode program…

Ryan Fleury

@rfleury25K followers

Visit on X
898 likesDownloadOriginal post

85,586 views

Basic native desktop UI integration on Linux (file pickers etc.), + "immediate-mode program installation". It is important to me that distribution of RAD Debugger binaries is as simple as possible, so I keep everything packaged as a single standalone executable. But some systems, like the default Ubuntu environment, require extra files in order to "install" an application (e.g. so that they show up when searching in the program launcher, or to show their icons in the desktop environment UIs). Other similar "installation" steps exist on Windows, for example. Installation and uninstallation has always felt to me like a bunch of unnecessary work, which is why on Windows, people package "installers" and "uninstallers" as extra utilities, which wrangle all of the extra crap that a program needs to be "installed". But the important thing to the user is, obviously, just a single boolean: is the program "installed", or is it not? So it seemed to me that the simplest way to offer this functionality was to expose a checkbox as a regular program setting, found in the regular program UI. When it is checked, RADDBG ensures all of the appropriate configuration files are written. When it is unchecked, it ensures all of those files are deleted. Thus, you just get the single binary, run it, and optionally check the box if you want extra integration into your desktop environment.

48 Comments

Comments from the original post on X (Twitter)

  • Ryan Fleury's profile picture

    @rfleury

    This is "immediate-mode" in the sense that the user does not need to manage anything but the single bit of state that they care about ("is it installed?"). They just check a box, and everything else automatically flows from that. This is opposed to "installers" or "uninstallers", which feel like a heavyweight, "retained-mode" operation of "creating" and "destroying" an application.

    108 likes

  • Sherief, FYI's profile picture

    @SheriefFYI

    apropos, have you seen this?

    63 likes

  • Ryan Fleury's profile picture

    @rfleury

    Nice! I hadn’t seen this but strongly support this in general. It hasn’t taken that much extra work to ensure that raddbg.exe (or now the ELF) remains totally standalone. I wish more programs did this.

    55 likes

  • Sherief, FYI's profile picture

    @SheriefFYI

    I think 99% of installations are just bullshit - apps should just be copyable around. I wish more people took your stance.

    44 likes

  • Muhammad Ahmed's profile picture

    @thisisdeahmed

    is RADDBG now available on linux ? 😍

    6 likes

  • Ryan Fleury's profile picture

    @rfleury

    Not yet but we're getting there

    32 likes

  • Antonio Martinez's profile picture

    @onceagaintoni

    FilePilot does similarly I believe, in that when you run it for the first time it just asks you if you want to install it, then copies itself to the user folder and adds itself to path. But it's all the same exe

    4 likes

  • Doc's profile picture

    @caballerobrah

    "It is important to me that distribution of RAD Debugger binaries is as simple as possible, so I keep everything packaged as a single standalone executable." bless you

    3 likes

  • rygo6's profile picture

    @_rygo6

    apt install rdbg pacman -S rdbg dnf install rdbg don't make me do extra steps :( This actually gets incredibly annoying if you work with hardware where you are regularly bringing up a new OS install. If it can't be one command to install it, and be ready to go, with no issue, I tend to use something else.

    2 likes

  • Ryan Fleury's profile picture

    @rfleury

    This doesn’t make you do any extra steps. It works if you install externally too.

    3 likes

  • Dawid Pogorzelski's profile picture

    @_shoen

    I think this is a counter intuitive way of solving a problem that doesn’t belong within this domain. Releasing the binary and letting the community package it is probably a less invasive option. The set of requirements you are trying to fulfill from within the binary might differ from distro to distro etc

    2 likes

  • Ryan Fleury's profile picture

    @rfleury

    This is why Linux sucks. There are no standards, and everything—like what files an application needs to integrate with the environment—is a question. This is terrible. It’s way more pragmatic & a much better user experience for the vast majority to write to the de facto standards.

    41 likes

  • Cătălin Georgescu's profile picture

    @cata_en

    @_shoen xdg is not standard enough?

  • Ryan Fleury's profile picture

    @rfleury

    @_shoen Hence “de facto”

    4 likes

  • Slendi's profile picture

    @slendidev

    Please tell me that this is opt-in, I would prefer for all of my .desktop files to be managed by my system's package manager. Also, how do you open the native file dialog? On Linux there's multiple variants, usually tinyfiledialogs is used for custom UIs.

    2 likes

  • Ryan Fleury's profile picture

    @rfleury

    It is inherently opt-in; it will not do anything if you don't touch it. What do you mean by "usually"? The usual solution is to call into whatever is already installed, e.g. zenity or whatever. RADDBG already has its own file browser as a fallback.

    18 likes

  • Slendi's profile picture

    @slendidev

    Thanks that answered my question, that's essentially what tinyfiledialogs does. Some programs decide to put a hard dependency on libraries like GTK just for file dialogs leading to inconsistencies in the UI :P

    2 likes

  • niknak's profile picture

    @niknak

    I don't use either of those but you are a saint for including this 🫡

    2 likes

  • Summanis's profile picture

    @GNUPlusRacism

    Obviously that single boolean should be programs.raddbg.enable I use nixos btw

    2 likes

  • desolategodking's profile picture

    @vulcanisma

    Curious, do you use xdg portals? I went to look but it looks like you haven't commited it yet

    1 like