NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.06k stars 14.05k forks source link

Bug: ventoy - `ventoy-gui` doesn't run #332703

Open chewblacka opened 2 months ago

chewblacka commented 2 months ago

Describe the bug

When enabling the GUI under either the ventoy or ventoy-full package, running ventoy-gui doesn't work.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install ventoy with GUI enabled, e.g. (ventoy.override { withGtk3 = true; }) or using withQt5 = true
  2. run ventoy-gui which is now in the path
  3. Nothing happens. Shell shows command has exited with an error but no error messages displayed.

Expected behavior

ventoy-gui should open and run, or at least give an error message.

Additional context

This is somewhat of a duplicate of https://github.com/NixOS/nixpkgs/issues/282036, but am re-doing since that issue was primarily about how to install, and didn't notify maintainer.

Notify maintainers

@AndersonTorres

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.41, NixOS, 24.11 (Vicuna), 24.11.20240719.1d9c2c9`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `""`
 - channels(user): `""`
 - nixpkgs: `/nix/store/l6spwdi1xs20q24fqfi3xwxx0d2x9q2m-source`

Add a :+1: reaction to issues you find important.

eclairevoyant commented 2 months ago

based on strace:

getcwd("/nix/store/8lf3xv4pgnbccm6zv0yzijg8pmzyk1gd-ventoy-1.0.99/share/ventoy", 4096) = 71                                         
getuid()                                = 1001                    
getppid()                               = 884672                  
getpid()                                = 884675                  
openat(AT_FDCWD, "log.txt", O_RDWR|O_CREAT|O_APPEND, 0666) = -1 EROFS (Read-only file system)
LinuxMason commented 2 months ago

based on strace:

getcwd("/nix/store/8lf3xv4pgnbccm6zv0yzijg8pmzyk1gd-ventoy-1.0.99/share/ventoy", 4096) = 71                                         
getuid()                                = 1001                    
getppid()                               = 884672                  
getpid()                                = 884675                  
openat(AT_FDCWD, "log.txt", O_RDWR|O_CREAT|O_APPEND, 0666) = -1 EROFS (Read-only file system)

What does this mean for the likeliness that the GUI will be fixed/added? Is it not possible?

eclairevoyant commented 2 months ago

Whoever wants to fix it will need to know the cause, which the logs point at.

balataca commented 1 week ago

Hello @chewblacka, I had the same issues as you after installing ventoy or ventoy-full:

To fix this issues I just had to add these options to the package:

environment.systemPackages = with pkgs; [
    (ventoy.override {
      defaultGuiType = "gtk3";
      withGtk3 = true;
    })
];

I am using GNOME as my DE, so that's why I used gtk3, but if you use kde for example you have to change this to:

environment.systemPackages = with pkgs; [
    (ventoy.override {
      defaultGuiType = "qt5";
      withQt5 = true;
    })
];
LinuxMason commented 1 week ago

Hello @chewblacka, I had the same issues as you after installing ventoy or ventoy-full:

  • No desktop file created
  • Unable to run ventoy-gui command, also I couldn't get any output.
environment.systemPackages = with pkgs; [
    (ventoy.override {
      defaultGuiType = "qt5";
      withQt5 = true;
    })
];

Thanks for sharing that.