[kupfer] applications: whitelist some GNOME applications by default
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer] applications: whitelist some GNOME applications by default
- Date: Wed, 30 Mar 2011 19:18:45 +0000 (UTC)
commit 8a54c8e02d1f67313d23b76fb212e1aa9c1e6b31
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Mar 30 21:10:26 2011 +0200
applications: whitelist some GNOME applications by default
A few apps (such as evince) are marked to not be shown in the menus
(because they are document viewers, and exposing them as applications
is not document-centric). However for now, we override this and show
them anyway in our program.
kupfer/plugin/applications.py | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/kupfer/plugin/applications.py b/kupfer/plugin/applications.py
index c3af39d..6026552 100644
--- a/kupfer/plugin/applications.py
+++ b/kupfer/plugin/applications.py
@@ -48,8 +48,17 @@ class AppSource (Source, FilesystemWatchMixin):
desktop_type = __kupfer_settings__["desktop_type"]
desktop_app_info_set_desktop_env(desktop_type)
# Add this to the default
- # if you set/reset default handler for folders it is useful
- whitelist = set(["nautilus-folder-handler.desktop"])
+ whitelist = set([
+ # if you set/reset default handler for folders it is useful
+ "nautilus-folder-handler.desktop",
+ # we think that these are useful to show
+ "eog.desktop",
+ "evince.desktop",
+ "gnome-about.desktop",
+ "gstreamer-properties.desktop",
+ "notification-properties.desktop",
+ ])
+
for item in app_info_get_all():
if item.should_show() or item.get_id() in whitelist:
yield AppLeaf(item)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]