UI::Dialog::Backend::Nautilus(3pm) | User Contributed Perl Documentation | UI::Dialog::Backend::Nautilus(3pm) |
UI::Dialog::Backend::Nautilus - wrapper around the data provided by the nautilus(1).
use UI::Dialog::Backend::Nautilus; my $nautilus = new UI::Dialog::Backend::Nautilus (); my @paths = $nautilus->paths();
UI::Dialog::Backend::Nautilus is simply an OOPerl wrapper around the data provided by the nautilus(1) file manager's scripts feature.
nautilus(1) is a GNOME file manager that has a "right-click" menu for user made scripts (found in the user's ~/.gnome2/nautilus-scripts/ directory). This is an OOPerl interface to the environment variables provided to the scripts during runtime by nautilus. When you use any of the UI::Dialog meta classes (UI::Dialog, UI::Dialog::GNOME, etc.) access to this backend is provided via the $d->nautilus method. ie: replace $nautilus with $d->nautilus in the synopsis example (provided you made $d with something like my $d = new UI::Dialog...). Also, UI::Dialog and friends only load this module when you first use the $d->nautilus method (this may silently fail, but you can test by ref() for success).
None
None
my $nautilus = new UI::Dialog::Backend::Nautilus ();
my $path = $nautilus->path();
a SCALAR.
my @paths = $nautilus->paths();
an ARRAY.
my $uri = $nautilus->uri();
a SCALAR.
my @uris = $nautilus->uris();
an ARRAY.
my ($h,$w,$x,$y) = $nautilus->geometry();
height width X-coordinate Y-coordinate
an ARRAY.
my $path = $nautilus->uri_unescape( "file:///path/to/somewhere" ); my @paths = $nautilus->uri_unescape( "file:///path/to/somewhere", "file:///yet/another/path" );
UI::Dialog UI::Dialog::Backend
nautilus(1)
Please email the author with any bug reports. Include the name of the module in the subject line.
Kevin C. Krinke, E<lt>kevin@krinke.caE<gt>
Copyright (C) 2004-2016 Kevin C. Krinke <kevin@krinke.ca> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
2018-10-27 | perl v5.26.2 |