sigma-file-manager icon indicating copy to clipboard operation
sigma-file-manager copied to clipboard

Unable to start on nixos

Open Th0rgal opened this issue 4 years ago • 10 comments

Is there an existing issue for this?

  • [X] I have searched the opened issues

Problem description

I am not able to start sigma-file-manager on nixos (linux). I used the appimage file (from 1.3.0, it was not released for 1.4.0), packaged like this: https://gist.github.com/Th0rgal/09f48a28a9b21eefdeda911bbf8afbdf

Here is what I get when I type sigma-file-manager -d:

+ getopts x:w:dh option
+ shift 3
+ '[' -n true ']'
+ '[' -d /nix/store/dwqr4mnk7ji3fw0kh62nxn21pcp69656-sigma-file-manager-1.3.0-extracted ']'
+ wrap
+ export APPIMAGE_SILENT_INSTALL=1
+ APPIMAGE_SILENT_INSTALL=1
+ '[' -n '' ']'
+ exec /nix/store/dwqr4mnk7ji3fw0kh62nxn21pcp69656-sigma-file-manager-1.3.0-extracted/AppRun
(node:46) Electron: Loading non-context-aware native module in renderer: '/tmp/.org.chromium.Chromium.Y7UQqG'. This is deprecated, see https://github.com/electron/electron/issues/18397.
(Use `exe --trace-warnings ...` to show where the warning was created)

Steps to reproduce

  1. Install nixos or nix
  2. load my nix derivation: https://gist.github.com/Th0rgal/09f48a28a9b21eefdeda911bbf8afbdf

Environment

  • OS: Nixos 21.05
  • App version: 1.3.0

Th0rgal avatar Sep 17 '21 12:09 Th0rgal

Consider supporting the developer on Patreon to increase priority of all your issues, get access to private discord and other rewards.
Patreon page: https://www.patreon.com/sigma_file_manager

github-actions[bot] avatar Sep 17 '21 12:09 github-actions[bot]

The provided AppImage was built on Debian (Ubuntu). That's probably the reason it's not launching on NixOS.

You can try building it yourself. You will need:

  • Node 15.14.0
  • Build tools package installed for node-gyp sudo apt-get install build-essential
  • Then clone the project git clone https://github.com/aleksey-hoffman/sigma-file-manager.git
  • cd sigma-file-manager
  • npm install
  • npm run electron:build

Though it will not launch as is either, because I didn't provide AppImage for v1.4. The auto-updater will throw an error on launch unless you disable the code that calls it before building. I will fix this error in v1.5 (as I mentioned, I didn't have time to test MacOS and Linux builds)

aleksey-hoffman avatar Sep 17 '21 12:09 aleksey-hoffman

Alright, thanks for your answer. Should I close the issue or wait for 1.5?

Th0rgal avatar Sep 17 '21 12:09 Th0rgal

Let's leave the issue open for now. I will try to install NixOS and build the app for you once I fix the error

aleksey-hoffman avatar Sep 17 '21 12:09 aleksey-hoffman

Thank you. Don't hesitate to ask if you need help.

Th0rgal avatar Sep 17 '21 13:09 Th0rgal

Hey! How is it going? Is there a way I can help? :)

Th0rgal avatar Oct 25 '21 20:10 Th0rgal

Hey mate. Everything's fine, thanks I downloaded both NixOS Plasma Desktop and NixOS Gnome but I didn't have time to get to this issue yet.

I'm going to release v1.5 update in about 1 week. I can send you the pre-release v1.5 build (in a few days) so you can test it out and see if it works. Do you want to do that?

aleksey-hoffman avatar Oct 25 '21 20:10 aleksey-hoffman

Hey mate. Everything's fine, thanks

I downloaded both NixOS Plasma Desktop and NixOS Gnome but I didn't have time to get to this issue yet.

I'm going to release v1.5 update in about 1 week.

I can send you the pre-release v1.5 build (in a few days) so you can test it out and see if it works. Do you want to do that?

For sure that would be great, thank you!

Th0rgal avatar Oct 26 '21 06:10 Th0rgal

few notes on nixos

  • Node JS 15 is EOL so no package on nixpkgs
  • Old version of electron so no wayland (native) support
  • PR based on appimage 1.7.0 https://github.com/NixOS/nixpkgs/pull/273954

heisfer avatar Dec 14 '23 00:12 heisfer

Guys, I will soon need some help with making Sigma v2 core available on all Linux platforms / package managers / stores / etc.

My plan is to turn Sigma into a small app base that you can use on any Linux platform and move most of its complex features into packages (extensions).

I will post v2 on Github and some more info on Twitter and Reddit soon

aleksey-hoffman avatar Dec 17 '23 17:12 aleksey-hoffman