当前位置: 首页 > ds >正文

ubuntu syslog中appindicator报错解决

前言

之前观察syslog中总有报错:

gnome-shell[3325]: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:#012 refreshPropertyOnProxy@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/util.js:43:38#012 _translateNewSignals/<@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:212:18#012 _translateNewSignals@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:211:50#012 _onProxySignal/<@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:228:56#012 _onProxySignal@/usr/share/gnome-shell/extensions/ubuntu-appindicators@ubuntu.com/appIndicator.js:228:38

定位到是 gnome-shell托盘插件报的js错误,系统自带的版本有些古老
虽然对我没有任何影响,当时强迫症患者不想看到任何报错,所有花时间解决了一下

解决

卸载系统自带的托盘插件:

sudo apt purge gnome-shell-extension-appindicator

我的gnome-shell版本是 GNOME Shell 42.9
用的托盘插件版本是v47

clone最新的项目:

git clone https://github.com/ubuntu/gnome-shell-extension-appindicator.git

切换到v47版本

git checkout v47

编译安装:

meson gnome-shell-extension-appindicator /tmp/g-s-appindicators-build
ninja -C /tmp/g-s-appindicators-build install
gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com

可以在拓展程序中看到安装的拓展

在这里插入图片描述

插件安装的目录在:

~/.local/share/gnome-shell/extensions/

正常编译安装完成后,需要重启gnome-shell (否者在拓展中看不到)

重启gnome-shell:

同时按下 Alt + F2 组合键,调出命令窗口。
输入字母 r(小写),按回车执行。
http://www.xdnf.cn/news/17059.html

相关文章:

  • ABP VNext + CloudEvents:事件驱动微服务互操作性
  • 系统学习算法:专题十六 字符串
  • 代码随想录day53图论4
  • XSS-DOM 2
  • MCP革命:Anthropic如何重新定义AI与外部世界的连接标准
  • Docker环境离线安卓安装指南
  • Android 之 WebView与HTML交互
  • 51单片机入门:矩阵键盘与简单密码锁项目
  • 10.Redis 数据类型
  • [硬件电路-147]:模拟电路 - DC/DC电压的三种架构:升压(Boost)、降压(Buck)或升降压(Buck-Boost)
  • 2561. 重排水果
  • 苏州银行招苏新基金研究部研究员
  • TCL --- 列表_part2
  • 【前端:Html】--1.1.基础语法
  • 大模型笔记1——李宏毅《2025机器学习》第一讲
  • python JSONPath 表达式生成器
  • 一维dp-序列类型-最长有效括号
  • 如何在`<link type=“icon“ href=`的`href`中写SVG并使用path标签? 笔记250802
  • Design Compiler:Milkyway库的创建与使用
  • 中之人模式下的虚拟主持人:动捕设备与面捕技术的协同驱动
  • 人工智能与交通:智能出行的变革与未来
  • retro-go 1.45 编译及显示中文
  • C/C++常用字符串函数
  • 具身智能VLA困于“数据泥潭”,人类活动视频数据是否是“破局之钥”?
  • Noob靶机
  • 大模型 + 垂直场景:搜索 / 推荐 / 营销 / 客服领域开发有哪些新玩法?
  • 决策树算法:三大核心流程解析
  • 详解Python标准库之并发执行
  • 【王阳明代数讲义】基本名词解释
  • 机器学习消融实验:方法论演进、跨领域应用与前沿趋势