Code Monkey home page Code Monkey logo

Comments (7)

SuNNjek avatar SuNNjek commented on June 7, 2024 2

For all the Arch users out there (like me 😄) I created an AUR package that removes the modify_ldt restriction with the patch by @GustavoPeredo here: https://aur.archlinux.org/packages/flatpak-lol

from components.

TheNamelessWonderer avatar TheNamelessWonderer commented on June 7, 2024 1

Pretty sure it still doesn't run in flatpak because of flathub/net.lutris.Lutris#85. The wine version is already available for non-flatpak builds of bottles.

from components.

SuNNjek avatar SuNNjek commented on June 7, 2024 1

Just tried it, still needs modify_ldt unfortunately so it doesn't work

from components.

GustavoPeredo avatar GustavoPeredo commented on June 7, 2024 1

It still needs the patch for the flatpak version, but other versions should work fine. Also, if using NixOS you can use my configuration to fix the issue.

{ config, pkgs, ... }:
let 
lol = builtins.toFile "lol" ''
          --- a/common/flatpak-run.c    2022-08-06 17:22:32.275764357 +0200
          +++ b/common/flatpak-run.c    2022-08-06 17:22:55.071886221 +0200
          @@ -3113,9 +3113,6 @@
               {SCMP_SYS (uselib), EPERM},
               /* Don't allow disabling accounting */
               {SCMP_SYS (acct), EPERM},
          -    /* 16-bit code is unnecessary in the sandbox, and modify_ldt is a
          -       historic source of interesting information leaks. */
          -    {SCMP_SYS (modify_ldt), EPERM},
               /* Don't allow reading current quota use */
               {SCMP_SYS (quotactl), EPERM},
 


        '';
in
{
  imports =
    [ 
      ./hardware-configuration.nix
    ];

  boot.loader.systemd-boot.enable = true;
  boot.loader.efi.canTouchEfiVariables = true;
  boot.loader.efi.efiSysMountPoint = "/boot/efi";

  networking.hostName = "nixos"; # Define your hostname.


  networking.networkmanager.enable = true;

  services.xserver.enable = true;
  services.xserver.videoDrivers = [ "nvidia" ];
  hardware.opengl.enable = true;

  hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;

  services.xserver.displayManager.gdm.enable = true;
  services.xserver.desktopManager.gnome.enable = true;

  services.xserver = {
    layout = "us";
    xkbVariant = "alt-intl";
  };

  services.printing.enable = true;

  sound.enable = true;
  hardware.pulseaudio.enable = false;
  security.rtkit.enable = true;
  services.pipewire = {
    enable = true;
    alsa.enable = true;
    alsa.support32Bit = true;
    pulse.enable = true;
  };

  nixpkgs.overlays = [ (
    self: super:
    {
      flatpak = super.flatpak.overrideAttrs (old: {
        patches = (old.patches or []) ++ [
          "${lol}"
        ];
      });
    }
  )];

  users.users.gustavo = {
    isNormalUser = true;
    description = "Gustavo Peredo";
    extraGroups = [ "networkmanager" "wheel" ];
    packages = with pkgs; [
      firefox
      flatpak
    ];
  };

  nixpkgs.config.allowUnfree = true;
  
  services.flatpak.enable = true;

  environment.systemPackages = with pkgs; [
    gnomeExtensions.appindicator
    gnomeExtensions.pop-shell
    vim
  ];
  system.stateVersion = "22.05"; 

}

Also, the newest version was merged for hackers and non flatpak users ;) #159

from components.

kassindornelles avatar kassindornelles commented on June 7, 2024 1

For all the Arch users out there (like me smile) I created an AUR package that removes the modify_ldt restriction with the patch by @GustavoPeredo here: https://aur.archlinux.org/packages/flatpak-lol

this is awful but i love it

from components.

mirkobrombin avatar mirkobrombin commented on June 7, 2024

Nice

from components.

kassindornelles avatar kassindornelles commented on June 7, 2024

not a bottles issue, closing since now i know it

from components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.