Re: infradead is down
On 2/11/2013 13:39 PM, Chris Marriott wrote: Is there a compelling reason why the settings, cache, pvr file etc. can't be stored in the get_iplayer folder itself? From Windows 7 onwards, an non-privileged application does not have write access to the Program Files folder. That explains why W7 can only run half of my applications when they're outside Program Files. Classic microsoft failure to think things through. Hence settings should be stored under either ApplicationData (for application-wide settings), or Username (for user-specific settings). get_iplayer is correctly following the Windows programming guidelines in the way it stores its data. Which only leaves the questions of whether the guidelines are sensible, and how easy it would be to give the user the option of storing everything on one folder. ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: infradead is down
On 11 February 2013 11:05, Kapitano kapitan...@gmail.com wrote: On 2/11/2013 13:39 PM, Chris Marriott wrote: Is there a compelling reason why the settings, cache, pvr file etc. can't be stored in the get_iplayer folder itself? From Windows 7 onwards, an non-privileged application does not have write access to the Program Files folder. That explains why W7 can only run half of my applications when they're outside Program Files. Classic microsoft failure to think things through. Hence settings should be stored under either ApplicationData (for application-wide settings), or Username (for user-specific settings). get_iplayer is correctly following the Windows programming guidelines in the way it stores its data. Which only leaves the questions of whether the guidelines are sensible, and how easy it would be to give the user the option of storing everything on one folder. It is eminently sensible to prevent non-privileged access to Program Files. It is a case of Win catching up with Linux. On Linux the get-iplayer program files would normally be /usr/bin (or similar), which again cannot be accessed by a non-priviliged user, with the data files stored under the users home folder. Possibly a solution would be to provide a command line parameter to get-iplayer which would specify where to store the cache and settings, then this would allow running from a usb stick with the data on the stick also. Colin ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: infradead is down
On 11/02/2013 15:22, Kapitano wrote: On 2/11/2013 14:30 PM, Colin Law wrote: Possibly a solution would be to provide a command line parameter to get-iplayer which would specify where to store the cache and settings, That would be a very good feature, which I suppose I'm hereby requesting. We've already got one for the default download folder. The rights and wrongs of which folders should have what access privileges...is a good nerdy subject on which we won't be able to agree. Shevek wrote: Anything that has a portable install, I put it in C:\Applications I've got over 200 programs on my laptop, and they're *all* portable and outside Program Files. Erm, except for Get_iPlayer. :-). +1 (+1 bonus) for portable option. I'd *love* me some portable GiP. Just this weekend, on an old installation I fell afoul of 2.79's inability to write to the default download location problem. And woe betide me, infradead was down to boot! ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer
Re: infradead is down
On 11/02/2013 10:39, Chris Marriott wrote: From Windows 7 onwards, an non-privileged application does not have write access to the Program Files folder. Hence settings should be stored under either ApplicationData (for application-wide settings), or Username (for user-specific settings). get_iplayer is correctly following the Windows programming guidelines in the way it stores its data. Almost. Microsoft advises you to use %LOCALAPPDATA% (AppData\Local on Vista+, Local Settings on XP), but get_iplayer sticks with the Linux convention of a .get_iplayer folder in %USERPROFILE%. get_iplayer probably should use AppData, but it brings two small annoyances. AppData is a hidden folder, though that would only earn an epithet from the small group of users who want to manually edit presets, pvr searches, etc. Also, get_iplayer would have to detect XP vs Vista+ (and perhaps bring in a Win32 Perl module) since the AppData paths are different and %LOCALAPPDATA% isn't defined on XP. On 11/02/2013 11:30, Colin Law wrote: It is eminently sensible to prevent non-privileged access to Program Files. It is a case of Win catching up with Linux. On Linux the get-iplayer program files would normally be /usr/bin (or similar), which again cannot be accessed by a non-priviliged user, with the data This is the crux of the matter. Both Linux and Windows are multi-user systems that support different access levels for users. That implies that common components like application installations must be protected. The current get_iplayer Windows setup doesn't quite follow Microsoft's guidelines. I think it should (and could), in effect working more like a Linux install. I suspect that not very many people use get_iplayer with multiple users on one machine, but if get_iplayer is going to be on Windows it should play nicely with the system. On 11/02/2013 15:22, Kapitano wrote: On 2/11/2013 14:30 PM, Colin Law wrote: Possibly a solution would be to provide a command line parameter to get-iplayer which would specify where to store the cache and settings, That would be a very good feature, which I suppose I'm hereby requesting. We've already got one for the default download folder. You already have this: --profile-dir The rights and wrongs of which folders should have what access privileges...is a good nerdy subject on which we won't be able to agree. Our agreement is irrelevant. Microsoft makes the rules about access to special folders, so get_iplayer needs to take them into account. I've got over 200 programs on my laptop, and they're *all* portable and outside Program Files. Erm, except for Get_iPlayer. :-). You're not obliged to install get_iplayer in Program Files. The current installer will let you pick a different location, though you won't quite get a portable app because of the settings, registry values, etc., written by the installer. On 11/02/2013 16:50, Christopher Woods (CM) wrote: +1 (+1 bonus) for portable option. I'd *love* me some portable GiP. The next release of get_iplayer will go out with the current installer, in the interest of time. After that, I plan to replace it with a new, simpler installer to go along with some changes to the get_iplayer Windows scripts. The changes I have in mind will enable get_iplayer to be installed as a portable app. I think an improved normal install will go a long way towards the same goals, but a portable app version is an interesting idea. I'll raise this issue again when the time comes. ___ get_iplayer mailing list get_iplayer@lists.infradead.org http://lists.infradead.org/mailman/listinfo/get_iplayer