Non writable directory prevents opening

Issue #619 resolved
Timo Virtaneva created an issue

I'm storing the template patterns in OneNote.

The current development version cannot open the file from the application any more.

It would be nice to be able to open pattern from application.

Error message attached

Comments (18)

  1. Roman Telezhynskyi repo owner

    Yes, i see it now. :) I did not see it because you attached it in the second message and i replied to first.

  2. Roman Telezhynskyi repo owner

    Do you need more complicated one?

    Unit test only test fact that Valentina can open the file. But more files that use different tools will be welcome. I will more faster to know about an issue.

  3. Susan Spencer

    Hey, I thought that templates were supposed to be write-protected. You open it, and save it to another file name that is writable, then make changes to the new file. Templates in other software are write-protected.

  4. Susan Spencer

    I downloaded the trouser pattern, double-clicked on it, and it opened in Valentina without an error message. Then I changed a point name and saved, and did not get an error message. I'm using the latest Windows test build downloaded from the Valentina webpage on Jan 30 2017, v0.5.0.1883a.

  5. Timo Virtaneva reporter

    I have the pattern included in OneNote page, because I can have the instructions and other additional information in same place. I try open the pattern by double clicking it. So far it has opened and I can save it with other name in writeable location.

  6. Roman Telezhynskyi repo owner

    Great. Little bit about changes:

    • Valentina now checks if a file is writable on level of a file system. If not then file marked as read only.
    • Valentina now can try change permissions for file before saving.
    • I recommend make all template read only by setting special option. This will help prevent accidental modifying a file on level of application.
    • From now one just opening file doesn't convert it to new format version. Such a conversion will be done only after first save.
  7. Timo Virtaneva reporter

    Good to know. This is a good enhancement:

    • From now one just opening file doesn't convert it to new format version. Such a conversion will be done only after first save.
  8. Roman Telezhynskyi repo owner

    Yes, i also like it. :) All thanks to you. When i searched a way to open not writable file i came to idea how we can use it everywhere.

  9. Log in to comment