eve-o-preview: "wmctrl not found in expected locations." on nixOS

I’m a nixOS user, and run EVE Online via Steam.

Steps I took, following the directions I found in the Eve-Tools.net discord and with help from user “ReadYY”:

  • Downloaded EVE-O Preview 8.0.2.0 (linux)
  • Extracted it (in this case to my EVE prefix root)
  • Use Steam Tinker Launch to launch EVE in Steam
  • Enter the STL menu
  • Choose “Main Menu”
  • Select “Custom Command” and set the drop-down to the EVE-O-Preview.exe
  • Select “Fork custom command”
  • Click “Save and Play”

At this point, the EVE-O preview menu came up, and the EVE launcher. I have been able to get it to the point where I can see the EVE Preview windows, but clicking them does nothing.

I tailed the EVE-O Preview logs and saw this:

❯ : tail -Fn 999 EVE-O-Preview.log
[3/9/2025 11:12:54 PM] Error: wmctrl not found in expected locations.

wmctrl is definitely installed, but since I’m on nixOS it’s in an non-standard location:

❯ : which -a wmctrl
/home/dusty/.nix-profile/bin/wmctrl

I tried digging through the source code to find the source of this error, but couldn’t find the above error message nor any mentions of wmctrl. My C# is weak though, and perhaps it’s on a different branch.

Is it possible to change the expected locations, or perhaps get some documentation on what these expected locations are so I can try a symlink?

EDIT: found this PR: https://github.com/Proopai/eve-o-preview/pull/55. I tried creating a symlink in /usr/bin/wmctrl but still get the same error.

About this issue

Most upvoted comments

@DalShooth - without going too in-depth, the biggest difference between nixOS / people using nix as their package manager and something like Arch or Debian that people usually struggle with is that packages will not usually be “installed” to the common locations (e.g. /usr/bin). Generally, they will instead be installed to the nix store (a file tree on disk), and symlinks will be created within your search paths (PATH) that point to the binaries within that store.

For example:

❯ : which -a wmctrl
/home/dusty/.nix-profile/bin/wmctrl

❯ : ls -al /home/dusty/.nix-profile/bin/wmctrl
lrwxr-xr-x@ 1 root  wheel  61 Dec 31  1969 /home/dusty/.nix-profile/bin/wmctrl -> /nix/store/d1bjb6mlhqcmpaxmq5qbg7nxv0d1i58h-wmctrl/bin/wmctrl

This is nice because you effectively avoid dependency hell, each package can depend on version X of another package, and they can all exist within the nix store together. Nix will also create generations each time you “rebuild”, such that you can easily roll back if a new generation breaks things. There’s a ton of logic that goes into these packages to wrap them such that these paths can all co-exist and there’s no cross-contamination.

The problem here is that you guys have no easy way of knowing what search paths my system uses, especially when there’s the additional layer/complexity of WINE existing in the middle. I did a little research and it looks like we may be able to export WINEPATH when calling wine, will be used to populate the PATH variable within the wine prefix. I’ll try to give that a test tonight, and may look into just seeing if I can get EVE-O Preview to build on nixOS, and if so may consider just trying to get it into nixpkgs.