File handling small thingy - CopyFile-Readonly

Forums » Opera for Windows/Mac/Linux » Opera for Windows

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

5. May 2010, 08:31:44

LancelotReal

Posts: 1

File handling small thingy - CopyFile-Readonly

Hi to the great developers of Opera,
I am a new forum member, but a very old Opera user since win98 (still copying Opera3.adr from one version to another wink)

Here is a small thingy which I guess would be fixed easier with development.
( Tested Opera version 10.53.3374.0 )

Short Explanation:
If predefined configuration files have read only attributes, Opera copy these files to Profile directory with their Read Only Attributes causing small, unwanted thingies.

Detailed Explanation:
I prepare Opera to run on cd for PE1 environment (<-- This part is to inform why i get this +R thingy)

Since Opera is on cd, when iso created, all files attributed +R (Read only) (<-- Well, I guess I can fiddle with iso creation to fix this..... but since Opera is the most flexible browser of universe I feel better to inform developers)

When opera.exe started, It creates files/folders under %AppData%\Opera\Opera10 by using predefined settings.

BUT

I see opera copy some files from "OperaFolder" , hence some files stay readonly on %AppData%\Opera\Opera10\ folder,
This results with some minor failures when Opera started

1)
\OperaFolder\default\bookmarks.adr
Opera copy this file with its +R attribute to
%AppData%\Opera\Opera10\bookmarks.adr

well this cause using bookmarks causing errors (when one click a bookmark, opera wants to write information like last visit date i guess to adr file).

2)
If there exists
\OperaFolder\default\operaprefs.ini
Opera copy this file with its +R attribute to
%AppData%\Opera\Opera10\operaprefs.ini
this cause thingies.

I found workaround for this
I put
\OperaFolder\operaprefs_default.ini
as a result Opera does not copy, instead create %AppData%\Opera\Opera10\operaprefs.ini by reading operaprefs_default.ini which fixes this thingies smile.


X)
I also notice some other files copied with +R like
%AppData%\Opera\Opera10\styles\user\ --> css files (<--- I do not think this cause something, only informing)

and probably there maybe more on some setting scenarios which I am sure Opera Advanced users and developers know better.


All above can be easly reproduced by playing attributes of above files on normal windows. (no need to create cd wink)

Well to fix all above, I will make a loader that copy files to %AppData%\Opera\Opera10\ and attrib -R (<-- Well this is not something I am very eager to), rest is wonderfully done with Opera smile.

Please do not consider this as a bug report, it is a thingy, or a request for feature. I am aware Opera Developers did not design Opera to run on cd hence this can not be a bug, but to me Opera10 on cd is almost fully ready with a small touch of Opera Developers.

ps: I hope I post to right forum. I am a bit confused to post where and since PE is a Windows platform, I decided to write here.

Thanks All Opera Team smile.

Forums » Opera for Windows/Mac/Linux » Opera for Windows