13394
|
1 |
"
|
|
2 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
3 |
All Rights Reserved
|
|
4 |
|
|
5 |
This software is furnished under a license and may be used
|
|
6 |
only in accordance with the terms of that license and with the
|
|
7 |
inclusion of the above copyright notice. This software may not
|
|
8 |
be provided or otherwise made available to, or used by, any
|
|
9 |
other person. No title to or ownership of the software is
|
|
10 |
hereby transferred.
|
|
11 |
"
|
|
12 |
"{ Package: 'stx:libbasic' }"
|
|
13 |
|
|
14 |
UnixDesktop subclass:#XDGDesktop
|
|
15 |
instanceVariableNames:''
|
|
16 |
classVariableNames:''
|
|
17 |
poolDictionaries:''
|
|
18 |
category:'System-Desktop'
|
|
19 |
!
|
|
20 |
|
|
21 |
!XDGDesktop class methodsFor:'documentation'!
|
|
22 |
|
|
23 |
copyright
|
|
24 |
"
|
|
25 |
COPYRIGHT (c) 2006 by eXept Software AG
|
|
26 |
All Rights Reserved
|
|
27 |
|
|
28 |
This software is furnished under a license and may be used
|
|
29 |
only in accordance with the terms of that license and with the
|
|
30 |
inclusion of the above copyright notice. This software may not
|
|
31 |
be provided or otherwise made available to, or used by, any
|
|
32 |
other person. No title to or ownership of the software is
|
|
33 |
hereby transferred.
|
|
34 |
"
|
|
35 |
! !
|
|
36 |
|
|
37 |
!XDGDesktop class methodsFor:'accessing'!
|
|
38 |
|
|
39 |
priority
|
|
40 |
|
|
41 |
^30
|
|
42 |
|
|
43 |
"Created: / 11-08-2009 / 16:41:45 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
44 |
! !
|
|
45 |
|
|
46 |
!XDGDesktop class methodsFor:'accessing - defaults'!
|
|
47 |
|
|
48 |
defaultEditorCommand
|
|
49 |
^ 'xdg-open %F'
|
|
50 |
|
|
51 |
"Created: / 11-08-2009 / 16:54:29 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
52 |
! !
|
|
53 |
|
|
54 |
!XDGDesktop class methodsFor:'testing'!
|
|
55 |
|
|
56 |
isAvailable
|
|
57 |
^ super isAvailable
|
|
58 |
and: [ (OperatingSystem pathOfCommand:
|
|
59 |
(self defaultEditorCommand upTo:
|
|
60 |
Character space)) notNil ]
|
|
61 |
|
|
62 |
"Created: / 11-08-2009 / 16:44:34 / Jan Vrany <vranyj1@fel.cvut.cz>"
|
|
63 |
! !
|
|
64 |
|
|
65 |
!XDGDesktop class methodsFor:'documentation'!
|
|
66 |
|
|
67 |
version_CVS
|
|
68 |
^ '$Header: /cvs/stx/stx/libbasic/XDGDesktop.st,v 1.1 2011-06-28 10:09:48 vrany Exp $'
|
|
69 |
!
|
|
70 |
|
|
71 |
version_SVN
|
|
72 |
^ ' Id: XDGDesktop.st 10517 2010-04-26 18:26:38Z vranyj1 '
|
|
73 |
! !
|