mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
[PM-10448] Enable wayland where possible in Linux Desktop (#10359)
* Enable wayland where possible * Update electron to 34.4.0 * Re-add snap libdbus fix * Flatpak permissions for wayland * Bump electron version to 35.5.1 * Switch to x11 socket from x11-fallback * Fix package.json
This commit is contained in:
@@ -262,7 +262,8 @@
|
|||||||
},
|
},
|
||||||
"u2f-devices"
|
"u2f-devices"
|
||||||
],
|
],
|
||||||
"stagePackages": ["default"]
|
"stagePackages": ["default"],
|
||||||
|
"allowNativeWayland": true
|
||||||
},
|
},
|
||||||
"protocols": [
|
"protocols": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ command: bitwarden.sh
|
|||||||
finish-args:
|
finish-args:
|
||||||
- --share=ipc
|
- --share=ipc
|
||||||
- --share=network
|
- --share=network
|
||||||
|
- --socket=wayland
|
||||||
|
# This should be fallback-x11, but on gnome/mutter, zwlr_data_control_manager_v1 is not implemented
|
||||||
|
# so we need to use x11 as a fallback to make copy paste work
|
||||||
- --socket=x11
|
- --socket=x11
|
||||||
- --device=dri
|
- --device=dri
|
||||||
- --env=XDG_CURRENT_DESKTOP=Unity
|
- --env=XDG_CURRENT_DESKTOP=Unity
|
||||||
|
|||||||
@@ -13,6 +13,9 @@ then
|
|||||||
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libdbus-1.so.3"
|
export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libdbus-1.so.3"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# pass through all args
|
PARAMS="--enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto"
|
||||||
$APP_PATH/bitwarden-app "$@"
|
if [ "$USE_X11" = "true" ]; then
|
||||||
|
PARAMS=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
$APP_PATH/bitwarden-app $PARAMS "$@"
|
||||||
@@ -25,7 +25,7 @@ async function run(context) {
|
|||||||
fse.moveSync(oldBin, newBin);
|
fse.moveSync(oldBin, newBin);
|
||||||
console.log("Moved binary to bitwarden-app");
|
console.log("Moved binary to bitwarden-app");
|
||||||
|
|
||||||
const wrapperScript = path.join(__dirname, "../resources/memory-dump-wrapper.sh");
|
const wrapperScript = path.join(__dirname, "../resources/linux-wrapper.sh");
|
||||||
const wrapperBin = path.join(appOutDir, context.packager.executableName);
|
const wrapperBin = path.join(appOutDir, context.packager.executableName);
|
||||||
fse.copyFileSync(wrapperScript, wrapperBin);
|
fse.copyFileSync(wrapperScript, wrapperBin);
|
||||||
fse.chmodSync(wrapperBin, "755");
|
fse.chmodSync(wrapperBin, "755");
|
||||||
|
|||||||
Reference in New Issue
Block a user