Kde

在 i3wm 上將 KDE Con nect 與手機配對

  • May 27, 2021

我正在嘗試用我的筆記型電腦將我的 Android 手機連接到 KDE Con​​nect 應用程序。

我的系統是一個 Minimal Debian Sid 系統,只有 i3wm,沒有安裝其他替代桌面環境或視窗管理器。

當我從手機向電腦發起配對請求時,我會收到如下螢幕截圖所示的通知。

在此處輸入圖像描述

當我點擊通知時,沒有任何反應。在 Gnome 或 KDE 等桌面環境中,通知也有一個接受或拒絕按鈕,這與 i3wm 的預設通知處理程序不同。

那麼我現在如何讓我的筆記型電腦與 KDE Con​​nect 配對呢?任何可以在這裡完成工作的替代通知處理程序?

幾個月前,當我嘗試將藍牙揚聲器與筆記型電腦配對時,我也遇到過類似的情況,這需要我輸入配對密鑰程式碼,而通過這樣的通知設置是不可能的。

我的設置詳情:Debian GNU/Linux Unstable(sid) WM: i3

按照 cocoa1231 的說明後,我嘗試從/usr/lib/

rajudev@sanganak:/usr/lib/x86_64-linux-gnu/libexec$ ./kdeconnectd 
kdeconnect.core: KdeConnect daemon starting
kdeconnect.core: onStart
kdeconnect.core: KdeConnect daemon started
kdeconnect.core: Broadcasting identity packet
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a new device "xiaomi"
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a known device "xiaomi"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a known device "xiaomi"
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a known device "xiaomi"
kdeconnect.core: creating pairing handler for "22d1625020250fbf"
kdeconnect.core: Pair request
kdeconnect.core: Sending onNetworkChange to  1  LinkProviders
kdeconnect.core: Broadcasting identity packet
kdeconnect.core: Starting client ssl (but I'm the server TCP socket)
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a known device "xiaomi"
Device pairing error "Timed out"
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: TCP connection done (i'm the existing device)
kdeconnect.core: Starting server ssl (I'm the client TCP socket)
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a known device "xiaomi"
kdeconnect.core: Socket successfully established an SSL connection
kdeconnect.core: It is a known device "xiaomi"

您將要執行/usr/lib/kdeconnectd並將其添加到您的 i3config

exec --no-startup-id /usr/lib/kdeconnectd

使其每次都能正常工作。並通過指標啟動設置。奇怪的是它不會直接啟動。必須啟動指標並從那裡啟動設置(在配對過程中)

對於配對過程,dunst 不支持互動式通知,因此打開 KDE Con​​nect 指示器並從指示器啟動設置,當您嘗試配對時,您可以從配置對話框中接受。這裡

引用自:https://unix.stackexchange.com/questions/476723