Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run npm run dev under wayland with wayland flags #194

Open
mylinuxforwork opened this issue Jan 11, 2024 · 2 comments
Open

Run npm run dev under wayland with wayland flags #194

mylinuxforwork opened this issue Jan 11, 2024 · 2 comments

Comments

@mylinuxforwork
Copy link

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.

@devadathanmb
Copy link

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

@devadathanmb
Copy link

devadathanmb commented Feb 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants