As a New Years Gift (curse) and 6 months in the works, I'm glad to present File::HomeDir 0.61, one of the most significant releases ever.
For the first time the module provides a comprehensive set of methods for all the essentials of modern desktop computer usage, such as my_desktop and my_music.
All implementations are done straight on top of operating system standards, with no guesswork or arbitrary implementations by myself. If something isn't found, methods return undef.
Currently Unix has everything defaulting to just the home directory, while Win32 and Mac get the full goodness.
With great (and in some cases badly needed) improvements come a few minor issues.
You now have to deal with the fact that NOT everything always has a resource, whether it's my_video or even my_home (which can't ALWAYS be guarenteed).
I hope I can get everyone with various odd platforms to make sure it at least installs.
Once the 0.6 series is settles down, I'd very much like to see pathes or contributions to integrate with the Copland opendesktop standard for Gnone and KDE, and any other documented Unix standards.
File::HomeDir & Strawberry Perl - no go
Ron Savage on 2007-01-02T00:09:26
My log:
Start: Tue Jan 2 11:00:03 2007.
Installing File::HomeDir V 0.61
Command: gzip -d File-HomeDir-0.61.tgz
Output:
Errors:
--------------------------------------------------
Command: tar xvmf File-HomeDir-0.61.tar
Output:
File-HomeDir-0.61/
File-HomeDir-0.61/inc/
File-HomeDir-0.61/inc/Module/
File-HomeDir-0.61/inc/Module/Install.pm
File-HomeDir-0.61/inc/Module/Install/
File-HomeDir-0.61/inc/Module/Install/Fetch.pm
File-HomeDir-0.61/inc/Module/Install/Makefile.pm
File-HomeDir-0.61/inc/Module/Install/Base.pm
File-HomeDir-0.61/inc/Module/Install/Metadata.pm
File-HomeDir-0.61/inc/Module/Install/Can.pm
File-HomeDir-0.61/inc/Module/Install/WriteAll.pm
File-HomeDir-0.61/inc/Module/Install/Win32.pm
File-HomeDir-0.61/lib/
File-HomeDir-0.61/lib/File/
File-HomeDir-0.61/lib/File/HomeDir/
File-HomeDir-0.61/lib/File/HomeDir/MacOS9.pm
File-HomeDir-0.61/lib/File/HomeDir/Windows.pm
File-HomeDir-0.61/lib/File/HomeDir/Unix.pm
File-HomeDir-0.61/lib/File/HomeDir/Darwin.pm
File-HomeDir-0.61/lib/File/HomeDir.pm
File-HomeDir-0.61/Changes
File-HomeDir-0.61/MANIFEST
File-HomeDir-0.61/t/
File-HomeDir-0.61/t/02_main.t
File-HomeDir-0.61/t/01_compile.t
File-HomeDir-0.61/t/99_author.t
File-HomeDir-0.61/META.yml
File-HomeDir-0.61/README
File-HomeDir-0.61/LICENSE
File-HomeDir-0.61/Makefile.PL
Errors:
--------------------------------------------------
Command: gzip File-HomeDir-0.61.tar
Output:
Errors:
--------------------------------------------------
Command: perl Makefile.PL
Output:
Checking if your kit is complete...
Looks good
Writing Makefile for File::HomeDir
Errors:
--------------------------------------------------
Command: dmake
Output:
cp lib/File/HomeDir/Darwin.pm blib\lib\File\HomeDir\Darwin.pm
cp lib/File/HomeDir.pm blib\lib\File\HomeDir.pm
cp lib/File/HomeDir/Unix.pm blib\lib\File\HomeDir\Unix.pm
cp lib/File/HomeDir/MacOS9.pm blib\lib\File\HomeDir\MacOS9.pm
cp lib/File/HomeDir/Windows.pm blib\lib\File\HomeDir\Windows.pm
Errors:
--------------------------------------------------
Command: dmake test
Output:
C:\strawberry-perl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib\lib', 'blib\arch')" t/*.t
t/01_compile....ok
t/02_main.......dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 42-43
Failed 2/52 tests, 96.15% okay (less 8 skipped tests: 42 okay, 80.77%)
t/99_author.....skipped
all skipped: Author tests not required for installation
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/02_main.t 2 512 52 2 3.85% 42-43
1 test and 8 subtests skipped.
Errors:
# Failed test 'Our videos directory exists'
# in t/02_main.t at line 260.
# Failed test 'Our videos directory exists'
# in t/02_main.t at line 261.
# Looks like you failed 2 tests of 52.
Failed 1/3 test scripts, 66.67% okay. 2/59 subtests failed, 96.61% okay.
dmake: Error code 255, while making 'test_dynamic'
--------------------------------------------------
Command: dmake install
Output:
Writing c:\strawberry-perl\perl\site\lib\auto\File\HomeDir\.packlist
Appending installation info to c:\strawberry-perl\perl\lib/perllocal.pod
Errors:
--------------------------------------------------
Count: error => 0.
Count: ok => 1.
Count: total => 1.
End: Tue Jan 2 11:00:27 2007.
Re:File::HomeDir & Strawberry Perl - no go
Alias on 2007-01-02T00:51:57
WORKSFORME
Which particular operating system, version, service pack, etc do you have?
Adam K
Re:File::HomeDir & Strawberry Perl - no go
Ron Savage on 2007-01-02T03:56:30
WinXP SP2. Perl 5.8.8.
Works for you? Perhaps because your 'My Video' dir exists?
Re:File::HomeDir & Strawberry Perl - no go
Alias on 2007-01-02T09:32:26
Yeah, the tests are a LITTLE bit crude about what things are expected to exist on each OS.
So far while Win2k doesn't expect a couple of newer things, I'm assuming all XP will have a My Videos, because my laptop WinXP Pro has it.
This might be a bad assumption...
I'll change the tests to not assume a videos directory on XP.
Out of curiosity, can I get more info on your box?
Is is WinXP home/pro/server/etc?
What (in the debugger) is the full result you get from
use Win32;
x Win32::GetOSVersion();
Re:File::HomeDir & Strawberry Perl - no go
Ron Savage on 2007-01-03T09:53:34
There's no secret, but there'll be a delay.
I'm at home on holiday, running Win2K, and the laptop with WinXP is locked in a cupboard at work.
One day I'll go and collect it...