还有其他方法可以从终端打开 LINE Chromium 扩展吗?

还有其他方法可以从终端打开 LINE Chromium 扩展吗?

还有其他方法可以从终端打开 LINE Chromium 扩展吗?

这是LINE 扩展

我可以手动打开 LINE 扩展(启动 Chromium 然后单击 LINE 图标),没有任何问题。

但是我想从终端打开 LINE 扩展。

LINE 版本 2.3.7

LINE ID: ophjlpahpchlmihnnnihgmmeilfjmjjc

我试过了

# These commands will open chromium
# with "Failed to load extension from: . Manifest file is missing or unreadable"
$ chromium --load-extension="/home/$myusername/.config/chromium/Extensions/ophjlpahpchlmihnnnihgmmeilfjmjjc"
$ chromium --load-extension="/home/$myusername/.config/chromium/Extensions/ophjlpahpchlmihnnnihgmmeilfjmjjc/2.3.7_0/"
# chrome://version
Chromium    80.0.3987.149 (Developer Build) built on Debian 10.3, running on Debian 10.3 (64-bit)
OS  Linux
JavaScript  V8 8.0.426.27
Flash   (Disabled)
User Agent  Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
Command Line    /usr/lib/chromium/chromium --show-component-extension-options --enable-gpu-rasterization --no-default-browser-check --disable-pings --media-router=0 --enable-remote-extensions --load-extension --flag-switches-begin --flag-switches-end --disable-webrtc-apm-in-audio-service --file-url-path-alias=/gen=/usr/lib/chromium/gen
Executable Path /usr/lib/chromium/chromium
Profile Path    /home/$myusername/.config/chromium/Default
# LINE EXTENSION
$ xprop
_NET_WM_DESKTOP(CARDINAL) = 1
_NET_WM_STATE(ATOM) = 
WM_STATE(WM_STATE):
        window state: Normal
        icon window: 0x0
_NET_WM_USER_TIME(CARDINAL) = 3326342
WM_NORMAL_HINTS(WM_SIZE_HINTS):
        program specified location: 592, 250
        program specified minimum size: 1 by 1
WM_NAME(UTF8_STRING) = "LINE"
_NET_WM_NAME(UTF8_STRING) = "LINE"
XdndAware(ATOM) = BITMAP
_MOTIF_WM_HINTS(_MOTIF_WM_HINTS) = 0x2, 0x0, 0x1, 0x0, 0x0
_NET_WM_ICON(CARDINAL) =    Icon (16 x 16):
     ░▒▒▒▒▒▒▒▒▒▒▒▒░ 
    ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
    ▒▒▒▒▒▒░░░░▒▒▒▒▒▒
    ▒▒▒▒░      ░▒▒▒▒
    ▒▒▒          ▒▒▒
    ▒▒░          ░▒▒
    ▒▒  ░ ░░ ░░░  ▒▒
    ▒▒  ░ ░░░░░░  ▒▒
    ▒▒  ░░░░ ░░░  ▒▒
    ▒▒░          ░▒▒
    ▒▒▒░        ░▒▒▒
    ▒▒▒▒░      ░▒▒▒▒
    ▒▒▒▒▒▒▒░  ▒▒▒▒▒▒
    ▒▒▒▒▒▒▒░░▒▒▒▒▒▒▒
    ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
     ░▒▒▒▒▒▒▒▒▒▒▒▒░ 

    Icon (16 x 16):
     ░▒▒▒▒▒▒▒▒▒▒▒▒░ 
    ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
    ▒▒▒▒▒▒░░░░▒▒▒▒▒▒
    ▒▒▒▒░      ░▒▒▒▒
    ▒▒▒          ▒▒▒
    ▒▒░          ░▒▒
    ▒▒  ░ ░░ ░░░  ▒▒
    ▒▒  ░ ░░░░░░  ▒▒
    ▒▒  ░░░░ ░░░  ▒▒
    ▒▒░          ░▒▒
    ▒▒▒░        ░▒▒▒
    ▒▒▒▒░      ░▒▒▒▒
    ▒▒▒▒▒▒▒░  ▒▒▒▒▒▒
    ▒▒▒▒▒▒▒░░▒▒▒▒▒▒▒
    ░▒▒▒▒▒▒▒▒▒▒▒▒▒▒░
     ░▒▒▒▒▒▒▒▒▒▒▒▒░ 


_NET_WM_BYPASS_COMPOSITOR(CARDINAL) = 2
_NET_WM_SYNC_REQUEST_COUNTER(CARDINAL) = 41943062, 41943063
WM_WINDOW_ROLE(STRING) = "pop-up"
WM_CLASS(STRING) = "crx_ophjlpahpchlmihnnnihgmmeilfjmjjc", "Chromium"
_NET_WM_WINDOW_TYPE(ATOM) = _NET_WM_WINDOW_TYPE_NORMAL
_NET_WM_PID(CARDINAL) = 5518
WM_LOCALE_NAME(STRING) = "en_US.UTF-8"
WM_CLIENT_MACHINE(STRING) = "ASUSDOGE"
WM_PROTOCOLS(ATOM): protocols  WM_DELETE_WINDOW, _NET_WM_PING, _NET_WM_SYNC_REQUEST

[Debian 10]


我读了

https://askubuntu.com/questions/1063331/how-to-install-google-chrome-extensions-though-terminal

https://stackoverflow.com/questions/22193369/run-chrome-extensions-using-command-prompt

答案1

好吧,要在它自己的窗口中打开 LINE 扩展,您可以调用 chromium 并使用--app

chromium --app=chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html

答案2

我设法修复了这个问题。

正常情况下,当点击 Chromium 上的 LINE 图标时,LINE 有自己的窗口,不依赖于 Chromium(我可以在打开 LINE 后关闭 Chromium)。

但是我可以使用以下 URL 地址在 Chromium 浏览器上打开 LINE:

chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html#popout

现在我可以用以下方式从终端打开 LINE

$ chromium chrome-extension://ophjlpahpchlmihnnnihgmmeilfjmjjc/index.html#popout

但这会在 Chromium 浏览器上打开 LINE,而不是在其自己的窗口中打开。所以我会将此视为替代方法,这个问题仍未解决。

相关内容