“浏览”应用程序有何用途?

“浏览”应用程序有何用途?

我在 Ubuntu 17.10 的应用程序概述中看到一个名为“浏览”的程序。

这个应用程序是做什么的?它是 Ubuntu 17.10 的默认应用程序吗?

单击启动器没有任何反应。

附加信息

相信它的启动器是/usr/share/applications/org.laptop.WebActivity.activity.desktop

如果我尝试在命令行上Exec=.desktop文件运行命令,我会收到以下错误:

cd /usr/share/sugar/activities/Browse.activity

sugar-activity webactivity.WebActivity -s

1517966060.546701 ERROR root: SUGAR_VERSION env variable not found
Traceback (most recent call last):
  File "/usr/bin/sugar-activity", line 220, in <module>
    main()
  File "/usr/bin/sugar-activity", line 215, in main
    instance = create_activity_instance(activity_constructor, activity_handle)
  File "/usr/bin/sugar-activity", line 48, in create_activity_instance
    activity = constructor(handle)
  File "/usr/share/sugar/activities/Browse.activity/webactivity.py", line 156, in __init__
    activity.Activity.__init__(self, handle)
  File "/usr/lib/python2.7/dist-packages/sugar3/activity/activity.py", line 422, in __init__
    self._jobject = self._initialize_journal_object()
  File "/usr/lib/python2.7/dist-packages/sugar3/activity/activity.py", line 476, in _initialize_journal_object
    datastore.write(jobject)
  File "/usr/lib/python2.7/dist-packages/sugar3/datastore/datastore.py", line 381, in write
    transfer_ownership)
  File "/usr/lib/python2.7/dist-packages/sugar3/datastore/datastore.py", line 331, in _create_ds_entry
    object_id = _get_data_store().create(dbus.Dictionary(properties), filename,
  File "/usr/lib/python2.7/dist-packages/sugar3/datastore/datastore.py", line 50, in _get_data_store
    DS_DBUS_PATH),
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 241, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 248, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 180, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/dist-packages/dbus/bus.py", line 278, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name org.laptop.sugar.DataStore was not provided by any .service files
1517966060.613335 WARNING root: DSObject was deleted without cleaning up first. Call DSObject.destroy() before disposing it.

这是我的日志文件的输出...

zgrep sugar /var/log/dpkg.log*

/var/log/dpkg.log.1:2018-01-27 00:11:22 install libsugarext0:amd64 <none> 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status half-installed libsugarext0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked libsugarext0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked libsugarext0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 install gir1.2-sugarext-1.0:amd64 <none> 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status half-installed gir1.2-sugarext-1.0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked gir1.2-sugarext-1.0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked gir1.2-sugarext-1.0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 install python-sugar3:all <none> 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status half-installed python-sugar3:all 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked python-sugar3:all 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked python-sugar3:all 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:11:22 install sugar-browse-activity:all <none> 201.2-1
/var/log/dpkg.log.1:2018-01-27 00:11:22 status half-installed sugar-browse-activity:all 201.2-1
/var/log/dpkg.log.1:2018-01-27 00:11:22 status half-installed sugar-browse-activity:all 201.2-1
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked sugar-browse-activity:all 201.2-1
/var/log/dpkg.log.1:2018-01-27 00:11:22 status unpacked sugar-browse-activity:all 201.2-1
/var/log/dpkg.log.1:2018-01-27 00:12:01 configure libsugarext0:amd64 0.110.0-4 <none>
/var/log/dpkg.log.1:2018-01-27 00:12:01 status unpacked libsugarext0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:01 status half-configured libsugarext0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:01 status installed libsugarext0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:02 configure gir1.2-sugarext-1.0:amd64 0.110.0-4 <none>
/var/log/dpkg.log.1:2018-01-27 00:12:02 status unpacked gir1.2-sugarext-1.0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:02 status half-configured gir1.2-sugarext-1.0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:02 status installed gir1.2-sugarext-1.0:amd64 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:18 configure python-sugar3:all 0.110.0-4 <none>
/var/log/dpkg.log.1:2018-01-27 00:12:18 status unpacked python-sugar3:all 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:18 status half-configured python-sugar3:all 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:18 status installed python-sugar3:all 0.110.0-4
/var/log/dpkg.log.1:2018-01-27 00:12:18 configure sugar-browse-activity:all 201.2-1 <none>
/var/log/dpkg.log.1:2018-01-27 00:12:18 status unpacked sugar-browse-activity:all 201.2-1
/var/log/dpkg.log.1:2018-01-27 00:12:18 status half-configured sugar-browse-activity:all 201.2-1
/var/log/dpkg.log.1:2018-01-27 00:12:18 status installed sugar-browse-activity:all 201.2-1

答案1

我正在使用 Impish 21.10,但仍然有这个问题。

经过许多年和许多版本的发布后,我找到了答案......

“浏览”应用程序

“浏览”应用程序的目的是允许 Gimp 显示帮助信息。

解释

当我安装的时候gimp,我也会安装gimp-help-en

  • 软件包gimp-help-en需要软件包gimp-helpbrowser。(请参阅gimp-帮助-en)。

  • 但是gimp-helpbrowser在 Ubuntu 17.10 及更高版本中不可用,因此满足此依赖关系的替代包是www-browser

  • www-browser是一个虚拟包,有 19 个包提供www 浏览器

  • 该计划sugar-browse-activity是这 19 个计划之一。请参阅糖浏览活动。(在我的例子中,apt选择安装sugar-browse-activity而不是其他 19 个应用程序之一,例如firefox,因为我安装了firefoxdeb 包安装gimp-help-en)。

因此,sugar-browse-activity负责安装文件,/usr/share/applications/org.laptop.WebActivity.activity.desktop该文件应该启动“浏览器”应用程序。(查看文件列表)。

解决

我在 Ubuntu 21.10 中测试了 Gimp 2.10.24,但这可能也适用于其他版本的 Ubuntu。

使用帮助只会启动我的默认浏览器(Firefox)并在网络浏览器中显示内容。

www-browser因此,请避免安装“浏览”应用程序,在安装之前安装提供的 19 个软件包之一 gimp-help-en。请参阅糖浏览活动。 注意火狐被列为这些应用程序之一。

Ubuntu 21.10

在 Ubuntu 21.10 中,wslu(对于Windows 10 Linux 子系统)是另一个提供www-browser(参见Impish 的 sugar-browse-activity)。

因此,如果您尝试安装,则有可能您会wslu在 Ubuntu 21.10 系统上安装gimp-help-en

再次强调,避免安装或“浏览”应用程序的解决方案是在安装之前wslu安装 Impish 中提供的 24 个软件包之一 。请参阅www-browsergimp-help-en糖浏览活动。 注意火狐被列为这些应用程序之一。

相关内容