Skip to content

Commit d3622af

Browse files
author
psadi
committed
revert: x11-fallback logic
1 parent 9f5990e commit d3622af

File tree

2 files changed

+41
-18
lines changed

2 files changed

+41
-18
lines changed

README.md

Lines changed: 41 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,33 +27,48 @@ This repository provides build scripts to create a Universal AppImage for [Ghost
2727

2828
## ⚙️ Installation
2929

30-
### Command Line
30+
### Command Line (Manual)
3131

3232
Run the following commands in your terminal:
3333

3434
```bash
3535
# Download the latest AppImage package from releases
36-
wget https://github.com/psadi/ghostty-appimage/releases/download/${TAG}/Ghostty-x86_64.AppImage
36+
wget https://github.com/psadi/ghostty-appimage/releases/download/${VERSION}/Ghostty-${VERSION}-${ARCH}.AppImage
3737

3838
# Make the AppImage executable
39-
chmod +x Ghostty-x86_64.AppImage
39+
chmod +x Ghostty-${VERSION}-${ARCH}.AppImage
4040

4141
# Run the AppImage
42-
./Ghostty-x86_64.AppImage
42+
./Ghostty-${VERSION}-${ARCH}.AppImage
4343

4444
# Optionally, add the AppImage to your PATH for easier access
4545

4646
# With sudo for system wide availability
47-
sudo install ./Ghostty-x86_64.AppImage /usr/local/bin/ghostty
47+
sudo install ./Ghostty-${VERSION}-${ARCH}.AppImage /usr/local/bin/ghostty
4848

4949
# Without sudo, XDG base spec mandate
50-
install ./Ghostty-x86_64.AppImage $HOME/.local/bin/ghostty
50+
install ./Ghostty-${VERSION}-${ARCH}.AppImage $HOME/.local/bin/ghostty
5151

5252
# Now you can run Ghostty from anywhere using the command:
5353
# ghostty
5454
```
5555

56-
_**Note:** By using [**AM**](https://github.com/ivan-hc/AM)/[**AppMan**](https://github.com/ivan-hc/AppMan), **PATH** config done automatically when you install appimages with it._
56+
**Note:** By using [**AM**](https://github.com/ivan-hc/AM)/[**AppMan**](https://github.com/ivan-hc/AppMan), **PATH** config done automatically when you install appimages with it.
57+
58+
### Command Line (Auto)
59+
60+
Ghostty AppImage is also available via [**Soar**](https://github.com/pkgforge/soar) which automatically handles the install, upgrade and desktop integration process
61+
62+
```bash
63+
# Install
64+
soar install ghostty
65+
66+
# Upgrade
67+
soar update ghostty
68+
69+
# Uninstall
70+
soar remove ghostty
71+
```
5772

5873
### Graphical
5974

@@ -75,12 +90,12 @@ Since AppImages are self-contained executables, there is no formal installation
7590
**Update manually:**
7691

7792
1. Download the latest AppImage package from the [releases](https://github.com/psadi/ghostty-appimage/releases) section.
78-
2. Follow the same steps as in the [Installation](#installation) section to make it executable and run it.
93+
1. Follow the same steps as in the [Installation](#installation) section to make it executable and run it.
7994

8095
**Update automatically:**
8196

8297
1. Use [AppImageUpdate](https://github.com/AppImageCommunity/AppImageUpdate) which reads the update information in the AppImage. This is a low level tool.
83-
2. Use a higher level tool that uses AppImageUpdate, like [AM](https://github.com/ivan-hc/AM) or [appimaged](https://github.com/probonopd/go-appimage/blob/master/src/appimaged/README.md) daemon, these tools also automatically handle desktop integration.
98+
1. Use a higher level tool that uses AppImageUpdate, like [AM](https://github.com/ivan-hc/AM) or [appimaged](https://github.com/probonopd/go-appimage/blob/master/src/appimaged/README.md) daemon, these tools also automatically handle desktop integration.
8499

85100
## 🖥️ Supported System Architectures
86101

@@ -104,7 +119,23 @@ This AppImage supports the following architectures:
104119

105120
### 🛠️ Troubleshooting
106121

107-
- If you encounter any errors, check the terminal for error messages that may indicate missing dependencies or other issues.
122+
**Known Issues**
123+
124+
1. **Failed to create EGL Display**
125+
**Fix (Interim):** Fallback to x11 backend by running the AppImage from one of the below following options,
126+
127+
```bash
128+
# Option 1
129+
❯ GDK_BACKEND=x11 ./Ghostty-${VERSION}-${ARCH}.AppImage
130+
131+
# Option 2
132+
export GDK_BACKEND=x11
133+
❯ ./Ghostty-${VERSION}-${ARCH}.AppImage
134+
135+
# Option 3: Add `export GDK_BACKEND=x11` to your .bashrc or .zshrc and launch the appimage normally
136+
```
137+
138+
_If you encounter any errors, check the terminal for error messages that may indicate missing dependencies or other issues_
108139

109140
## 🤝 Contributing
110141

build.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,8 @@ cat <<'EOF' >./AppRun
8989
9090
HERE="$(dirname "$(readlink -f "$0")")"
9191
unset ARGV0
92-
93-
export TERM=xterm-256color
9492
export GHOSTTY_RESOURCES_DIR="${HERE}/usr/share/ghostty"
95-
9693
exec "${HERE}"/ld-linux.so --library-path "${HERE}"/usr/lib "${HERE}"/usr/bin/ghostty "$@"
97-
98-
if [ "$?" -gt 0 ] && [ -n "$WAYLAND_DISPLAY" ]; then
99-
export GDK_BACKEND=x11
100-
exec "${HERE}"/ld-linux.so --library-path "${HERE}"/usr/lib "${HERE}"/usr/bin/ghostty "$@"
101-
fi
10294
EOF
10395

10496
chmod +x AppRun

0 commit comments

Comments
 (0)