How ro run a appimage with electron


{ config, pkgs,nur, ... }:
let
  AnotherRedisDesktopManager_pkg = with pkgs; appimageTools.wrapType2
    ({
      name = "AnotherRedisDesktopManager";
      src = fetchurl {
        sha256 = "sha256-sG+XH1oVIRRI0690Od8F3MF24XpF+YpDHHkXnowvsy8=";
        url = "https://github.com/qishibo/AnotherRedisDesktopManager/releases/download/v1.6.3/Another-Redis-Desktop-Manager.1.6.3.AppImage";
      };
      extraPkgs = pkgs: with pkgs; [ mesa libGLU mesa ]; 
    });
  icons=../../dotfileAndStatic/icons/AnotherRedisDesktopManager.png;
in
{
  home.packages = with pkgs; [
    AnotherRedisDesktopManager_pkg 
  ];
  home.file = {
    ".local/share/applications/AnotherRedisDesktopManager.desktop".text = ''
    [Desktop Entry]
    Version=1.6.3
    Type=Application
    Name=AnotherRedisDesktopManager
    Exec=AnotherRedisDesktopManager
    Icon=${icons}
    StartupWMClass=AppRun
    '';
  };

}

there is a err:

[112840:0318/220947.227015:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn’t usable. Goodbye.

What else should I add to extraPkgs? Or there are those that need to be configured

I think the issue maybe outside the package, I tried building the package you provided and it seems be working:

I’m running unstable btw.

Some people suggest running with --in-process-gpu.

Another thing that may be worth trying is deleting the chromium caches, if there’s any. I remember there being some problems with those breaking some chromium-based applications.

Thank you, I tested it and it works fine