Bug report #9617

.qgs project file is read-only does not work

Added by Giedrius Vaivilavičius about 10 years ago. Updated about 10 years ago.

Status:Closed
Priority:Normal
Assignee:Jürgen Fischer
Category:-
Affected QGIS version:master Regression?:No
Operating System:Debian Wheezy Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:18191

Description

With qgis 2.1 (master, Valmiera) to create a project and get it done .qgs file read-only (right-click on the file Properties -> Permissions -> Access = Read-Only).
Opened the work I still change the project and save it. When I click save and it saves the project. Then check out. Qgs file it is already reading and writing (right-click on the file Properties -> Permissions -> Access = Read & Write).
This is on Debian Wheezy and Ubuntu 12.04.
The stable qgis 2.0 Dufor everything works fine.
Whether this will be on a 2.2 Valmiera?

Associated revisions

Revision efc507ac
Added by Jürgen Fischer about 10 years ago

avoid 'overwriting' readonly files (fixes #9617)

History

#1 Updated by Jürgen Fischer about 10 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

Readonly projects are not supported. So you can always change the project and save it somewhere else. If you save to the same file the original file gets renamed to yourfile.qgs~ and an new file is created. You could make the directory readonly so that creating new files in that directory doesn't work.

#2 Updated by Jürgen Fischer about 10 years ago

  • Resolution deleted (invalid)
  • Status changed from Closed to Reopened

on second thought "overwriting" a readonly file doesn't make sense as you probably made it readonly just to prevent that.

#3 Updated by Jürgen Fischer about 10 years ago

  • Priority changed from High to Normal
  • Assignee set to Jürgen Fischer

#4 Updated by Jürgen Fischer about 10 years ago

  • Status changed from Reopened to Closed

Also available in: Atom PDF