내용으로 건너뛰기

Application persistance setting don't works

0

Good evening to all, when I edit an xml configuration file under path C:\appname during the session, when I disconnect this change is lost even if I have enabled in the stack the application persistance setting and the home folder S3 in storage. Do you have any advice? Thank you!!

2개 답변
0

The application settings persistence feature persists most files and folders that are contained in the Windows user profile. Per the documentation, that folder is C:\Users%username%. Note that some folders are excluded from being persisted (basically the user data directories).

The S3 Home Folder feature will only persist files and folders that are specifically saved to it. The Home Folder location is C:\Users%username%\My Files\Home Folder. Anything saved outside of this folder will not be persisted by the S3 Home Folder feature. Note that Home Folder mounting begins after the user session begins, so there can be some time after the application attempts to launch that the Home Folder is not yet available.

Since C:\appname is not included in the Windows user profile, or in the S3 Home Folder location, it will not be persisted. If you can move your application's files to either the Windows user profile (except one of the folders not persisted) or the S3 Home Folder location, AppStream 2.0 can then persist it.

전문가
답변함 4년 전
  • Thanks for the quick response, but when installing the application in the image builder, in which folder under C: Users do I install? Administrator,DefaultProfileUser,ImageBuilderAdmin,ImageBuilderTest or Public? Thanks in advance!!

  • I'm not sure I understand the question - the application can be installed to any location. If you're trying to create default settings for that application, they should be saved to the default user profile - either via using the Template User on the image builder, or saving directly to C:\Users\Default\AppData\Roaming. Then your application refers to that file, usually using %appdata%. %appdata% will always reflect the users profile, and the application settings persistence feature persists it.

0

Nothing you save in a folder off the C Drive like that will persist. App Settings Persistence is in the user's APPDATA folder, and Home Folders is an actual folder that you must intentionally save data to, it's not going to proactively scan folders as you are suggesting.

AWS
전문가
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠