On Tue, 5 Apr 2016 19:03:06 +1000 David Seikel <[email protected]> said:
> On Tue, 5 Apr 2016 17:13:40 +0900 Carsten Haitzler (The Rasterman) > <[email protected]> wrote: > > > Referring to: > > > > http://git.enlightenment.org/core/efl.git/commit/?id=6291c61556a531da874242830689e37362db1638 > > > > and follow on commits that init this and make use of it. Welcome to... > > > > VPATH (: > > > > >From now on all EFL code will be happy.... full of smiles... OR > > >ELSE! :) > > > > This is not final but it works (the core does) and will have to wait > > a bit for fuller completion like url's etc. This is in now for > > "comment" to do adjustments. No - it's not testedt because it's > > rather painful to unit test because it relies on looking up things > > that are very user/system specific and not isolatable in a test > > suite. i'd have to fake a whole user account/homedir and syscalls > > that figure this out. it's going to get tested a fair bit anyway > > because of where it sits. we'll get to that later. > > > > Anyway what is VPATH? > > > > VPATH = Virtual Path. it allows you to specify a file like you might > > in a shell and other places. no longer do we just support: > > > > file/whatever.jpg == ./file/whatever.jpg > > ./file/whatever.jpg > > ../file/whatever/jpg > > /etc/file/whatever.jpg > > > > we support these and now we ALSO do: > > > > ~/whatever/file.jpg > > ~username/whatever/file.jpg > > (:tmp/whatever/file.jpg == /tmp/whatever/file.jpg (or where $TMPDIR > > etc. point) (:home/whatever/file.jpg == ~/whatever/file.jpg > > > > for these XDG dirs: > > > > (:data/whatever/file.jpg == ~/.local/share/whatever/file.jpg > > (:config/whatever/file.jpg == ~/.config/whatever/file.jpg > > (:cache/whatever/file.jpg == ~/.cache/whatever/file.jpg > > (:run/whatever/file.jpg == /var/run/1000/whatever/file.jpg > > (:desktop/whatever/file.jpg == ~/Desktop/whatever/file.jpg > > (:documents/whatever/file.jpg == ~/Documents/whatever/file.jpg > > (:downloads/whatever/file.jpg == ~/Downloads/whatever/file.jpg > > (:music/whatever/file.jpg == ~/Music/whatever/file.jpg > > (:pictures/whatever/file.jpg == ~/Pictures/whatever/file.jpg > > (:public/whatever/file.jpg == ~/Public/whatever/file.jpg > > (:templates/whatever/file.jpg == ~/.Templates/whatever/file.jpg > > (:videos/whatever/file.jpg == ~/Videos/whatever/file.jpg > > Most of those XDG examples provide a single user directory, but XDG > protocols define a search amongst many directories for finding some > files, including system and user directories. We implement some of > that in efreet already. Since VPATH is "to specify a file", could > VPATH end up doing these XDG searches internally, before presenting > the eventually found file as the result? it could - but that'd only be useful for read. not write. and that'd need the async stuff as discussed. as huntig can.. take some time. > Though XDG protocols sometimes involve messy merging of file contents > as well, probably don't want to mess with that sort of stuff. for now i didnt want to touch path searching. that may be something else. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
