| Libfm Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#define FM_TERMINAL_TYPE struct FmTerminal; FmTerminalClass; FmTerminal * fm_terminal_dup_default (GError **error); gboolean fm_terminal_launch (const gchar *dir,GError **error);
include: libfm/fm.h
The FmTerminal object represents description how applications which require start in terminal should be started.
struct FmTerminal {
char* program;
char* open_arg;
char* noclose_arg;
char* launch;
char* desktop_id;
char* custom_args;
};
A terminal description. If application should be ran in terminal libfm may do it either default way (closing terminal window after exit):
program custom_args open_arg <cmd> [<args>]
or alternate way (not closing terminal window after exit):
program custom_args noclose_arg <cmd> [<args>]
If terminal doesn't support not closing terminal window after exit then default way should be used.
| archiver program | |
| options to insert before <cmd> [<args>] to run command in terminal | |
options to insert to run command without closing terminal or NULL
|
|
| options if required to launch in current directory | |
| desktop ID to search for icon and descriptions | |
| custom arguments (only from libfm.conf) |
FmTerminal * fm_terminal_dup_default (GError **error);
Retrieves description of terminal which is defined in libfm config.
Returned data should be freed with g_object_unref() after usage.
|
location of error to set. [allow-none] |
Returns : |
terminal descriptor or NULL if no terminal is set. [transfer full]
|
Since 1.2.0
gboolean fm_terminal_launch (const gchar *dir,GError **error);
Spawns a terminal window in requested dir. If dir is NULL then it
will be spawned in current working directory.
|
a directory to launch. [allow-none] |
|
location of error to set. [allow-none] |
Returns : |
TRUE if spawn was succesful. |
Since 1.2.0