#Desktop

C
ScreenSaver
R
_Desktop_ScreenSaver

Count
P
i

Current
P
i

Windows
R
_Desktop_Windows

ActiveWindow
P
i

RootWindow
R
i

Showing
P
b

Passwords
R
_Desktop_Passwords

Path
R
s

DataDir
R
s

ConfigDir
R
s

CacheDir
R
s

RuntimeDir
R
s

NetworkAvailable
R
b

RemoteDisplay
R
b

UsePortal
P
b

'@{since 3.19}
'
'Return or set if the [desktop portal](https://flatpak.github.io/xdg-desktop-portal/docs/introduction.html) must be used.
'
'<s>By default the desktop portal is used. Set this property to FALSE if don't want to use it for any reason.</s>
'[[ warning
'@{since 3.21}
'By default, the desktop portal is not used, as its implementation is desktop-dependent, and is often not reliable.
']]
'
'The following methods can use the desktop portal:
'- [../open]
'- [../pickcolor]
'- [../screenshot]
'- [../sendmail]
SendMail
M

(To)String[];[(Cc)String[];(Bcc)String[];(Subject)s(Body)s(Attachments)v]
Open
M

(Url)s[(Wait)b]
FindWindow
M
Integer[]
[(Title)s(Application)s(Role)s]
SendKeys
M

(Keys)s
OpenTerminal
M

[(Dir)s]
_get
M
_DesktopVirtual
(Index)i
RunAs
M

(UserName)s(Command)s[(Wait)b]
RunAsRoot
M

(Command)s[(Wait)b]
GetFileIcon
M
Picture
(Path)s(Size)i[(Preview)b]
GetDirectory
M
s
(Type)s
Screenshot
M
Picture
[(X)i(Y)i(Width)i(Height)i]
'--> /comp/gb.qt4/desktop/screenshot
PickColor
M
i

'@{since 3.19}
'
'Pick a color on the desktop.
'
'Return a picked color, or [Color.Transparent](/comp/gb.image/color/transparent) if the user cancels the action.
#DesktopAction

C
Key
p
s

'Get or set the keyName that will be it's Action name
Name
p
s

'Get or set the Name (Text) that will display in the menu.
Exec
p
s

'Get or set the command to run on selection
Properties
r
String[]

'List all available Property names for items in the Action including Name and Exec
_new
m

[(Key)s]
Delete
m


'Remove the action
Exist
m
b
(PropertyName)s
'Check if a property name exists (case insensitive, will not use language filter)
_put
m

(Value)s(PropertyName)s
'Set a property value (case insensitive, will not use language filter)
_get
m
s
(PropertyName)s
'Get a property value (case insensitive, will not use language filter)
_unknown
m
v
.
'Get or set ANY property by using an unknown name
_property
m
b
.
:Change
:

(Key)s(Value)s
#DesktopFile

C
Path
r
s

Name
p
s

GenericName
p
s

Comment
p
s

ProgramName
r
s

Exec
p
s

Terminal
p
b

Type
p
s

Hidden
p
b

NoDisplay
p
b

Icon
p
s

MimeTypes
p
String[]

Categories
p
String[]

WorkingDir
p
s

Actions
p
String[]

AlternativeActions
r
Collection

DesktopActions
r
_DesktopFile_Actions

'An array of the files altenative actions.<p>
'This property modifies the \[Desktop Action \<Key\>\] definitions and has no effect on the [/comp/gb.desktop/desktopfile/actions](Actions) property
_Data
r
Collection

'A hidden pointer to the raw data that this class uses as a Collection. (use at your own risk)
_init
M


_compare
m
i
(hDesktopFile)DesktopFile;
_new
m

(Path)s
_exit
M


_get
M
DesktopFile
(Program)s
Get_Actions_Exec
m
s
(sAction)s
Get_Actions_Name
m
s
(sAction)s
Exist
m
b

GetIcon
m
Image
[(Size)i]
Save
m

[(Path)s]
FindExecutable
M
s
(Name)s
FindMime
M
DesktopFile[]
(MimeType)s
FromMime
M
DesktopFile[]
(MimeType)s
Run
m
Process
(sArgs)s[(RunAsRoot)b]
RunExec
M
Process
(sExec)s(sArgs)s[(RunAsRoot)b]
_Refresh
M


_Langs
M
String[]

#DesktopMime

C
_$iWeight
v
i

_$sType
v
s

_$sPattern
v
s

_$aMagic
v
String[]

_$sGenericIcon
v
s

_$bIsSuffix
v
b

PreciseSearch
P
b

Weight
r
i

Type
r
s

Pattern
r
s

Magic
r
String[]

GenericIcon
r
s

IsSuffix
r
b

_compare
m
i
(Other)DesktopMime;
GetIcon
m
Image
[(Size)i]
GetApplications
m
DesktopFile[]

Refresh
M


Exist
M
b
(Type)s
FromFile
M
DesktopMime
(Path)s
_get
M
DesktopMime
(Type)s
_next
M
DesktopMime

_exit
M


GetComment
m
s
[(Common)b]
#_DesktopFile_Actions

C
Count
r
i

'How many \[Desktop Action \<Key\>\] definitions are in the file<br>
Actions
r
String[]

'List all \[Desktop Action <Key>\] Keys found in the file<br>
'
'This is different to [/comp/gb.desktop/desktopfile/actions] (DesktopFile.Actions) that defines what actions are visible and their order.
'
'This is a list of ALL the \[Desktop Action \<Key\>\] definitions as found in the file that may or may not be listed in DesktopFile.Actions.
'Their order is as they appear in the file and make no difference to the menu order.
_next
m
DesktopAction

_get
m
DesktopAction
(Key)s
'Get a DesktopAction by Key name.
Add
m

(Key)s(Name)s(Exec)s
'Add a new [Desktop Action <Key>] definition (Does not effect DesktopFile.Actions)
DesktopAction_Change
m

(Name)s(Value)s
Remove
m

(Key)s
'Remove the DesktopAction by Key
Exist
m
b
(Key)s
'Check if a Desktop Action definition exists.
:_Dummy
:


#_Desktop_Passwords

CA
Enabled
r
b

_get
m
s
(Key)s
_put
m

(Value)s(Key)s
#_Desktop_ScreenSaver

CA
Enabled
R
b

Suspend
M

(Window)Window;
Resume
M

(Window)Window;
Activate
M


Lock
M


Reset
M


