Skip to content

Commit b50f025

Browse files
mumu-lhlmanateelazycat
authored andcommitted
Compile reinput during installation
1 parent 45e72d9 commit b50f025

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ There are many useful flags available for `install-eaf.py`, check it yourself us
8181
There are four types of support for the Wayland environment:
8282
- XWayland: EAF can run directly under XWayland
8383
- Gnome3 Wayland Native: You need to execute the command `cp -r emacs-application-framework/gnome-shell/[email protected] ~/.local/share/gnome-shell/extensions` and activate the `[email protected]` plugin in `gnome-extensions`
84-
- Sway Wayland Native: jq needs to be installed, run `reinput/compile.sh` to compile reinput
85-
- Hyprland Wayland Native: run `reinput/compile.sh` to compile reinput
84+
- Sway Wayland Native: jq needs to be installed
85+
- Hyprland Wayland Native
8686

8787
#### 3. Load EAF Core
8888

README.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ chmod +x ./install-eaf.py
7676
Wayland 环境的支持分四种情况:
7777
- XWayland: EAF 可在 XWayland 下直接运行
7878
- Gnome3 Wayland Native: 你需要执行命令 `cp -r emacs-application-framework/gnome-shell/[email protected] ~/.local/share/gnome-shell/extensions` 并在 `gnome-extensions` 中激活 `[email protected]` 插件
79-
- Sway Wayland Native: 需要安装 jq, 编译 reinput 运行 `reinput/compile.sh`
80-
- Hyprland Wayland Native: 编译 reinput 运行 `reinput/compile.sh`
79+
- Sway Wayland Native: 需要安装 jq
80+
- Hyprland Wayland Native
8181

8282
#### 3. 加载 EAF 核心
8383

install-eaf.py

+5
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,11 @@ def main():
534534
install_app_deps(distro, deps_dict)
535535
print("[EAF] ------------------------------------------")
536536

537+
current_desktop = os.getenv("XDG_CURRENT_DESKTOP") or os.getenv("XDG_SESSION_DESKTOP")
538+
if current_desktop in ["Hyprland", "sway"]:
539+
subprocess.Popen("gcc main.c -o reinput `pkg-config --cflags --libs libinput libevdev libudev`",
540+
shell=True)
541+
537542
print("[EAF] install-eaf.py finished.\n")
538543

539544
for msg in important_messages:

reinput/compile.sh

-3
This file was deleted.

0 commit comments

Comments
 (0)