Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Modifying ReadONly file attribute from project manager (patch)
thomas:
Actually the read-only flag serves an important and useful purpose (lock reminder) for SVN, so one really shouldn't tamper with that. But then again, do as you like, I'm not using locks anywhere so I shan't be bothered :P
--- Quote from: MortenMacFly on October 21, 2009, 10:27:43 am ---- What happens if the user does not have the right to change the file's attributes or if they are "virtual" like on network shares under Windows?
- What about user/group/admin rights under Linux/Unix? What flag (file mask) to set exactly?
--- End quote ---
I figure you need to run Code::Blocks as root then :)
MortenMacFly:
--- Quote from: thomas on October 21, 2009, 08:59:32 pm ---Actually the read-only flag serves an important and useful purpose (lock reminder) for SVN
--- End quote ---
That is certainly true. But: I am using CVS a lot, too and there removing the lock is as annoying as to run WinCVS (there is no CVS integration for C::B if you remember) and unlock the file. Taking into account that when working on a large project you do that several times it's just annoying!
In the end it's my own repo and a lock makes only sense if working with multiple people which is not the case for me, obviously.
However - I take your comment as a vote against applying to trunk. Still: This feature may be of interest for others, too. So I leave it here as patch (as this was my intention anyways... if you read my posts carefully ;-)).
mariocup:
@Martin,
I think that the status bar could be a better place to show with a "lock icon" that the file is read-only. Since the status bar is always visible it is the perfect place to show some details and it could be also used to modify some settings. For example the spellchecker plugin uses the status bar to switch between different dictionaries. Another use-case could be changing the character encoding of a file via the status bar without wasting time to search the appropriate menu entry.
What are you thinking about it?
thomas:
--- Quote from: thomas on October 21, 2009, 08:59:32 pm ---But then again, do as you like, I'm not using locks anywhere so I shan't be bothered :P
--- End quote ---
--- Quote from: MortenMacFly on October 21, 2009, 09:10:32 pm ---However - I take your comment as a vote against applying to trunk.
--- End quote ---
Heh, and I thought we talked the same language :)
MortenMacFly:
--- Quote from: thomas on October 22, 2009, 09:38:31 pm ---Heh, and I thought we talked the same language :)
--- End quote ---
We do, but this forum is english-only! ;-) :lol: :lol: :lol:
Ok - point taken.
Navigation
[0] Message Index
[*] Previous page
Go to full version