summarylogtreecommitdiffstats
path: root/code.sh
blob: 4a4827a30bb5d798f78caf6f3891d0e1fad6a128 (plain)
1
2
3
4
5
6
7
#!/bin/bash

if [ "${XDG_SESSION_TYPE}" == "wayland" ]; then
    ELECTRON_RUN_AS_NODE=1 exec electron /usr/lib/code-wayland/out/cli.js /usr/lib/code-wayland/code.js --enable-features=UseOzonePlatform --ozone-platform=wayland "$@"
else
    ELECTRON_RUN_AS_NODE=1 exec electron /usr/lib/code-wayland/out/cli.js /usr/lib/code-wayland/code.js "$@"
fi