lsnow / translate-clipboard

Gnome shell extension.Show translation of clipboard content. GNOME桌面取词翻译插件
GNU General Public License v3.0
12 stars 0 forks source link

can not open setup interface #1

Open eexpress opened 3 years ago

eexpress commented 3 years ago

TypeError: prefsModule.buildPrefsWidget is not a function

Stack trace: _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40 OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28 asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13 run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20 main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13 run@resource:///org/gnome/gjs/modules/script/package.js:222:19 start@resource:///org/gnome/gjs/modules/script/package.js:206:5 @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

lsnow commented 3 years ago

TypeError: prefsModule.buildPrefsWidget is not a function

Stack trace: _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40 OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28 asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13 run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20 main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13 run@resource:///org/gnome/gjs/modules/script/package.js:222:19 start@resource:///org/gnome/gjs/modules/script/package.js:206:5 @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

What's your GNOME Shell version?You can pull the newest code and open the setup window on GNOME40. 2021-04-15 20-36-31 的屏幕截图

eexpress commented 3 years ago

GNOME Shell 3.36.7

lsnow commented 3 years ago

You can modify the settings in the extension's menu.

eexpress commented 3 years ago

but here only two menu items, I want change color and etc. I almost can not see the translate result. screenshot

lsnow commented 3 years ago

You can try modifying stylesheet.css by yourself. Or you can send your screenshot here. I will go back to see it in a few days.

eexpress commented 3 years ago

2021-05-02 23-07-18 的屏幕截图

lsnow commented 3 years ago

你是中国人吧?直接修改这个插件目录下的stylesheet.css,像下面这样加一行 "color: 你喜欢的颜色“:

 /* Add your custom extension styling here */
 .translate-box {
     background-color: rgba(32, 32, 32, 1); 
     padding: 20px 32px 0 32px;
     border-radius: 5px;
     color: #fff;
 }
mlv- commented 3 years ago

I have the same error on 3.38.3. The extension also only works for me if I hover over a hyperlink, if I highlight a word there's just a small empty black rounded rectangle.

lsnow commented 3 years ago

Maybe you need install gawk. You can open a terminal and run journalctl -f, and select some other words, test if some errors has occurred