XDGDesktop.st
branchjv
changeset 17723 0cd9ce703bab
child 17761 b0e5971141bc
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/XDGDesktop.st	Wed Aug 12 14:49:00 2009 +0100
@@ -0,0 +1,43 @@
+"{ Package: 'stx:libbasic' }"
+
+UnixDesktop subclass:#XDGDesktop
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'System-Desktop'
+!
+
+
+!XDGDesktop class methodsFor:'accessing'!
+
+priority
+
+    ^30
+
+    "Created: / 11-08-2009 / 16:41:45 / Jan Vrany <vranyj1@fel.cvut.cz>"
+! !
+
+!XDGDesktop class methodsFor:'accessing - defaults'!
+
+defaultEditorCommand
+    ^ 'xdg-open %F'
+
+    "Created: / 11-08-2009 / 16:54:29 / Jan Vrany <vranyj1@fel.cvut.cz>"
+! !
+
+!XDGDesktop class methodsFor:'testing'!
+
+isAvailable
+    ^ super isAvailable 
+        and: [ (OperatingSystem pathOfCommand: 
+                    (self defaultEditorCommand upTo:
+                        Character space)) notNil ]
+
+    "Created: / 11-08-2009 / 16:44:34 / Jan Vrany <vranyj1@fel.cvut.cz>"
+! !
+
+!XDGDesktop class methodsFor:'documentation'!
+
+version
+    ^'$Id: XDGDesktop.st 10461 2009-08-12 13:49:00Z vranyj1 $'
+! !