Editable files?

Editable files?

Help! :)

I created an application using SVS, and there is a file called keyboardshortcuts.txt that needs to be able to be edited by the user.

I moved it from the read-only to the writable area in the SVS editor, and I even tried modifying the security permissions in the fsldr folder, but when a user modifies the file, the changes are not reflected in the application.

It seems like it is reading an older version of the file.

Any ideas or suggestions would be appreciated.

Thanks

what's happening is

Jordan's picture

what's happening is notepad, or whatever you're using to edit the file, is in the base so any changes made to that file don't go into the layer. And layers take priority over the base which is why you're always getting the old version.

With SVS where the application is that's saving/changing the file is located determines where the file gets saved. If the application is in the base the change gets saved to the base, if the application is in a layer the changes get saved to that specific layer.

Hmmm.....

I will have to try a few things out. That seems odd, even though the text file that is being modified is in the layer, but I can see how using an application that is in the base can make it act this way. Thanks for the insight.

-Mike

Looks good

I am sending the .vsa to a user to test. I added notepad.exe to the layer, and then created a shortcut to notepad.exe that was in the layer to also open the keyboardshortcuts.txt with the notepad that is in the layer.

It worked fine for me, so I assume this has answered my questions. Thanks a lot for the help.

-Mike

How to solve it?

robertser's picture

How should we get around this issue? It is clear what the problem is but I have yet to see a good way to solve it. The only solutions seem to be to either use svscmd and launch notepad as part of the layer or to make notepad part of the layer with a special shortcut to it. Does anyone have a more automated solution?