SnapShot on Hyprland: capture shortcut does nothing, T3 never creates its portal shortcut session

Đang mở
#36,206 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
49/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
desktop-dev

Hướng nghiên cứu

Start by tracing the Hyprland-managed PortalCaptureShortcut path through CreateSession, the entry points named in the issue. Reproduce with the reported Hyprland shortcut setup and inspect whether session creation is reached or fails silently. Done means the shortcut starts a capture, or a logged error identifies why portal session creation failed.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs more info

Environment

  • Fedora, Wayland, Hyprland 0.55.2 with a Lua config
  • T3 Code beta AppImage (desktop entry X-AppImage-Version=0.1.5), installed Nov 13

Steps

  1. Settings → SnapShots: enabled. Under the toggle it says "Finish shortcut setup". "Change shortcut" shows no saved label.
  2. Added to hyprland.lua: hl.bind("CTRL + SHIFT + 2", hl.dsp.global("com.t3tools.T3Code:capture-window")). hyprctl reload reports no config errors.
  3. Pressed Ctrl+Shift+2 (and Ctrl+Shift+1 in an earlier config). Nothing happens.
  4. hyprctl dispatch 'hl.dsp.global("com.t3tools.T3Code:capture-window")' returns ok. The desktop trace shows no desktop.snapShot.prepareCapture span afterward.
  5. busctl --user tree org.freedesktop.portal.Desktop lists only other apps' GTK sessions. T3 has no session.
  6. Settings → "Set up snapshots for Hyprland" → Shortcut step shows "This shortcut is already set up." with Done/Cancel. The config is unchanged, and T3 still has no portal session.

Expected: after setup, the Hyprland dispatch starts a capture.
Actual: no portal session, no capture, no error in the trace, xdg-desktop-portal or xdg-desktop-portal-hyprland logs.

Notes

  • The Settings default is "Shift + Shift" (both-shift-keys). On Hyprland the app ignores it and uses a hardcoded portal trigger of Ctrl+Shift+2.
  • The desktop trace shows 127.0.0.1:3773/.well-known/t3/environment returning 503 during startup. Not sure whether it's related.
  • Related but not the same: #35048 (merged, portal restart reconnect), #28989 (open, Lua conflict detection), #23426 (Hyprland activation timeouts).

Question for maintainers: does the Hyprland-managed path (PortalCaptureShortcut with managedByHyprland) fail silently before CreateSession? A logged error at that point would make this easy to diagnose.

Ngôn ngữ chính
TypeScript
Star
24.8k
Fork
6.4k
Merge trung bình
59 phút
Pull request đã merge (30 ngày)
418

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của pingdotgg/t3code

Tất cả issue của pingdotgg/t3code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.