trying again as txt
On Thu, Jan 10, 2013 at 11:32 AM, Ray Chen <swy...@opensuse.org> wrote:
> 2013-1-10 上午12:15 於 "Gustavo Sverzut Barbieri" <barbi...@profusion.mobi>
> 寫道:
> >
> > On Wed, Jan 9, 2013 at 12:15 PM, Ray Chen <swy...@opensuse.org> wrote:
> >
> > > ray122@linux-wtrh:~> xdg-open $HOME/Dropbox/
> > > EXE: 'enlightenment_filemanager 'file:///home/ray122/Dropbox/''
> > > ERROR: org.enlightenment.FileManager.Error: unsupported protocolray122
> > >
> > > it's strange manner,
> > > so when I click the dropbox icon to open my Dropbox folder
> > > nothing happens!
> > > In xdg-open code, there's a section about e17
> > > it open the file and directory with enlightenment_open
> > > and
> > > enlightenment_open --help
> > > Usage: enlightenment_open [options] <file-or-folder-or-url>
> > > shows it should work
> > > but when enlightenment_open choose enlightenment_filemanager to open
> the
> > > folder
> > > it treat it as a "file"
> > >
> > > I think it's a bug
> > > Can anyone help?
> > >
> >
> > Seems e_fm_cmdline.c will do mess if you give it an URI.
> >
> > See the attached patch if fixes it.
> >
> Sorry, I can't see any attachment?
> >
> > --
> > Gustavo Sverzut Barbieri
> > http://profusion.mobi embedded systems
> > --------------------------------------
> > MSN: barbi...@gmail.com
> > Skype: gsbarbieri
> > Mobile: +55 (19) 9225-2202
> >
> >
>
> ------------------------------------------------------------------------------
> > Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> > and much more. Keep your Java skills current with LearnJavaNow -
> > 200+ hours of step-by-step video tutorials by Java experts.
> > SALE $49.99 this month only -- learn more at:
> > http://p.sf.net/sfu/learnmore_122612
> > _______________________________________________
> > enlightenment-users mailing list
> > enlightenment-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> >
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122712
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
>
--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
Index: src/bin/e_fm_cmdline.c
===================================================================
--- src/bin/e_fm_cmdline.c (revision 82459)
+++ src/bin/e_fm_cmdline.c (working copy)
@@ -39,6 +39,21 @@ fm_open(const char *path)
if (path[0] == '/')
p = strdup(path);
+ else if (strstr(path, "://"))
+ {
+ Efreet_Uri *uri = efreet_uri_decode(path);
+ if ((!uri) || (!uri->protocol) || (strcmp(uri->protocol, "file") != 0))
+ {
+ ERR("Invalid URI '%s'", path);
+ ecore_idler_add(fm_error_quit_last, NULL);
+ if (uri)
+ efreet_uri_free(uri);
+ return;
+ }
+
+ p = strdup(uri->path);
+ efreet_uri_free(uri);
+ }
else
{
char buf[PATH_MAX];
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users