Gnome 3.8 天气应用程序权限问题

Gnome 3.8 天气应用程序权限问题

我安装了天气应用并添加了城市。但是,天气信息始终未显示。我能看到以下错误信息。

Gio.IOErrorEnum: Error opening file '/usr/share/gnome-shell/extensions/[email protected]/weather-prefs.log': Permission denied

Stack trace:
  WeatherPrefsWidglet<.status@/usr/share/gnome-shell/extensions/[email protected]/prefs.js:90
  wrapper@/usr/share/gjs-1.0/lang.js:213
  WeatherPrefsWidget<.initWindow@/usr/share/gnome-shell/extensions/[email protected]/prefs.js:104
  wrapper@/usr/share/gjs-1.0/lang.js:213
  WeatherPrefsWidget<._init@/usr/share/gnome-shell/extensions/[email protected]/prefs.js:71
  wrapper@/usr/share/gjs-1.0/lang.js:213
  buildPrefsWidget@/usr/share/gnome-shell/extensions/[email protected]/prefs.js:653
  Application<._selectExtension@/usr/share/gnome-shell/js/extensionPrefs/main.js:100
  wrapper@/usr/share/gjs-1.0/lang.js:213
  Application<._extensionSelected@/usr/share/gnome-shell/js/extensionPrefs/main.js:119
  wrapper@/usr/share/gjs-1.0/lang.js:213
  Application<._selectExtension@/usr/share/gnome-shell/js/extensionPrefs/main.js:110
  wrapper@/usr/share/gjs-1.0/lang.js:213
  Application<._extensionsLoaded@/usr/share/gnome-shell/js/extensionPrefs/main.js:219
  wrapper@/usr/share/gjs-1.0/lang.js:213
  _emit@/usr/share/gjs-1.0/signals.js:124
  ExtensionFinder<._extensionsLoaded@/usr/share/gnome-shell/js/misc/extensionUtils.js:178
  wrapper@/usr/share/gjs-1.0/lang.js:213
  done@/usr/share/gnome-shell/js/misc/fileUtils.js:33
  @/usr/share/gnome-shell/js/misc/fileUtils.js:51
  onNextFileComplete@/usr/share/gnome-shell/js/misc/fileUtils.js:21
  main@/usr/share/gnome-shell/js/extensionPrefs/main.js:276
  @<command line>:1

任何指导将不胜感激。

答案1

在终端中以 root 身份打开 Nautilus(顺便说一下,这是“文件”的正确名称)或任何文件管理器gksudo nautilus(如果您愿意,可以用不同的 FM 替换 nautilus)。然后,导航到 /usr/share 并右键单击 gnome-shell,转到权限,并确保您有编辑它的权限。试试看

相关内容