forked from electron/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not propagate GDK_BACKEND env variable to subproc
fixes electron#28436
- Loading branch information
1 parent
c75ec2e
commit 15af724
Showing
11 changed files
with
166 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
|
||
rm -f /tmp/groot-says | ||
rm -f /tmp/groot | ||
rm -f ~/.local/share/applications/groot.desktop | ||
|
||
update-desktop-database ~/.local/share/applications | ||
|
||
rm -f ~/.local/share/mime/packages/groot.xml | ||
|
||
update-mime-database ~/.local/share/mime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/sh | ||
|
||
set -o errexit | ||
|
||
cleanup () { | ||
exec "./after-test.sh" | ||
} | ||
|
||
trap cleanup HUP INT | ||
|
||
# Install the application Groot | ||
cp ./groot /tmp/ | ||
|
||
# Register Groot as desktop application | ||
cp ./groot.desktop ~/.local/share/applications | ||
|
||
# Update database of desktop entries | ||
update-desktop-database ~/.local/share/applications | ||
|
||
# Associate 'application/x-groot' mime type with '*.groot' files | ||
cp ./groot.xml ~/.local/share/mime/packages/ | ||
|
||
# update the MIME database | ||
update-mime-database ~/.local/share/mime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
echo $GDK_BACKEND > /tmp/groot-says |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Exec=/tmp/groot | ||
Name=Groot | ||
MimeType=application/x-groot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> | ||
<mime-type type="application/x-groot"> | ||
<comment>Groot File</comment> | ||
<glob weight="100" pattern="*.groot"/> | ||
</mime-type> | ||
</mime-info> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#!/bin/sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const { app, shell } = require('electron'); | ||
const path = require('path'); | ||
|
||
app.whenReady().then(async () => { | ||
await shell.openPath(path.join(__dirname, 'hello.groot')); | ||
app.quit(); | ||
}); |