看板 Linux 關於我們 聯絡資訊
* 問題 https://zhuanlan.zhihu.com/p/106926984 * 解決方法 我發現 line四個邊框分別屬於四個不同的視窗, 這四個邊框的 window ID分別是主視窗 ID + 10, ID + 14, ID + 18, ID + 22. 登入桌面環境後, 執行下列 script就可以解決這個問題 #!/usr/bin/python3 import time import os while True: time.sleep(5) exist = os.popen("ps -ef | grep LINE.exe") e = exist.readlines() if len(e) < 3: print(e) print("Line not started.") exist.close() continue exist.close() output = os.popen("wmctrl -l -G -p -x") s = output.readlines() id = '' for item in s: print(item) if item.find("line.exe.line.exe") != -1: id = item.split()[0] break output.close() print(id) if id != '': sequences = [10, 14, 18, 22] for i in sequences: shadow = int(id, base=16) shadow += i shadow = "0x" + f"{shadow:x}" print(shadow) os.system("xdotool windowunmap " + shadow) else: print("Line not display yet.") -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.248.9.102 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1643429963.A.510.html
Fortis931: 這是wine下的line? 01/29 15:20
macarthur628: 對啊,用wine執行line 01/29 16:16
rexct: 借問原po或有人用wine執行line 7.0以上成功的嗎? 01/29 21:29
macarthur628: 我用的line版本是6.7.4.2508 01/30 11:12
holishing: 沒有, wine 怎樣弄都繞不過新版限制 01/30 20:56
macarthur628: manjaro kde + Line version 8.1.1.3145可執行 08/13 10:43