glibmm 2.82.0
Public Member Functions | Static Public Member Functions | Related Symbols | List of all members
Gio::DesktopAppInfo Class Reference

DesktopAppInfo is an implementation of AppInfo based on desktop files. More...

#include <giomm/desktopappinfo.h>

Inheritance diagram for Gio::DesktopAppInfo:
Inheritance graph
[legend]

Public Member Functions

 DesktopAppInfo (DesktopAppInfo &&src) noexcept
 
DesktopAppInfooperator= (DesktopAppInfo &&src) noexcept
 
 ~DesktopAppInfo () noexcept override
 
GDesktopAppInfogobj ()
 Provides access to the underlying C GObject.
 
const GDesktopAppInfogobj () const
 Provides access to the underlying C GObject.
 
GDesktopAppInfogobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
 
std::string get_filename () const
 When info was created from a known filename, return it.
 
bool is_hidden () const
 A desktop file is hidden if the Hidden key in it is set to True.
 
std::vector< Glib::ustringget_keywords () const
 Gets the keywords from the desktop file.
 
std::string get_startup_wm_class () const
 Retrieves the StartupWMClass field from info.
 
bool get_nodisplay () const
 Gets the value of the No::Display key which helps determine if the application info should be shown in menus.
 
bool get_show_in (const std::string &desktop_env) const
 Checks if the application info should be shown in menus that list available applications for a specific name of the desktop, based on the OnlyShowIn and NotShowIn keys.
 
std::string get_generic_name () const
 Gets the generic name from the desktop file.
 
std::string get_categories () const
 Gets the categories from the desktop file.
 
bool has_key (const Glib::ustring & key) const
 Returns whether key exists in the Desktop Entry group of the keyfile backing info.
 
Glib::ustring get_string (const Glib::ustring & key)
 Looks up a string value in the keyfile backing info.
 
Glib::ustring get_locale_string (const Glib::ustring & key)
 Looks up a localized string value in the keyfile backing info translated to the current locale.
 
bool get_boolean (const Glib::ustring & key) const
 Looks up a boolean value in the keyfile backing info.
 
std::vector< Glib::ustringlist_actions () const
 Returns the list of ‘additional application actions’ supported on the desktop file, as per the desktop file specification.
 
void launch_action (const Glib::ustring &action_name, const Glib::RefPtr< AppLaunchContext > &launch_context)
 Activates the named application action.
 
void launch_action (const Glib::ustring &action_name)
 A launch_action() convenience overload.
 
Glib::ustring get_action_name (const Glib::ustring &action_name) const
 Gets the user-visible display name of the ‘additional application actions’ specified by action_name.
 
- Public Member Functions inherited from Glib::Object
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&src) noexcept
 
Objectoperator= (Object &&src) noexcept
 
voidget_data (const QueryQuark & key)
 
void set_data (const Quark & key, void *data)
 
void set_data_with_c_callback (const Quark & key, void *data, GDestroyNotify notify)
 
void set_data (const Quark & key, void *data, DestroyNotify notify)
 Prefer set_data_with_c_callback() with a callback with C linkage.
 
void remove_data (const QueryQuark &quark)
 
voidsteal_data (const QueryQuark &quark)
 
- Public Member Functions inherited from Glib::ObjectBase
 ObjectBase (const ObjectBase &)=delete
 
ObjectBaseoperator= (const ObjectBase &)=delete
 
void set_property_value (const Glib::ustring & property_name, const Glib::ValueBase & value)
 You probably want to use a specific property_*() accessor method instead.
 
void get_property_value (const Glib::ustring & property_name, Glib::ValueBase & value) const
 You probably want to use a specific property_*() accessor method instead.
 
template<class PropertyType >
void set_property (const Glib::ustring & property_name, const PropertyType & value)
 You probably want to use a specific property_*() accessor method instead.
 
template<class PropertyType >
void get_property (const Glib::ustring & property_name, PropertyType & value) const
 You probably want to use a specific property_*() accessor method instead.
 
template<class PropertyType >
PropertyType get_property (const Glib::ustring & property_name) const
 You probably want to use a specific property_*() accessor method instead.
 
sigc::connection connect_property_changed (const Glib::ustring & property_name, const sigc::slot< void()> &slot)
 You can use the signal_changed() signal of the property proxy instead.
 
sigc::connection connect_property_changed (const Glib::ustring & property_name, sigc::slot< void()> &&slot)
 You can use the signal_changed() signal of the property proxy instead.
 
void freeze_notify ()
 Increases the freeze count on object.
 
void thaw_notify ()
 Reverts the effect of a previous call to freeze_notify().
 
virtual void reference () const
 Increment the reference count for this object.
 
virtual void unreference () const
 Decrement the reference count for this object.
 
GObject * gobj ()
 Provides access to the underlying C GObject.
 
const GObject * gobj () const
 Provides access to the underlying C GObject.
 
GObject * gobj_copy () const
 Give a ref-ed copy to someone. Use for direct struct access.
 
- Public Member Functions inherited from Gio::AppInfo
 AppInfo (AppInfo &&src) noexcept
 
AppInfooperator= (AppInfo &&src) noexcept
 
 ~AppInfo () noexcept override
 
GAppInfogobj ()
 Provides access to the underlying C GObject.
 
const GAppInfogobj () const
 Provides access to the underlying C GObject.
 
Glib::RefPtr< AppInfocreate_duplicate () const
 Creates a duplicate of this AppInfo.
 
bool equal (const Glib::RefPtr< AppInfo > &other) const
 Checks if two AppInfos are equal.
 
std::string get_id () const
 Gets the ID of an application.
 
std::string get_name () const
 Gets the installed name of the application.
 
std::string get_display_name () const
 Gets the display name of the application.
 
std::string get_description () const
 Gets a human-readable description of an installed application.
 
std::string get_executable () const
 Gets the executable’s name for the installed application.
 
std::string get_commandline () const
 Gets the commandline with which the application will be started.
 
Glib::RefPtr< Iconget_icon ()
 Gets the icon for the application.
 
const Glib::RefPtr< const Iconget_icon () const
 Gets the icon for the application.
 
bool launch (const Glib::RefPtr< Gio::File > & file, const Glib::RefPtr< AppLaunchContext > &context)
 Launches the application.
 
bool launch (const Glib::RefPtr< Gio::File > & file)
 Launches the application.
 
bool launch (const std::vector< Glib::RefPtr< Gio::File > > &files, const Glib::RefPtr< AppLaunchContext > &context)
 Launches the application.
 
bool launch (const std::vector< Glib::RefPtr< Gio::File > > &files)
 A launch() convenience overload.
 
bool supports_uris () const
 Checks if the application supports reading files and directories from URIs.
 
bool supports_files () const
 Checks if the application accepts files as arguments.
 
bool launch_uris (const std::vector< std::string > &uris, const Glib::RefPtr< AppLaunchContext > &context)
 Launches the application.
 
bool launch_uris (const std::vector< std::string > &uris)
 A launch_uris() convenience overload.
 
bool launch_uri (const std::string &uri, const Glib::RefPtr< AppLaunchContext > &context)
 Launches the application.
 
bool launch_uri (const std::string &uris)
 A launch_uri() convenience overload.
 
void launch_uris_async (const std::vector< std::string > &uris, const Glib::RefPtr< AppLaunchContext > &context, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable={})
 Async version of Gio::AppInfo::launch_uris().
 
void launch_uris_async (const std::vector< std::string > &uris, const Glib::RefPtr< AppLaunchContext > &context, const Glib::RefPtr< Cancellable > &cancellable={})
 A launch_uris_async() convenience overload.
 
bool launch_uris_finish (const Glib::RefPtr< AsyncResult > &result)
 Finishes a Gio::AppInfo::launch_uris_async() operation.
 
bool should_show () const
 Checks if the application info should be shown in menus that list available applications.
 
bool can_delete () const
 Obtains the information whether the Gio::AppInfo can be deleted.
 
bool do_delete ()
 Tries to delete a Gio::AppInfo.
 
bool set_as_default_for_type (const std::string &content_type)
 Sets the application as the default handler for a given type.
 
bool set_as_default_for_extension (const std::string &extension)
 Sets the application as the default handler for the given file extension.
 
bool add_supports_type (const std::string &content_type)
 Adds a content type to the application information to indicate the application is capable of opening files with the given content type.
 
bool can_remove_supports_type () const
 Checks if a supported content type can be removed from an application.
 
bool remove_supports_type (const std::string &content_type)
 Removes a supported type from an application, if possible.
 
std::vector< Glib::ustringget_supported_types () const
 Retrieves the list of content types that app_info claims to support.
 
bool set_as_last_used_for_type (const std::string &content_type)
 Sets the application as the last used application for a given type.
 
- Public Member Functions inherited from Glib::Interface
 Interface ()
 A Default constructor.
 
 Interface (Interface &&src) noexcept
 
Interfaceoperator= (Interface &&src) noexcept
 
 Interface (const Glib::Interface_Class &interface_class)
 Called by constructors of derived classes.
 
 Interface (GObject *castitem)
 Called by constructors of derived classes.
 
 ~Interface () noexcept override
 
 Interface (const Interface &)=delete
 
Interfaceoperator= (const Interface &)=delete
 
GObject * gobj ()
 
const GObject * gobj () const
 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system.
 
static Glib::RefPtr< DesktopAppInfocreate (const std::string &desktop_id)
 Creates a new Gio::DesktopAppInfo based on a desktop file ID.
 
static Glib::RefPtr< DesktopAppInfocreate_from_keyfile (const Glib::RefPtr< Glib::KeyFile > &key_file)
 Creates a new Gio::DesktopAppInfo.
 
static Glib::RefPtr< DesktopAppInfocreate_from_filename (const std::string &filename)
 Creates a new Gio::DesktopAppInfo.
 
- Static Public Member Functions inherited from Gio::AppInfo
static void add_interface (GType gtype_implementer)
 
static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system.
 
static Glib::RefPtr< AppInfocreate_from_commandline (const std::string &commandline, const std::string &application_name, CreateFlags flags)
 
static std::vector< Glib::RefPtr< AppInfo > > get_all ()
 Gets a list of all of the applications currently registered on this system.
 
static std::vector< Glib::RefPtr< AppInfo > > get_all_for_type (const std::string &content_type)
 Gets a list of all Gio::AppInfos for a given content type, including the recommended and fallback Gio::AppInfos.
 
static std::vector< Glib::RefPtr< AppInfo > > get_recommended_for_type (const std::string &content_type)
 Gets a list of recommended Gio::AppInfos for a given content type, i.e. those applications which claim to support the given content type exactly, and not by MIME type subclassing.
 
static std::vector< Glib::RefPtr< AppInfo > > get_fallback_for_type (const std::string &content_type)
 Gets a list of fallback Gio::AppInfos for a given content type, i.e. those applications which claim to support the given content type by MIME type subclassing and not directly.
 
static Glib::RefPtr< AppInfoget_default_for_type (const std::string &content_type, bool must_support_uris=true)
 Gets the default Gio::AppInfo for a given content type.
 
static void get_default_for_type_async (const std::string &content_type, bool must_support_uris, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable={})
 Asynchronously gets the default Gio::AppInfo for a given content type.
 
static void get_default_for_type_async (const std::string &content_type, bool must_support_uris, const Glib::RefPtr< Cancellable > &cancellable={})
 A get_default_for_type_async() convenience overload.
 
static Glib::RefPtr< AppInfoget_default_for_type_finish (const Glib::RefPtr< AsyncResult > &result)
 Finishes a default Gio::AppInfo lookup started by gio_app_info_get_default_for_type_async().
 
static Glib::RefPtr< AppInfoget_default_for_uri_scheme (const std::string &uri_scheme)
 Gets the default application for handling URIs with the given URI scheme.
 
static void get_default_for_uri_scheme_async (const std::string &content_type, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable={})
 Asynchronously gets the default application for handling URIs with the given URI scheme.
 
static void get_default_for_uri_scheme_async (const std::string &content_type, const Glib::RefPtr< Cancellable > &cancellable={})
 A get_default_for_uri_scheme_async() convenience overload.
 
static Glib::RefPtr< AppInfoget_default_for_uri_scheme_finish (const Glib::RefPtr< AsyncResult > &result)
 Finishes a default Gio::AppInfo lookup started by gio_app_info_get_default_for_uri_scheme_async().
 
static void reset_type_associations (const std::string &content_type)
 Removes all changes to the type associations done by Gio::AppInfo::set_as_default_for_type(), Gio::AppInfo::set_as_default_for_extension(), Gio::AppInfo::add_supports_type() or Gio::AppInfo::remove_supports_type().
 
static bool launch_default_for_uri (const std::string &uri, const Glib::RefPtr< AppLaunchContext > &context)
 Utility function that launches the default application registered to handle the specified uri.
 
static bool launch_default_for_uri (const std::string &uri)
 A launch_default_for_uri() convenience overload.
 
static void launch_default_for_uri_async (const std::string &uri, const Glib::RefPtr< AppLaunchContext > &context, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)
 Async version of gio_app_info_launch_default_for_uri().
 
static void launch_default_for_uri_async (const std::string &uri, const Glib::RefPtr< AppLaunchContext > &context, const SlotAsyncReady &slot)
 A launch_default_for_uri_async() convenience overload.
 
static void launch_default_for_uri_async (const std::string &uri, const Glib::RefPtr< AppLaunchContext > &context, const Glib::RefPtr< Cancellable > &cancellable)
 A launch_default_for_uri_async() convenience overload.
 
static void launch_default_for_uri_async (const std::string &uri, const Glib::RefPtr< AppLaunchContext > &context)
 A launch_default_for_uri_async() convenience overload.
 
static void launch_default_for_uri_async (const std::string &uri, const SlotAsyncReady &slot, const Glib::RefPtr< Cancellable > &cancellable)
 A launch_default_for_uri_async() convenience overload.
 
static void launch_default_for_uri_async (const std::string &uri, const SlotAsyncReady &slot)
 A launch_default_for_uri_async() convenience overload.
 
static void launch_default_for_uri_async (const std::string &uri, const Glib::RefPtr< Cancellable > &cancellable)
 A launch_default_for_uri_async() convenience overload.
 
static void launch_default_for_uri_async (const std::string &uri)
 A launch_default_for_uri_async() convenience overload.
 
static bool launch_default_for_uri_finish (const Glib::RefPtr< AsyncResult > &result)
 Finishes an asynchronous launch-default-for-uri operation.
 

Related Symbols

(Note that these are not member symbols.)

Glib::RefPtr< Gio::DesktopAppInfowrap (GDesktopAppInfo *object, bool take_copy=false)
 A Glib::wrap() method for this object.
 

Additional Inherited Members

- Public Types inherited from Glib::Object
using DestroyNotify = void(*)(gpointer data)
 
- Public Types inherited from Gio::AppInfo
enum class  CreateFlags {
  CreateFlags::NONE = 0x0 ,
  CreateFlags::NEEDS_TERMINAL = (1 << 0) ,
  CreateFlags::SUPPORTS_URIS = (1 << 1) ,
  CreateFlags::SUPPORTS_STARTUP_NOTIFICATION = (1 << 2)
}
 Flags used when creating a AppInfo. More...
 
- Protected Member Functions inherited from Glib::Object
 Object ()
 
 Object (const Glib::ConstructParams &construct_params)
 
 Object (GObject *castitem)
 
 ~Object () noexcept override
 
- Protected Member Functions inherited from Glib::ObjectBase
 ObjectBase ()
 This default constructor is called implicitly from the constructor of user-derived classes, even if, for instance, Gtk::Button calls a different ObjectBase constructor.
 
 ObjectBase (const char *custom_type_name)
 A derived constructor always overrides this choice.
 
 ObjectBase (const std::type_info &custom_type_info)
 This constructor is a special feature to allow creation of derived types on the fly, without having to use g_object_new() manually.
 
 ObjectBase (ObjectBase &&src) noexcept
 
ObjectBaseoperator= (ObjectBase &&src) noexcept
 
virtual ~ObjectBase () noexcept=0
 
void initialize (GObject *castitem)
 
void initialize_move (GObject *castitem, Glib::ObjectBase *previous_wrapper)
 
- Protected Member Functions inherited from Gio::AppInfo
 AppInfo ()
 You should derive from this class to use it.
 

Detailed Description

DesktopAppInfo is an implementation of AppInfo based on desktop files.

Since glibmm 2.16:

Constructor & Destructor Documentation

◆ DesktopAppInfo()

Gio::DesktopAppInfo::DesktopAppInfo ( DesktopAppInfo &&  src)
noexcept

◆ ~DesktopAppInfo()

Gio::DesktopAppInfo::~DesktopAppInfo ( )
overridenoexcept

Member Function Documentation

◆ create()

static Glib::RefPtr< DesktopAppInfo > Gio::DesktopAppInfo::create ( const std::string desktop_id)
static

Creates a new Gio::DesktopAppInfo based on a desktop file ID.

A desktop file ID is the basename of the desktop file, including the .desktop extension. GIO is looking for a desktop file with this name in the applications subdirectories of the XDG data directories (i.e. the directories specified in the XDG_DATA_HOME and XDG_DATA_DIRS environment variables). GIO also supports the prefix-to-subdirectory mapping that is described in the Menu Spec (i.e. a desktop ID of kde-foo.desktop will match /usr/share/applications/kde/foo.desktop).

Parameters
desktop_idThe desktop file ID.
Returns
A new Gio::DesktopAppInfo, or nullptr if no desktop file with that ID exists.

◆ create_from_filename()

static Glib::RefPtr< DesktopAppInfo > Gio::DesktopAppInfo::create_from_filename ( const std::string filename)
static

Creates a new Gio::DesktopAppInfo.

Parameters
filenameThe path of a desktop file, in the GLib filename encoding.
Returns
A new Gio::DesktopAppInfo or nullptr on error.

◆ create_from_keyfile()

static Glib::RefPtr< DesktopAppInfo > Gio::DesktopAppInfo::create_from_keyfile ( const Glib::RefPtr< Glib::KeyFile > &  key_file)
static

Creates a new Gio::DesktopAppInfo.

Since glibmm 2.18:
Parameters
key_fileAn opened Glib::KeyFile.
Returns
A new Gio::DesktopAppInfo or nullptr on error.

◆ get_action_name()

Glib::ustring Gio::DesktopAppInfo::get_action_name ( const Glib::ustring action_name) const

Gets the user-visible display name of the ‘additional application actions’ specified by action_name.

This corresponds to the Name key within the keyfile group for the action.

Since glibmm 2.38:
Parameters
action_nameThe name of the action as from Gio::DesktopAppInfo::list_actions().
Returns
The locale-specific action name.

◆ get_boolean()

bool Gio::DesktopAppInfo::get_boolean ( const Glib::ustring key) const

Looks up a boolean value in the keyfile backing info.

The key is looked up in the Desktop Entry group.

Since glibmm 2.36:
Parameters
keyThe key to look up.
Returns
The boolean value, or false if the key is not found.

◆ get_categories()

std::string Gio::DesktopAppInfo::get_categories ( ) const

Gets the categories from the desktop file.

Returns
The unparsed Categories key from the desktop file; i.e. no attempt is made to split it by ; or validate it.

◆ get_filename()

std::string Gio::DesktopAppInfo::get_filename ( ) const

When info was created from a known filename, return it.

In some situations such as a Gio::DesktopAppInfo returned from Gio::DesktopAppInfo::new_from_keyfile(), this function will return nullptr.

Since glibmm 2.24:
Returns
The full path to the file for info, or nullptr if not known.

◆ get_generic_name()

std::string Gio::DesktopAppInfo::get_generic_name ( ) const

Gets the generic name from the desktop file.

Returns
The value of the Generic::Name key.

◆ get_keywords()

std::vector< Glib::ustring > Gio::DesktopAppInfo::get_keywords ( ) const

Gets the keywords from the desktop file.

Since glibmm 2.32:
Returns
The value of the Keywords key.

◆ get_locale_string()

Glib::ustring Gio::DesktopAppInfo::get_locale_string ( const Glib::ustring key)

Looks up a localized string value in the keyfile backing info translated to the current locale.

The key is looked up in the Desktop Entry group.

Since glibmm 2.56:
Parameters
keyThe key to look up.
Returns
A newly allocated string, or nullptr if the key is not found.

◆ get_nodisplay()

bool Gio::DesktopAppInfo::get_nodisplay ( ) const

Gets the value of the No::Display key which helps determine if the application info should be shown in menus.

See G_KEY_FILE_DESKTOP_KEY_NO_DISPLAY and Gio::AppInfo::should_show().

Since glibmm 2.30:
Returns
The value of the No::Display key.

◆ get_show_in()

bool Gio::DesktopAppInfo::get_show_in ( const std::string desktop_env) const

Checks if the application info should be shown in menus that list available applications for a specific name of the desktop, based on the OnlyShowIn and NotShowIn keys.

desktop_env should typically be given as nullptr, in which case the XDG_CURRENT_DESKTOP environment variable is consulted. If you want to override the default mechanism then you may specify desktop_env, but this is not recommended.

Note that Gio::AppInfo::should_show() for info will include this check (with nullptr for desktop_env) as well as additional checks.

Since glibmm 2.30:
Parameters
desktop_envA string specifying a desktop name.
Returns
true if the info should be shown in desktop_env according to the OnlyShowIn and NotShowIn keys, false otherwise.

◆ get_startup_wm_class()

std::string Gio::DesktopAppInfo::get_startup_wm_class ( ) const

Retrieves the StartupWMClass field from info.

This represents the WM_CLASS property of the main window of the application, if launched through info.

Since glibmm 2.34:
Returns
The startup WM class, or nullptr if none is set in the desktop file.

◆ get_string()

Glib::ustring Gio::DesktopAppInfo::get_string ( const Glib::ustring key)

Looks up a string value in the keyfile backing info.

The key is looked up in the Desktop Entry group.

Since glibmm 2.36:
Parameters
keyThe key to look up.
Returns
A newly allocated string, or nullptr if the key is not found.

◆ get_type()

static GType Gio::DesktopAppInfo::get_type ( )
static

Get the GType for this class, for use with the underlying GObject type system.

◆ gobj() [1/2]

GDesktopAppInfo * Gio::DesktopAppInfo::gobj ( )
inline

Provides access to the underlying C GObject.

◆ gobj() [2/2]

const GDesktopAppInfo * Gio::DesktopAppInfo::gobj ( ) const
inline

Provides access to the underlying C GObject.

◆ gobj_copy()

GDesktopAppInfo * Gio::DesktopAppInfo::gobj_copy ( )

Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.

◆ has_key()

bool Gio::DesktopAppInfo::has_key ( const Glib::ustring key) const

Returns whether key exists in the Desktop Entry group of the keyfile backing info.

Since glibmm 2.36:
Parameters
keyThe key to look up.
Returns
true if the key exists.

◆ is_hidden()

bool Gio::DesktopAppInfo::is_hidden ( ) const

A desktop file is hidden if the Hidden key in it is set to True.

Returns
true if hidden, false otherwise.

◆ launch_action() [1/2]

void Gio::DesktopAppInfo::launch_action ( const Glib::ustring action_name)

A launch_action() convenience overload.

◆ launch_action() [2/2]

void Gio::DesktopAppInfo::launch_action ( const Glib::ustring action_name,
const Glib::RefPtr< AppLaunchContext > &  launch_context 
)

Activates the named application action.

You may only call this function on action names that were returned from Gio::DesktopAppInfo::list_actions().

Note that if the main entry of the desktop file indicates that the application supports startup notification, and launch_context is non-nullptr, then startup notification will be used when activating the action (and as such, invocation of the action on the receiving side must signal the end of startup notification when it is completed). This is the expected behaviour of applications declaring additional actions, as per the desktop file specification.

As with Gio::AppInfo::launch() there is no way to detect failures that occur while using this function.

Since glibmm 2.38:
Parameters
action_nameThe name of the action as from Gio::DesktopAppInfo::list_actions().
launch_contextA Gio::AppLaunchContext.

◆ list_actions()

std::vector< Glib::ustring > Gio::DesktopAppInfo::list_actions ( ) const

Returns the list of ‘additional application actions’ supported on the desktop file, as per the desktop file specification.

As per the specification, this is the list of actions that are explicitly listed in the Actions key of the Desktop Entry group.

Since glibmm 2.38:
Returns
A list of strings, always non-nullptr.

◆ operator=()

DesktopAppInfo & Gio::DesktopAppInfo::operator= ( DesktopAppInfo &&  src)
noexcept

Friends And Related Symbol Documentation

◆ wrap()

Glib::RefPtr< Gio::DesktopAppInfo > wrap ( GDesktopAppInfo object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.