Lagrange is a desktop GUI client for browsing Geminispace.

Lagrange

Lagrange is a desktop GUI client for browsing Geminispace. It offers modern conveniences familiar from web browsers, such as smooth scrolling, inline image viewing, multiple tabs, visual themes, Unicode fonts, bookmarks, history, and page outlines.

Like Gemini, Lagrange has been designed with minimalism in mind. It depends on a small number of essential libraries. It is written in C and uses SDL for hardware-accelerated graphics. OpenSSL is used for secure communications.

Lagrange window open on URL

Features

  • Beautiful typography with full Unicode support
  • Autogenerated page style and symbol for each Gemini domain
  • Smart suggestions when typing the URL — search bookmarks, history, identities
  • Sidebar for page outline, managing bookmarks and identities, and viewing history
  • Multiple tabs
  • Identity management — create and use TLS client certificates
  • Audio playback: MP3, Ogg Vorbis, WAV
  • And much more! Open about:help in the app, or see help.gmi

Downloads

Prebuilt binaries for Windows, macOS (10.13 or later) and Linux can be found in Releases. You can also find Lagrange on Flathub for Linux.

On macOS you can install and upgrade via Homebrew:

brew install --cask lagrange

Please check MacPorts if you are using macOS 10.12 or older.

On openSUSE Tumbleweed:

sudo zypper install lagrange

How to compile

You need a POSIX-compatible environment to compile Lagrange.

The required tools are a C11 compiler (e.g., Clang or GCC), CMake and pkg-config. Additional tools are required for the optional compilation of HarfBuzz and GNU FriBidi (see next section for details).

  1. Download and extract a source tarball from Releases. Please note that the GitHub/Gitea-generated tarballs do not contain HarfBuzz, GNU FriBidi, or the_Foundation submodules; check which tarball you are getting. Alternatively, you may also clone the repository and its submodules: git clone --recursive --branch release https://git.skyjake.fi/gemini/lagrange
  2. Check that you have the recommended build tools and dependencies installed: CMake, SDL 2, OpenSSL 1.1.1, libpcre, libunistring, GNU FriBidi, and zlib. For example, on macOS this would do the trick (using Homebrew): brew install cmake sdl2 [email protected] pcre libunistring fribidi Or on Ubuntu: sudo apt install cmake libsdl2-dev libssl-dev libpcre3-dev zlib1g-dev libunistring-dev libfribidi-dev
  3. Optionally, install the mpg123 decoder library for MPEG audio support. For example, the macOS Homebrew package is mpg123 and on Ubuntu it is libmpg123-dev.
  4. Create a build directory.
  5. In your empty build directory, run CMake: cmake {path_of_lagrange_sources} -DCMAKE_BUILD_TYPE=Release
  6. Build it: cmake --build .
  7. Now you can run lagrange, lagrange.exe, or Lagrange.app.

Unicode text rendering

Lagrange relies on the HarfBuzz and GNU FriBidi libraries for handling complex scripts and bidirectional text. This repository includes these two libraries as submodules. By default, if HarfBuzz and GNU FriBidi are not available on the system, they will be compiled as part of the app without any additional dependencies.

Note that compiling these libraries has the following requirements:

  • HarfBuzz requires a C++ compiler.
  • GNU FriBidi cannot be compiled with CMake; you need to have Meson and Ninja.

If these requirements cannot be met, or you would prefer the use the system-provided HarfBuzz and GNU FriBidi, please refer to the list of build options below: ENABLE_HARFBUZZ_MINIMAL and ENABLE_FRIBIDI_BUILD should both be set to NO. Note that a system-provided HarfBuzz likely has dependencies to other libraries, such as FreeType and GLib.

You also may disable HarfBuzz and/or GNU FriBidi entirely. The old text renderer that only supports non-complex left-to-right scripts is then used.

Installing to a custom directory

By default, the compiled app will be installed to a system-wide location determined by CMake.

Set CMAKE_INSTALL_PREFIX to install to a directory of your choosing:

  1. cmake {path_of_lagrange_sources} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/dest/path
  2. cmake --build . --target install

Note that the install target also deploys an XDG .desktop file for launching the app.

Build options

CMake Option Description
ENABLE_BINCAT_SH Merge resource files (fonts, etc.) together using a Bash shell script. By default this is OFF, so res/bincat.c is compiled as a native executable for this purpose. However, when cross-compiling, native binaries built during the CMake run may be targeted for the wrong architecture. Set this to ON if you are having problems with bincat while running CMake.
ENABLE_CUSTOM_FRAME Draw a custom window frame. (Only on Microsoft Windows.) The custom frame is more in line with the visual style of the rest of the UI, but does not implement all of the native window behaviors (e.g., snapping, system menu).
ENABLE_DOWNLOAD_EDIT Allow changing the Downloads directory via the Preferences dialog. This should be set to OFF in sandboxed environments where downloaded files must be saved into a specific place.
ENABLE_IDLE_SLEEP Sleep in the main thread instead of waiting for events. On some platforms, SDL_WaitEvent() may have a relatively high CPU usage. Setting this to ON polls for events periodically but otherwise keeps the main thread sleeping, reducing CPU usage. The drawback is that there is a slightly increased latency reacting to new events after idle mode ends.
ENABLE_FRIBIDI Use the GNU FriBidi library for processing bidirectional text. FriBidi implements the Unicode Bidirectional Algorithm to determine text directions.
ENABLE_FRIBIDI_BUILD Compile the GNU FriBidi library as part of the build. If set to OFF, pkg-config is used instead to locate the library.
ENABLE_HARFBUZZ Use the HarfBuzz library for shaping Unicode text. This is required for correctly rendering complex scripts and combining glyphs. If disabled, a simplified text shaping algorithm is used that only works for non-complex languages like English.
ENABLE_HARFBUZZ_MINIMAL Build the HarfBuzz library with all dependencies disabled. Useful when building the app for distribution so that the number of deployed dependencies will be minimized. A system-provided version of HarfBuzz is likely built with dependencies on FreeType and ICU at least. If set to OFF, pkg-config will be used to find HarfBuzz.
ENABLE_IPC Instances of the Lagrange executable communicate via signals or (on Windows) a system-provided IPC mechanism. This is used for controlling an existing Lagrange window via the CLI. If set to OFF, each instance of the app runs without knowledge of other instances. This may cause them to overwrite each other's runtime files.
ENABLE_KERNING Use kerning information in the fonts to adjust glyph placement. Setting this ON improves text appearance in subtle ways but slows down text rendering. It may be a good idea to set this to OFF when running on a slow CPU. This option only affects the simple built-in text renderer, and has no effect on HarfBuzz.
ENABLE_MPG123 Use the mpg123 library for decoding MPEG audio files.
ENABLE_RELATIVE_EMBED Locate resources only in relation to the executable. Useful when any system/predefined directories are not supposed to be accessed, e.g., in the Windows portable build.
ENABLE_RESOURCE_EMBED Embed all resource files into the Lagrange executable instead of keeping them in a separate file that gets loaded at launch. Setting this ON makes it much slower to run CMake and to compile Lagrange.
ENABLE_WEBP Use libwebp to decode .webp images, if pkg-config can find the library.
ENABLE_WINDOWPOS_FIX Set correct window position after the window has already been shown. This may be necessary on some platforms to prevent the window from being restored to the wrong position.
ENABLE_X11_SWRENDER Default to software rendering when running under X11. By default Lagrange attempts to use the GPU for rendering the user interface. You can also use the --sw option at launch to force software rendering.

Compiling on macOS

When using OpenSSL 1.1.1 from Homebrew, you must add its pkgconfig path to your PKG_CONFIG_PATH environment variable, for example:

export PKG_CONFIG_PATH=/opt/homebrew/Cellar/[email protected]/1.1.1i/lib/pkgconfig

Also, SDL's trackpad scrolling behavior on macOS is not optimal for regular GUI apps because it emulates a physical mouse wheel. This may change in a future release of SDL, but at least in 2.0.14 (and earlier) a small patch is required to allow momentum scrolling to come through as single-pixel mouse wheel events. Note that SDL comes with an Xcode project; use the "Shared Library" target and check that you are doing a Release build.

Compiling on Windows

Windows builds require MSYS2. In theory, Clang or GCC (on MinGW) could be set up natively on Windows for compiling everything, but the_Foundation still lacks Win32 implementations for the Socket and Process classes and these are required by Lagrange. Cygwin is a possible alternative to MSYS2, although Cygwin builds have not been tested.

You should use a version of the SDL 2 library that is compiled for native Windows (i.e., the MSVC variant) instead of the version from MSYS2 or MinGW. You can download a copy of the SDL binaries from libsdl.org. To make configuration easier in your MSYS2 environment, consider writing a custom sdl2.pc file so pkg-config can automatically find the correct version of SDL. Below is an example of what your sdl2.pc might look like:

prefix=/c/SDK/SDL2-2.0.12/
arch=x64
libdir=${prefix}/lib/${arch}/
incdir=${prefix}/include/

Name: sdl2
Description: Simple DirectMedia Layer
Version: 2.0.12-msvc
Libs: ${libdir}/SDL2.dll -mwindows
Cflags: -I${incdir}

The -mwindows option is particularly important as that specifies the target is a GUI application. Also note that you are linking directly against the Windows DLL — do not use any prebuilt .lib files if available, as those as specific to MSVC.

pkg-config will find your .pc file if it is on PKG_CONFIG_PATH or you place it in a system-wide pkgconfig directory.

Once you have compiled a working binary under MSYS2, there is still an additional step required to allow running it directly from the Windows shell: the shared libraries from MSYS2 must be found either via PATH or by copying them to the same directory where lagrange.exe is located.

Compiling on Raspberry Pi

On Raspberry Pi 4/400, you can compile and run Lagrange just like on a regular desktop PC. Accelerated OpenGL graphics should work fine under X11.

On Raspberry Pi 3 or earlier, you should use a version of SDL that is compiled to take advantage of the Broadcom VideoCore OpenGL ES hardware. This provides the best performance when running Lagrange in a console. OpenGL under X11 on Raspberry Pi 2/3 is quite slow/experimental. When running under X11, software rendering is the best choice and the SDL from Raspbian etc. is sufficient.

The following build options are recommended on Raspberry Pi 2/3:

  • ENABLE_KERNING=NO: faster text rendering without noticeable loss of quality
  • ENABLE_WINDOWPOS_FIX=YES: workaround for window position restore issues (SDL bug)
  • ENABLE_X11_SWRENDER=YES: use software rendering under X11

Compiling on iOS

Compiling Lagrange on iOS is moderately difficult.

As a prerequisite, you will need to have an iOS toolchain configuration for CMake. CMake is required for Lagrange itself and for the_Foundation. You will also need Autotools helpers for iOS because HarfBuzz, libiconv, libunistring, and libpcre use Automake. Meson and Ninja are used for GNU FriBidi. The iconfigure script in the Autotools helpers needs to be patched.

After these utilities are available, the scripts in ios/ can be used as a basis for the build. Unfortunately there is no ready-made high-level script for performing all these steps, so you'll need to adapt them individually to your needs.

  1. Meson cross-compilation is controlled with ios/cross-mac-arm64-ios-arm64.ini. Modify it to be compatible with your build system and target device.
  2. ios/deps.sh compiles most of the dependencies using Meson, Ninja, and iconfigure. Note that the simulator build has not been set up in these scripts, only the os build.
  3. Clone OpenSSL for iPhone and build it with iOS 9.0 as the minimum version. Deploy the static libraries in $HOME/SDK/ios/$arch/, or wherever you've set IOS_DIR to be.
  4. Create an empty build directory for the_Foundation and run ios/cmake-ios-tf.sh from there. You may need to adjust the source directory path in the script depending on where you place your build directory.
  5. Now you can make install to build and deploy the_Foundation to IOS_DIR.
  6. Finally, you can run CMake like in ios/cmake-ios-lagrange.sh to generate an Xcode project that builds the app.

If FriBidi and HarfBuzz are not used (disabling RTL and complex text rendering), the first step can be skipped and the corresponding build steps in ios/deps.sh can be removed. In this case, Meson and Ninja are not needed at all.

User files

On Windows, user files are stored in %HOMEPATH%/AppData/Roaming/fi.skyjake.Lagrange/, unless one is using the portable distribution and there is a userdata/ subdirectory present in the executable directory.

On macOS, user files are stored in ~/Library/Application Support/fi.skyjake.Lagrange/.

On Linux/*BSD/other operating systems, user files stored in ~/.config/lagrange/ unless you have customized the XDG directories, in which case the XDG_CONFIG_HOME environment variable is used to determine where user files saved.

The usage and contents of the user files are described in the Help document. You can delete one or more of the files while Lagrange is not running to reset the corresponding data to the default/empty state.

One instance of Lagrange can be running at a time per user directory.

Comments
  • User interface localization

    User interface localization

    All user-visible strings should be looked up via a translation table so the UI can be localized to different languages.

    In practice, wherever there is a user-visible string, it should be replaced with a lookup key. The keys could start with a special symbol, for instance $menu.tab.new. Widgets could then perform the lookup from the translation table and keep a pointer to the user-visible string. When the language is changed at runtime, widgets can then just redo the lookup and everything will instantly update.

    Dynamically formatted text is a challenge of its own, but one solution is to translate the format string and use numbered arguments so the order can be changed in the translation (like in Qt).

    EDIT: There is now a Weblate server where you can contribute translations: https://weblate.skyjake.fi/projects/lagrange/ui/. Contact me if you want to start translating a new language.

  • Does not build on FreeBSD

    Does not build on FreeBSD

    This is the error I get on FreeBSD 12.1-RELEASE r354233 GENERIC amd64

    > cmake --build .
    Scanning dependencies of target the_Foundation
    [  1%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/the_foundation.c.o
    [  2%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/audience.c.o
    [  3%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/array.c.o
    [  4%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/block.c.o
    [  5%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/blockhash.c.o
    [  6%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/buffer.c.o
    [  7%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/class.c.o
    [  8%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/commandline.c.o
    [  9%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/crc32.c.o
    [ 10%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/file.c.o
    [ 12%] Building C object lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/fileinfo.c.o
    In file included from /usr/home/samuel/src/lagrange/lib/the_Foundation/src/fileinfo.c:39:
    /usr/include/sys/dir.h:41:2: error: "The information in this file should be obtained from <dirent.h>" [-Werror,-W#warnings]
    #warning "The information in this file should be obtained from <dirent.h>"
     ^
    /usr/include/sys/dir.h:42:2: error: "and is provided solely (and temporarily) for backward compatibility." [-Werror,-W#warnings]
    #warning "and is provided solely (and temporarily) for backward compatibility."
     ^
    2 errors generated.
    gmake[2]: *** [lib/the_Foundation/CMakeFiles/the_Foundation.dir/build.make:212: lib/the_Foundation/CMakeFiles/the_Foundation.dir/src/fileinfo.c.o] Error 1
    gmake[1]: *** [CMakeFiles/Makefile2:142: lib/the_Foundation/CMakeFiles/the_Foundation.dir/all] Error 2
    gmake: *** [Makefile:149: all] Error 2
    
  • Lagrange crashes when it gets redirect response immediately after entering input

    Lagrange crashes when it gets redirect response immediately after entering input

    Hey! Lagrange keeps crashing from time to time after I do one very specific scenario. It happens not immediately but like after 5th or so attempt (I know, very specific... sorry). I discovered this issue while testing my framework and I wouldn't be suprised if I am doing something wrong but I think crash is not expected anyway. I will paste server code snippet that maybe will help to understand scenario.

      app.OnRequest("/input", (request, response) => {
          if (request.Parameters == null)
          {
              response.SetInputHint("Please enter something: ");
              response.Status = StatusCode.Input;
          }
          else
          {
              // redirect with parameters to /show route
              response.SetRedirectURL(request.BaseURL + "/show?" + request.Parameters);
              response.Status = StatusCode.RedirectTemp;
          }
      });
    
      app.OnRequest("/show", (request, response) => {
          if (request.Parameters == null)
          {
              // redirect back to /input
              response.SetRedirectURL(request.BaseURL + "/input");
              response.Status = StatusCode.RedirectTemp;
          }
          else
          {
              // show what you entered
              response.RenderPlainTextLine("# " + request.Parameters);
          }
      });
    

    Steps to reproduce:

    1. access route which responds with status code "10", in this case "/input"
    2. enter anything
    3. server gets request with "/input?something" and immediately redirects to "/show?something" (I've tried relative and absolute URL - reproducible with both)
    4. repeat until Lagrange crashes - usually 4-8 attempts.

    I've tried other browsers and I couldn't reproduce the issue.

    Please let me know if you need any additional info.

    P.S. I love your browser!

  • Network/TLS Failure

    Network/TLS Failure

    Hello,

    I can't access to any gemini website because of this error.

    🖧 Network/TLS Failure
    Failed to communicate with the host. Here is the error message:
    
    >TLS/SSL handshake failed
    

    Did i missed something in the parameters ?

  • Rasperry Pi touchscreen issue: flinging sensitivity

    Rasperry Pi touchscreen issue: flinging sensitivity

    Probably something to do with SDL, but I cannot use the interface with touch, the taps don't register at all. Long-press for context menu doesn't work either. These work in other apps. I am using a Waveshare HDMI screen with USB touch interface.

    Plugging in a mouse works, but it would be nice if I could browse gemini in tablet mode.

  • Crash building Lagrange from source without installing system wide with older Lagrange installed system wide

    Crash building Lagrange from source without installing system wide with older Lagrange installed system wide

    Current main

    Thread 1 "lagrange" received signal SIGSEGV, Segmentation fault.
    0x0000aaaaaaad3c50 in load_Lang_ (d=0xaaaaaac034e0 <lang_>, id=0xaaaaaabaa380 "en") at /home/alyssa/lagrange/src/lang.c:128
    128	        while (*++ptr) {}
    (gdb) bt
    #0  0x0000aaaaaaad3c50 in load_Lang_ (d=0xaaaaaac034e0 <lang_>, id=0xaaaaaabaa380 "en") at /home/alyssa/lagrange/src/lang.c:128
    #1  0x0000aaaaaaad3db0 in setCurrent_Lang (language=0xaaaaaabaa380 "en") at /home/alyssa/lagrange/src/lang.c:159
    #2  0x0000aaaaaaad3d44 in init_Lang () at /home/alyssa/lagrange/src/lang.c:147
    #3  0x0000aaaaaaab0ca4 in init_App_ (d=0xaaaaaac03160 <app_>, argc=1, argv=0xfffffffff878) at /home/alyssa/lagrange/src/app.c:682
    #4  0x0000aaaaaaab2eb0 in run_App (argc=1, argv=0xfffffffff878) at /home/alyssa/lagrange/src/app.c:1531
    #5  0x0000aaaaaaaae300 in main (argc=1, argv=0xfffffffff878) at /home/alyssa/lagrange/src/main.c:78
    
  • Failed to build 1.7.0 on macOS

    Failed to build 1.7.0 on macOS

    Using nix:

    /tmp/nix-build-lagrange-1.7.0.drv-0/source/src/macos.m:573:32: error: use of undeclared identifier 'NSControlStateValueOn'
                    [item setState:NSControlStateValueOn];
                                   ^
    /tmp/nix-build-lagrange-1.7.0.drv-0/source/src/macos.m:667:37: warning: instance method '-convertPointToScreen:' not found (return type defaults to 'id') [-Wobjc-method-access]
        NSPoint screenPoint = [nsWindow convertPointToScreen:(CGPoint){ windowCoord.x, windowCoord.y }];
                                        ^~~~~~~~~~~~~~~~~~~~
    /nix/store/3w9lpx6pblj3v9m4fjk2sirfpigjlvlw-apple-framework-AppKit/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:193:12: note: receiver is instance of class declared here
    @interface NSWindow : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceValidations, NSUserInterfaceItemIdentification, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
               ^
    /tmp/nix-build-lagrange-1.7.0.drv-0/source/src/macos.m:667:13: error: initializing 'NSPoint' (aka 'struct CGPoint') with an expression of incompatible type 'id'
        NSPoint screenPoint = [nsWindow convertPointToScreen:(CGPoint){ windowCoord.x, windowCoord.y }];
                ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /tmp/nix-build-lagrange-1.7.0.drv-0/source/src/macos.m:692:33: warning: class method '+controlAccentColor' not found (return type defaults to 'id') [-Wobjc-method-access]
        NSColor *accent = [[NSColor controlAccentColor] colorUsingColorSpace:
                                    ^~~~~~~~~~~~~~~~~~
    2 warnings and 2 errors generated.
    

    Using macports:

    :info:build /opt/local/var/macports/build/_Users_sikmir_Projects_macports-ports_net_lagrange/lagrange/work/lagrange-1.7.0/src/macos.m:667:37: warning: instance method '-convertPointToScreen:' not found (return type defaults to 'id') [-Wobjc-method-access]
    :info:build     NSPoint screenPoint = [nsWindow convertPointToScreen:(CGPoint){ windowCoord.x, windowCoord.y }];
    :info:build                                     ^~~~~~~~~~~~~~~~~~~~
    :info:build /System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:191:12: note: receiver is instance of class declared here
    :info:build @interface NSWindow : NSResponder <NSAnimatablePropertyContainer, NSUserInterfaceValidations, NSUserInterfaceItemIdentification, NSAppearanceCustomization, NSAccessibilityElement, NSAccessibility>
    :info:build            ^
    :info:build /opt/local/var/macports/build/_Users_sikmir_Projects_macports-ports_net_lagrange/lagrange/work/lagrange-1.7.0/src/macos.m:667:13: error: initializing 'NSPoint' (aka 'struct CGPoint') with an expression of incompatible type 'id'
    :info:build     NSPoint screenPoint = [nsWindow convertPointToScreen:(CGPoint){ windowCoord.x, windowCoord.y }];
    :info:build             ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    :info:build /opt/local/var/macports/build/_Users_sikmir_Projects_macports-ports_net_lagrange/lagrange/work/lagrange-1.7.0/src/macos.m:692:33: warning: class method '+controlAccentColor' not found (return type defaults to 'id') [-Wobjc-method-access]
    :info:build     NSColor *accent = [[NSColor controlAccentColor] colorUsingColorSpace:
    :info:build                                 ^~~~~~~~~~~~~~~~~~
    :info:build 2 warnings and 1 error generated.
    
  • SDL_VIDEODRIVER=wayland breaks lagrange: no window expose event, no window redraw after move/resize

    SDL_VIDEODRIVER=wayland breaks lagrange: no window expose event, no window redraw after move/resize

    Hiya, I tried forcing lagrange to run under Wayland by setting SDL_VIDEODRIVER=wayland (from the arch wiki). When run under Wayland, Lagrange acts kinda strange, as demonstrated in this video:

    https://user-images.githubusercontent.com/25619071/116986334-2e44f680-acbd-11eb-8f12-659f8d6a4cc4.mp4

    It doesn't render pages properly, doesn't resize/move properly, etc. I'm running Sway WM on Parabola.

    Setting SDL_VIDEODRIVER=x11 (aka running under XWayland) makes it act completely fine again.

    Not sure how I can help debug this, let me know!

  • Add Atom feed support

    Add Atom feed support

    Even though there is a companion spec for subscribing to Gemini pages, many Gemini sites still use Atom for feeds. Atom and RSS also provide more information that would be useful for feeds. It would be helpful if Lagrange would support Atom and RSS feeds, either directly or by transcoding to Gemini text.

  • An errant pixel lights up on selected toolbar icons (XUbuntu 20.04)

    An errant pixel lights up on selected toolbar icons (XUbuntu 20.04)

    I am on XUbuntu 20.04, Lagrange 1.6.5 locally compiled.

    When mousing over the top toolbar over any icon (back-arrow, outline of a personl, home, etc (but not the URL bar), an errant pixel lights up, same color as the frame surrounding the icon. The pixel is located upper-leftish.

  • Broken window on Gnu/Linux Flatpak: top bar missing

    Broken window on Gnu/Linux Flatpak: top bar missing

    On my Fedora 34 with gnome desktop, I am using the Lagrange flatpak from Flathub version 1.6.1 and the top bar is missing: therefor there is no way to move the window arround or to minizise, maximize or close it from the top bar.

  • Inconsistent heading spacing behavior

    Inconsistent heading spacing behavior

    There is inconsistent behavior on Lagrange 1.14.1 on Windows 10 with spacing after headings.

    With the first heading level putting a blank newline between the heading and content # Heading 1

    Content actually decreases the spacing between the heading and subsequent content, when the expected behavior would be either to increase it or do nothing.

    Consequently, removing a blank new line # Heading 1 Content

    actually increases the spacing between the heading and subsequent contents, when the expected behavior would be the decrease it or do nothing.

    The next two levels of headings ## & ### work as expected: a blank line in-between increases spacing, and removing it decreases spacing.

  • 1.14.1 Crash when loading feed entries on Wayland muslc linux x86_64

    1.14.1 Crash when loading feed entries on Wayland muslc linux x86_64

    Hi, thanks for such great Gemini client!

    I noticed that current version crashes on start when run on Wayland and compiled with musl. I'm not sure if it happened before because I've just changed my linux distro.

    Lagrange version 1.14.1

    #0  0x00007ffff7fb6760 in pthread_mutex_lock () from /lib/ld-musl-x86_64.so.1
    #1  0x00007ffff7f231d9 in mtx_lock () from /lib/lib_Foundation.so.1.5
    #2  0x00007ffff7f15e69 in lock_Mutex () from /lib/lib_Foundation.so.1.5
    #3  0x0000555555586db7 in listEntries_Feeds ()
        at /home/aelspire/Projects/lagrange/src/feeds.c:805
    #4  numUnread_Feeds () at /home/aelspire/Projects/lagrange/src/feeds.c:821
    #5  0x00005555555e3843 in processEvent_SidebarWidget_ (d=0x7fffe5779100, 
        ev=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/sidebarwidget.c:1520
    #6  0x0000555555621f8e in dispatchEvent_Widget ([email protected]=0x7fffe5779100, 
        [email protected]=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/widget.c:1243
    #7  0x0000555555621f66 in dispatchEvent_Widget ([email protected]=0x7fffe5772780, 
        [email protected]=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/widget.c:1205
    #8  0x0000555555621f66 in dispatchEvent_Widget ([email protected]=0x7fffe57724b0, 
        [email protected]=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/widget.c:1205
    #9  0x0000555555621f66 in dispatchEvent_Widget ([email protected]=0x7fffe57723c0, 
        [email protected]=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/widget.c:1205
    #10 0x0000555555621f66 in dispatchEvent_Widget ([email protected]=0x7fffe5b92c40, 
        [email protected]=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/widget.c:1205
    #11 0x0000555555621f66 in dispatchEvent_Widget (d=0x7fffe5b92b50, 
        [email protected]=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/widget.c:1205
    #12 0x000055555561b17b in dispatchEvent_Window ([email protected]=0x7fffedd03dc0, 
        [email protected]=0x7fffffffe170)
        at /home/aelspire/Projects/lagrange/src/ui/window.c:1349
    #13 0x000055555561c21a in processEvent_Window ([email protected]=0x7fffedd03dc0, 
        [email protected]=0x7fffffffe2b0)
        at /home/aelspire/Projects/lagrange/src/ui/window.c:1226
    #14 0x000055555557fcda in processEvents_App (
        [email protected]=waitForNewEvents_AppEventMode)
        at /home/aelspire/Projects/lagrange/src/app.c:1873
    #15 0x0000555555582277 in run_App_ (d=0x55555568e640 <app_>)
        at /home/aelspire/Projects/lagrange/src/app.c:2055
    #16 run_App ([email protected]=1, [email protected]=0x7fffffffe438)
        at /home/aelspire/Projects/lagrange/src/app.c:2209
    #17 0x0000555555575d79 in main (argc=1, argv=0x7fffffffe438) at /home/aelspire/Projects/lagrange/src/main.c:87
    (gdb) f 1
    #1  0x00007ffff7f231d9 in mtx_lock () from /lib/lib_Foundation.so.1.5
    (gdb) f 3
    #3  0x0000555555586db7 in listEntries_Feeds () at /home/aelspire/Projects/lagrange/src/feeds.c:805
    805	   lock_Mutex(d->mtx);
    (gdb) l
    800	   return -cmp_Time(&(*e1)->discovered, &(*e2)->discovered);
    801	}
    802	
    803	const iPtrArray *listEntries_Feeds(void) {
    804	   iFeeds *d = &feeds_;
    805	   lock_Mutex(d->mtx);
    806	   /* The worker will never delete feed entries so we can use the same ones. Just make a copy
    807	      of the array in case the worker modifies it. */
    808	   iPtrArray *list = collect_PtrArray(copy_Array(&d->entries.values));
    809	   unlock_Mutex(d->mtx);
    (gdb) print d
    $1 = (iFeeds *) 0x55555568e960 <feeds_>
    (gdb) print d->mtx
    $2 = (iMutex *) 0x0
    

    I've tried debugging this and now I cannot get previous trace, now I'm getting:

    Thread 23 "SDLTimer" received signal SIGSEGV, Segmentation fault.
    [Switching to LWP 18162]
    0x00007ffff7fb75e9 in pthread_setname_np () from /lib/ld-musl-x86_64.so.1
    (gdb) bt
    #0  0x00007ffff7fb75e9 in pthread_setname_np () from /lib/ld-musl-x86_64.so.1
    #1  0x0000000000000000 in ?? ()
    

    I'm not sure what debugging symbols I need to get full trace, I'll investigate it a little bit more.

  • X Error of failed request:  BadValue (integer parameter out of range for operation)

    X Error of failed request: BadValue (integer parameter out of range for operation)

    With a 1.14.1 just downloaded and compiled:

    % lagrange 
    X Error of failed request:  BadValue (integer parameter out of range for operation)
      Major opcode of failed request:  151 (GLX)
      Minor opcode of failed request:  3 (X_GLXCreateContext)
      Value in failed request:  0x0
      Serial number of failed request:  105
      Current serial number in output stream:  106
    %
    
    % lsb-info 
    Ubuntu 22.04 (jammy)
    
    % gcc --version
    gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
    Copyright (C) 2021 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.  There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    
    % uname -a
    Linux MYNAME 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
    

    Other X applications seem to work fine.

  • Use LibreSSL instead of OpenSSL

    Use LibreSSL instead of OpenSSL

    After Heartbleed event, the OpenSSL project lost credibility in relation to code security measures (memory-safety).

    Forks were created and LibreSSL/BoringSSL came, with better code security measures.

    LibreSSL use the same APIs of OpenSSL, rebase with mainstream OpenSSL and clean obsolete code/ciphers/algorithms.

  • [Suggestion] Support hyphenation

    [Suggestion] Support hyphenation

    Since Gemini is all about text, I believe readability would be greatly enhanced if Lagrange supported hyphenation for paragraph text. I am not sure how much work this is though.

This is a collection of widgets and utilities for the immediate mode GUI (imgui) that I am developing for the critic2 GUI
This is a collection of widgets and utilities for the immediate mode GUI (imgui) that I am developing for the critic2 GUI

ImGui Goodies This is a collection of widgets and utilities for the immediate mode GUI (imgui) that I am developing for the critic2 GUI. Currently, th

Nov 19, 2022
DeskGap is a framework for building cross-platform desktop apps with web technologies (JavaScript, HTML and CSS).
DeskGap is a framework for building cross-platform desktop apps with web technologies (JavaScript, HTML and CSS).

A cross-platform desktop app framework based on Node.js and the system webview

Jan 4, 2023
AirPods desktop user experience enhancement program
AirPods desktop user experience enhancement program

AirPodsDesktop AirPods desktop user experience enhancement program

Jan 5, 2023
Modern Window Sitter for X11 based Desktop Environments
Modern Window Sitter for X11 based Desktop Environments

Modern Window Sitter for X11 based Desktop Environments (Coming to Wayland, Windows and Mac soon-ish). But using with a terminal emulator is recommended.

Nov 30, 2022
Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS.
Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

?? Available Translations: ???? ???? ???? ???? ???? ???? ???? ???? . View these docs in other languages at electron/i18n. The Electron framework lets

Jan 3, 2023
Build performant, native and cross-platform desktop applications with Node.js and CSS like styling. 🚀
Build performant, native and cross-platform desktop applications with Node.js and CSS like styling. 🚀

NodeGui Build performant, native and cross-platform desktop applications with Node.js and CSS like styling. ?? NodeGUI is powered by Qt5 ?? which make

Dec 30, 2022
Neutralinojs is a lightweight and portable desktop application development framework
Neutralinojs is a lightweight and portable desktop application development framework

Neutralinojs is a lightweight and portable desktop application development framework. It lets you develop lightweight cross-platform desktop applications using JavaScript, HTML and CSS.

Dec 30, 2022
Radio.Garden desktop app and game overlay
Radio.Garden desktop app and game overlay

Radio.Garten A radio.garden desktop client and overlay written with SDL2 and ImGui Overlay Example Overlay Compatibility Please check the compatibilit

Dec 8, 2022
Purely native C++ cross-platform GUI framework for Android and iOS development. https://www.boden.io
Purely native C++ cross-platform GUI framework for Android and iOS development. https://www.boden.io

BODEN CROSS-PLATFORM FRAMEWORK Build purely native cross-platform experiences with Boden Website ⬡ Getting Started ⬡ API Reference ⬡ Guides ⬡ Twitter

Dec 27, 2022
Elements C++ GUI library
Elements C++ GUI library

Elements C++ GUI library Introduction Elements is a lightweight, fine-grained, resolution independent, modular GUI library. Elements is designed with

Dec 30, 2022
Minimalistic C++/Python GUI library for OpenGL, GLES2/3, Metal, and WebAssembly/WebGL
Minimalistic C++/Python GUI library for OpenGL, GLES2/3, Metal, and WebAssembly/WebGL

NanoGUI NanoGUI is a minimalistic cross-platform widget library for OpenGL 3+, GLES 2/3, and Metal. It supports automatic layout generation, stateful

Dec 28, 2022
A single-header ANSI C immediate mode cross-platform GUI library
A single-header ANSI C immediate mode cross-platform GUI library

Nuklear This is a minimal-state, immediate-mode graphical user interface toolkit written in ANSI C and licensed under public domain. It was designed a

Dec 24, 2022
A library for creating native cross-platform GUI apps

Yue A library for creating native cross-platform GUI apps. Getting started Documentations FAQ Development Examples Sample apps (with screenshots) Muba

Jan 7, 2023
A barebones single-header GUI library for Win32 and X11.
A barebones single-header GUI library for Win32 and X11.

luigi A barebones single-header GUI library for Win32 and X11. Building example Windows Update luigi_example.c to #define UI_WINDOWS at the top of the

Dec 30, 2022
Clight GUI written in Qt.
Clight GUI written in Qt.

CLight GUI Clight GUI written in Qt. Huge thanks to @FedeDP for writing Clight and Clightd, the daemons upon which this is built on.

Dec 21, 2022
YARA pattern matching scannner GUI
YARA pattern matching scannner GUI

YARA GUI This is a GUI for the binary pattern matching scanner YARA. Features Drag and drop targets Directory scanning Compiled rule cache Favorite/re

Jul 2, 2021
It's a simple Canvas GUI for Unreal Engine 4 with mouse operation
It's a simple Canvas GUI for Unreal Engine 4 with mouse operation

ue4-canvas-gui It's a simple Canvas GUI for Unreal Engine 4 with mouse operation. Included elements: Rendering Text (left/center); Rendering Rects; Re

Dec 26, 2022
Proof-of-concept code to reconstruct the GUI of a Xen guest running Windows
Proof-of-concept code to reconstruct the GUI of a Xen guest running Windows

vmi-reconstruct-gui A proof-of-concept to reconstruct the GUI of a Xen VM running Windows 7. ❗ Disclaimer This repository is work in progress. It curr

Aug 21, 2022
Nvui: A NeoVim GUI written in C++ and Qt
Nvui: A NeoVim GUI written in C++ and Qt

Nvui: A NeoVim GUI written in C++ and Qt

Jan 7, 2023