XDGDesktop.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Mon, 26 Apr 2010 19:26:38 +0100
branchjv
changeset 17761 b0e5971141bc
parent 17723 0cd9ce703bab
child 17883 209190914636
permissions -rw-r--r--
Added Lookup and BuiltinLookup classes

"
 COPYRIGHT (c) 2006 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
"{ Package: 'stx:libbasic' }"

UnixDesktop subclass:#XDGDesktop
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'System-Desktop'
!

!XDGDesktop class methodsFor:'documentation'!

copyright
"
 COPYRIGHT (c) 2006 by eXept Software AG
              All Rights Reserved

 This software is furnished under a license and may be used
 only in accordance with the terms of that license and with the
 inclusion of the above copyright notice.   This software may not
 be provided or otherwise made available to, or used by, any
 other person.  No title to or ownership of the software is
 hereby transferred.
"
! !

!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 10517 2010-04-26 18:26:38Z vranyj1 $'
!

version_SVN
    ^ '$Id: XDGDesktop.st 10517 2010-04-26 18:26:38Z vranyj1 $'
! !