[Bps-public-commit] SD branch, master, updated. 1dda901b47e06f07be308993bc9dc6d81898ae05
sartak at bestpractical.com
sartak at bestpractical.com
Mon Mar 16 13:57:42 EDT 2009
The branch, master has been updated
via 1dda901b47e06f07be308993bc9dc6d81898ae05 (commit)
via 89d7d7c6d563a8d2d2da4e16972d811e1e716594 (commit)
from 67e853964e310f2403bca7ae894e236d3483035c (commit)
Summary of changes:
lib/App/SD/CLI/Command/Browser.pm | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
- Log -----------------------------------------------------------------
commit 89d7d7c6d563a8d2d2da4e16972d811e1e716594
Author: Shawn M Moore <sartak at gmail.com>
Date: Mon Mar 16 13:57:23 2009 -0400
Include /etc/alternatives/www-browser for Debian-based systems
diff --git a/lib/App/SD/CLI/Command/Browser.pm b/lib/App/SD/CLI/Command/Browser.pm
index cb67206..d611c90 100644
--- a/lib/App/SD/CLI/Command/Browser.pm
+++ b/lib/App/SD/CLI/Command/Browser.pm
@@ -27,7 +27,9 @@ sub open_url_cmd {
} elsif ( $^O eq 'MSWin32' ) {
return 'start';
}
- for my $cmd (qw|www-browser htmlview gnome-open gnome-moz-remote
+
+ for my $cmd (qw|www-browser htmlview /etc/alternatives/www-browser
+ gnome-open gnome-moz-remote
firefox iceweasel opera w3m lynx|) {
my $cmd_path = `which $cmd`;
chomp($cmd_path);
commit 1dda901b47e06f07be308993bc9dc6d81898ae05
Author: Shawn M Moore <sartak at gmail.com>
Date: Mon Mar 16 13:57:38 2009 -0400
Cleanup
diff --git a/lib/App/SD/CLI/Command/Browser.pm b/lib/App/SD/CLI/Command/Browser.pm
index d611c90..f3cf5c6 100644
--- a/lib/App/SD/CLI/Command/Browser.pm
+++ b/lib/App/SD/CLI/Command/Browser.pm
@@ -10,7 +10,6 @@ sub setup_server {
return $server;
}
-
sub open_browser {
my $self = shift;
my %args = (@_);
@@ -22,9 +21,11 @@ sub open_browser {
sub open_url_cmd {
my $self = shift;
+
if ( $^O eq 'darwin' ) {
return 'open';
- } elsif ( $^O eq 'MSWin32' ) {
+ }
+ elsif ( $^O eq 'MSWin32' ) {
return 'start';
}
@@ -39,3 +40,7 @@ sub open_url_cmd {
}
}
}
+
+__PACKAGE__->meta->make_immutable;
+no Any::Moose;
+
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list