Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#65 Win32::GUI::BitmapInline not using %temp%

1.06
closed-fixed
Robert May
1
2008-02-13
2006-10-29
Uwe Kind
No

Hello,

would it be possible to alter the BitmapInline-Module
in a way, that temporary files are created in the
%temp% directory instead of the current working dir?

At present users with non privileged accounts are not
able to create the temporary files in directories with
limited access permissions like 'c:\program files'

Thanks, Uwe

Discussion

  • Robert May
    Robert May
    2006-10-30

    Logged In: YES
    user_id=674651

    It would probably be better to re-work BitmapInline to not
    require any temporary file. Now that we are packaging
    Win32::GUI::DIBitmap with the core distribution, this should
    be easily possible. I'll take a look for a future release
    unless you beat me to it.

    Rob.

     
  • Robert May
    Robert May
    2007-08-09

    • assigned_to: nobody --> robertemay
     
  • Robert May
    Robert May
    2007-08-09

    Logged In: YES
    user_id=674651
    Originator: NO

    I'm looking at it now. A solution that uses a more suitable location for the tmp file initially - maybe using DIBitmap to avoid the tmp file altogether later.

    Rob.

     
  • Robert May
    Robert May
    2007-12-09

    Logged In: YES
    user_id=674651
    Originator: NO

    I have modified Win32::GUI::BitmapInline to use File::Temp->tmpdir() to get a writeable directory, rather than using the current directory. At the same time I have made the module thread safe (there was a small possibility of 2 threads using the same temporary file name at the same time). The changes will be in CVS soon, and will make it into the next (1.06) release.

    rob.

     
  • Robert May
    Robert May
    2007-12-09

    • priority: 5 --> 1
    • status: open --> open-fixed
     
  • Robert May
    Robert May
    2008-01-31

    • labels: --> Win32::GUI::BitmapInline
     
  • Robert May
    Robert May
    2008-01-31

    • milestone: --> 1.06
     
  • Robert May
    Robert May
    2008-02-13

    • status: open-fixed --> closed-fixed