Class: Gtk::FileLauncher
- Inherits:
-
Object
- Object
- Gtk::FileLauncher
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#always_ask ⇒ Boolean
Returns whether to ask the user which app to use.
-
#always_ask=(always_ask) ⇒ Boolean
Whether to ask the user to choose an app for opening the file.
-
#always_ask? ⇒ Boolean
Whether to ask the user to choose an app for opening the file.
-
#file ⇒ Gio::File
The file to launch.
-
#file=(file) ⇒ Gio::File
The file to launch.
-
#initialize(file) ⇒ Gtk::FileLauncher
constructor
Creates a new
GtkFileLauncherobject. -
#launch(parent, cancellable, callback, user_data) ⇒ nil
Launches an application to open the file.
-
#launch_finish(result) ⇒ Boolean
Finishes the [methodGtk.FileLauncher.launch] call and returns the result.
-
#open_containing_folder(parent, cancellable, callback, user_data) ⇒ nil
Launches a file manager to show the file in its parent directory.
-
#open_containing_folder_finish(result) ⇒ Boolean
Finishes the [methodGtk.FileLauncher.open_containing_folder] call and returns the result.
-
#writable ⇒ Boolean
Returns whether to make the file writable for the handler.
-
#writable=(writable) ⇒ Boolean
Whether to make the file writable for the handler.
-
#writable? ⇒ Boolean
Whether to make the file writable for the handler.
Constructor Details
#initialize(file) ⇒ Gtk::FileLauncher
Creates a new GtkFileLauncher object.
Instance Method Details
#always_ask ⇒ Boolean
Returns whether to ask the user which app to use.
#always_ask=(always_ask) ⇒ Boolean
Whether to ask the user to choose an app for opening the file. If FALSE,
the file might be opened with a default app or the previous choice.
#always_ask? ⇒ Boolean
Whether to ask the user to choose an app for opening the file. If FALSE,
the file might be opened with a default app or the previous choice.
#file ⇒ Gio::File
The file to launch.
#file=(file) ⇒ Gio::File
The file to launch.
#launch(parent, cancellable, callback, user_data) ⇒ nil
Launches an application to open the file.
This may present an app chooser dialog to the user.
#launch_finish(result) ⇒ Boolean
Finishes the [methodGtk.FileLauncher.launch] call and
returns the result.
#open_containing_folder(parent, cancellable, callback, user_data) ⇒ nil
Launches a file manager to show the file in its parent directory.
This is only supported for native files. It will fail if file
is e.g. a http:// uri.
#open_containing_folder_finish(result) ⇒ Boolean
Finishes the [methodGtk.FileLauncher.open_containing_folder]
call and returns the result.
#writable ⇒ Boolean
Returns whether to make the file writable for the handler.
#writable=(writable) ⇒ Boolean
Whether to make the file writable for the handler.
#writable? ⇒ Boolean
Whether to make the file writable for the handler.