首页
/ wingpanel-indicator-ayatana 的安装和配置教程

wingpanel-indicator-ayatana 的安装和配置教程

2025-05-18 17:03:59作者:虞亚竹Luna

1. 项目基础介绍

wingpanel-indicator-ayatana 是一个开源项目,其主要目的是为了在 Elementary OS 的 wingpanel 上保持与 Ubuntu/Unity 指示器的兼容性。这个插件能够让使用者在面板上显示像天气预报、颜色校正、社交网络等应用程序的指示器。

该项目主要使用的编程语言是 Vala,同时也使用了 Meson 作为构建系统。

2. 项目使用的关键技术和框架

  • Vala:一种面向对象的编程语言,旨在提供 C# 和 Java 的特性,同时保持与 C 的兼容性。
  • Granite:Elementary OS 的一个框架,提供了一组用于构建应用程序的工具和库。
  • Indicator API:用于创建系统指示器的 API,由 Ubuntu 提供并被 Elementary OS 采用。

3. 项目安装和配置的准备工作

在开始安装 wingpanel-indicator-ayatana 之前,您需要确保系统中已经安装了以下依赖:

sudo apt-get install libglib2.0-dev libgranite-dev libindicator3-dev

对于不同的 Elementary OS 版本,可能还需要以下依赖:

  • Hera (5) 及之前版本
    sudo apt-get install libwingpanel-2.0-dev
    
  • Odin (6) 版本
    sudo apt-get install libwingpanel-dev indicator-application
    

安装步骤

3.1. 简单安装(用户)

  1. 下载对应版本的 deb 文件(根据您的 Elementary OS 版本选择 com.github.*amd64.debcom.github.*odin.deb)。
  2. 打开终端,使用以下命令安装 deb 文件:
    sudo dpkg -i ./com.github.lafydev.wingpanel*.deb
    

3.2. Pantheon 参数设置

为了让 wingpanel-indicator-ayatana 正常工作,需要将 Pantheon 添加到支持指示器的桌面环境中:

  • 使用自动启动: 在系统设置的自动启动应用程序中添加 /usr/lib/x86_64-linux-gnu/indicator-application/indicator-application-service

  • 使用终端

    1. 打开终端,运行以下命令:

      mkdir -p ~/.config/autostart
      cp /etc/xdg/autostart/indicator-application.desktop ~/.config/autostart/
      sed -i 's/^OnlyShowIn.*/OnlyShowIn=Unity;GNOME;Pantheon;/' ~/.config/autostart/indicator-application.desktop
      
    2. 编辑 /etc/xdg/autostart/indicator-application.desktop 文件,找到 OnlyShowIn= 参数,在末尾添加 Pantheon

    3. 保存更改后重启。

3.3. 编译和安装(开发者)

  1. 下载最新版本的发行包(zip),并解压文件。
  2. 确保安装了所有依赖,包括编译所需的依赖:
    sudo apt-get install valac gcc meson
    
  3. 在解压的文件夹中打开终端,使用 Meson 构建,然后使用 ninja 安装:
    meson build --prefix=/usr
    cd build
    ninja
    sudo ninja install
    
  4. 按照简单安装的步骤 2 设置 Pantheon 参数。
  5. 重启或重新启动 wingpanel。

卸载

要卸载 wingpanel-indicator-ayatana,打开终端,在构建文件夹中运行以下命令:

sudo ninja uninstall

然后重启或重新启动 wingpanel。

对于 Hera (5) 及之前版本,使用:

killall wingpanel

对于 Odin (6) 版本,使用:

killall io.elementary.wingpanel
登录后查看全文

项目优选

收起
kernelkernel
openEuler内核是openEuler操作系统的核心,既是系统性能与稳定性的基石,也是连接处理器、设备与服务的桥梁。
C
471
465
kernelkernel
deepin linux kernel
C
32
16
atomcodeatomcode
Claude Code 的开源替代方案。连接任意大模型,编辑代码,运行命令,自动验证 — 全自动执行。用 Rust 构建,极致性能。 | An open-source alternative to Claude Code. Connect any LLM, edit code, run commands, and verify changes — autonomously. Built in Rust for speed. Get Started
Rust
2.09 K
218
ops-nnops-nn
本项目是CANN提供的神经网络类计算算子库,实现网络在NPU上加速计算。
C++
700
1.4 K
docsdocs
暂无描述
Dockerfile
780
5.08 K
pytorchpytorch
Ascend Extension for PyTorch
Python
758
968
flutter_flutterflutter_flutter
本仓库是 Flutter SDK 与 Flutter Engine 的 OpenHarmony 适配版本,由 CPF-Flutter 团队维护。开发者可使用熟悉的 Flutter 技术栈开发 OpenHarmony 应用,3.35.7 及以后的适配版本可基于本仓库源码构建支持 OpenHarmony 的 Flutter Engine。
Dart
1.04 K
271
ops-transformerops-transformer
本项目是CANN提供的transformer类大模型算子库,实现网络在NPU上加速计算。
C++
880
2.03 K
mindquantummindquantum
MindQuantum is a general software library supporting the development of applications for quantum computation.
Python
183
111
openHiTLSopenHiTLS
旨在打造算法先进、性能卓越、高效敏捷、安全可靠的密码套件,通过轻量级、可剪裁的软件技术架构满足各行业不同场景的多样化要求,让密码技术应用更简单,同时探索后量子等先进算法创新实践,构建密码前沿技术底座!
C
1.11 K
682