forge icon indicating copy to clipboard operation
forge copied to clipboard

Conflict when installing alongside other electron apps on Fedora

Open p2kmgcl opened this issue 1 year ago • 0 comments

Pre-flight checklist

  • [X] I have read the contribution documentation for this project.
  • [X] I agree to follow the code of conduct that this project uses.
  • [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

7.3.0

Electron version

29.0.1

Operating system

Fedora 33

Last known working Electron Forge version

No response

Expected behavior

Application should be installed correctly on Fedora (when using electron forge RPM maker), with no errors.

Actual behavior

When other electron applications are installed on the computer, it throws conflict errors during the install process:

image

These errors can be avoided passing --excludepath=/usr/lib/.build-id to rpm when installing the app, but it requires to use the terminal to install it, which is not ideal.

Steps to reproduce

  1. Build an electron app using electron rpm builder
  2. Install the app in a fedora 33 system which already has some other electron app (slack, discord...)

Additional information

I have seen this error mentioned in other places:

  • https://github.com/Zettlr/Zettlr/issues/4905#issuecomment-2004696485
  • https://github.com/th-ch/youtube-music/issues/1882#issuecomment-2057043813
  • https://github.com/bitwarden/clients/issues/3524

And also there are some fixes that are applicable to electron builder:

  • https://github.com/Zettlr/Zettlr/commit/67042e6d48222286c60deea53d12c1b402adaa3b
  • https://github.com/ferdium/ferdium-app/pull/417/commits/7acf2c8b516adb43b7789d282015cfe4324104a4

However, apparently we are not able to pass build parameters to rpm with electron forge. It would be nice to have this solved internally by electron forge (if the solution is valid for all projects) or either allow passing parameters to rpm like electron builder does.

p2kmgcl avatar May 08 '24 14:05 p2kmgcl