令人惊叹的窗口管理器启动栏小部件没有出现?

wiki 上来,我只改变了快捷方式文件夹为 /home/quanta/.config/awesome/launchbar/,其中包含一个测试文件,内容如下:

[Desktop Entry]
Name=Firefox
Exec=firefox
Icon=/usr/share/icons/hicolor/24x24/apps/firefox.png
Position=1

这个小部件有两种方式添加到 wibox 中:

mywibox[s].widgets = {
    --memwidget,
    --cpuwidget,
    {
        mylauncher,
        mytaglist[s],
        mypromptbox[s],
        layout = awful.widget.layout.horizontal.leftright
    },
    mylayoutbox[s],
    volume_widget,
    mytextclock,
    s == 1 and mysystray or nil,
    mytasklist[s],
    launchbar,
    layout = awful.widget.layout.horizontal.rightleft
}

或者:

s == 1 and launchbar or nil,

但是在重新启动 awesome 之后没有任何反应。配置文件语法正确。有什么想法吗?

原文链接 https://stackoverflow.com/questions/9825954

点赞
stackoverflow用户1364418
stackoverflow用户1364418

你可能想再试一次 - 曾经 widget 在 wiki 上发布时无法使用。无论如何,如果它仍然出现问题,随时可以给我发邮件。

2012-06-18 17:46:38
stackoverflow用户1574824
stackoverflow用户1574824

你正在使用哪个版本的 awesome?如果使用的是 3.5 版本,那么你看的是错误的 wiki 页面。你提供的链接是针对 3.4x 版本的。请尝试使用这个更新的链接:http://awesome.naquadah.org/wiki/Quick_launch_bar_widget/3.5

如果这个链接不工作,你可以尝试使用一个小部件启动器。这是我手头上有的:

firefox_launcher     = awful.widget.launcher({ image = "/home/joshua/.config/awesome/icons/Faenza/apps/48/firefox.png",
                       command = "firefox" })

   right_layout:add(firefox_launcher)
2014-05-05 02:34:44