electron-vite-react icon indicating copy to clipboard operation
electron-vite-react copied to clipboard

Run npm run dev under wayland with wayland flags

Open mylinuxforwork opened this issue 1 year ago • 2 comments

Hello,

I'm currently creating an electron based app under Wayland on Arch Linux.

Is there a way to start "npm run dev" with required flags for wayland?

Can do it after the build on the AppImage but not on Development.

Thanks.

mylinuxforwork avatar Jan 11 '24 16:01 mylinuxforwork

I have the same problem. Is there any way to run the dev environment in native wayland?

devadathanmb avatar Feb 01 '24 10:02 devadathanmb

You can pass electron flags into the dev script.

For example,

    "dev": "electron-vite dev -- --enable-features=UseOzonePlatform --ozone-platform=wayland",

This runs the development environment in native Wayland.

Linking the relevant section to the docs below

https://electron-vite.org/guide/dev#passing-arguments-to-electron-app

devadathanmb avatar Feb 02 '24 08:02 devadathanmb