The patch is for xdg-utils project. It makes various xdg-* scripts detect
if enlightenment is running and use enlightenment_open in xdg-open.
How to test the patch:
1. Clone xdg-utils repository from here:
git://anongit.freedesktop.org/xdg/xdg-utils
2. Apply the patch.
3. Run ./configure
4! Update scripts from scripts/ directory with:
$ cd scripts && make scripts
Without this step you won't get any changes for the xdg-* scripts!
5. Run make install
Please test and give a response. If the patch is good i'll send it to
xdg-utils project.
-- Igor
>From 31b728ae740f80a881641a094a13cddf87bac7d2 Mon Sep 17 00:00:00 2001
From: Igor Murzov <e-m...@date.by>
Date: Fri, 12 Jul 2013 04:24:56 +0400
Subject: [PATCH] xdg-open: Detect Enlightenment and make use of it
---
ChangeLog | 3 +++
scripts/xdg-open.in | 15 +++++++++++++++
scripts/xdg-utils-common.in | 4 ++++
3 files changed, 22 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 9e4217b..943c141 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
=== xdg-utils 1.1.x ===
+2013-07-13 Igor Murzov <e-m...@date.by>
+ * xdg-open: detect Enlightenment and make use of it
+
2012-10-08 Rex Dieter <rdie...@fedoraproject.org>
* xdg-mime does not search mimeinfo.cache (BR31629)
diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in
index 0934142..87e161d 100644
--- a/scripts/xdg-open.in
+++ b/scripts/xdg-open.in
@@ -114,6 +114,17 @@ open_xfce()
fi
}
+open_enlightenment()
+{
+ enlightenment_open "$1"
+
+ if [ $? -eq 0 ]; then
+ exit_success
+ else
+ exit_failure_operation_failed
+ fi
+}
+
#-----------------------------------------
# Recursively search .desktop file
@@ -347,6 +358,10 @@ case "$DE" in
open_lxde "$url"
;;
+ enlightenment)
+ open_enlightenment "$url"
+ ;;
+
generic)
open_generic "$url"
;;
diff --git a/scripts/xdg-utils-common.in b/scripts/xdg-utils-common.in
index 171d1e7..d20d4ef 100644
--- a/scripts/xdg-utils-common.in
+++ b/scripts/xdg-utils-common.in
@@ -256,6 +256,9 @@ detectDE()
if [ -n "${XDG_CURRENT_DESKTOP}" ]; then
case "${XDG_CURRENT_DESKTOP}" in
+ ENLIGHTENMENT)
+ DE=enlightenment;
+ ;;
GNOME)
DE=gnome;
;;
@@ -282,6 +285,7 @@ detectDE()
elif `dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;
elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$' >/dev/null 2>&1; then DE=xfce;
elif xprop -root 2> /dev/null | grep -i '^xfce_desktop_window' >/dev/null 2>&1; then DE=xfce
+ elif echo $DESKTOP | grep -q '^Enlightenment'; then DE=enlightenment;
fi
fi
--
1.8.3
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel