Gambas Documentation - /comp/gb.desktop/desktop

# Desktop (gb.desktop)

This class allows you to use desktop-agnostic routines based on the freedesktop standards and the `xdg-utils` scripts of the Portland project.

This class reimplements Desktop in gb.qt4.
This class is static.
This class acts like a
Returns a virtual object for managing the Indexth virtual desktop.
read-only
static array.

Static properties | Static methods | Constants
--- | --- | ---

Returns or sets the current active top-level window.
ActiveWindow
Return the base directory relative to which user specific non-essential data files should be stored.
CacheDir
Return the base directory relative to which user specific configuration files should be stored.
ConfigDir
Returns or sets the number or virtual desktops.
Count
Returns or sets the current virtual desktop.
Current
Return the base directory relative to which user specific data files should be stored.
DataDir
A synonymous of the Height property.
H
Return if the desktop has a system tray.
HasSystemTray
Return the height of the usable desktop rectangle displayed on the default monitor.
Height
Return if some network is available.
NetworkAvailable
Returns a virtual object that allows to use the password storage of the current desktop environment.
Passwords
Returns the path of the desktop.
Path
Returns the desktop screen resolution in DPI.
Resolution
Returns the X11 handle of the root window.
RootWindow
Return the base directory relative to which user-specific non-essential runtime files and other file objects (such as sockets, named pipes, ...) should be stored.
RuntimeDir
Returns half of the height of the default desktop font in pixels.
Scale
Manages the screen saver.
ScreenSaver
Returns or sets if the "show desktop" flag is set.
Showing
Returns a string describing the current desktop.
Type
A synonymous of the Width property.
W
Return the width of the usable desktop rectangle displayed on the default monitor.
Width
Returns a virtual object that represents the list of all top-level windows.
Windows
Return the left coordinate of the usable desktop rectangle displayed on the default monitor.
X
Return the top coordinate of the usable desktop rectangle displayed on the default monitor.
Y

Find all X11 top-level window that match the specified criteria.
FindWindow
Return the desktop directory specified in its Type argument.
GetDirectory
Return the icon associated with a specific file.
GetFileIcon
Opens a file or URL in the user's preferred application.
Open
Opens a terminal emulator.
OpenTerminal
Run the specified Command as root, by using the desktop-specific tool if possible.
RunAsRoot
Return a screenshot of the desktop as a picture object.
Screenshot
Send fake keyboard events to the window having the focus.
SendKeys
Sends a mail by using your graphical mail client.
SendMail

Returns the charset used by the graphical interface for displaying text.
Charset