The ght recording feature added in PR#249 attempts to write the screen recording files to the ~/.ght/recordings folder, however the snap does not have permissions to access this folder as snaps do not have access to hidden folders in the user's home directory by default. While this permission can be added, there is no need to actually store the recordings in this folder and instead the $SNAP_USER_COMMON directory can be used instead (e.g. ~/snap/ght/common/recordings).
Steps to recreate
$ sudo snap install ght --channel latest/edge
$ ght assign -i --record
Expected outcome
A recording of the chrome session to be successfully saved in a local directory.
Actual outcome
wolsen@violet:~ $ ght assign -i --record
[Error: EACCES: permission denied, open '/home/wolsen/.ght/recordings/ght_recording_2024-11-05T21-20-32-082Z.mp4'] {
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/home/wolsen/.ght/recordings/ght_recording_2024-11-05T21-20-32-082Z.mp4'
}
? Your Ubuntu One email: ‣ wolsen@violet:~ $
The ght recording feature added in PR#249 attempts to write the screen recording files to the
~/.ght/recordingsfolder, however the snap does not have permissions to access this folder as snaps do not have access to hidden folders in the user's home directory by default. While this permission can be added, there is no need to actually store the recordings in this folder and instead the $SNAP_USER_COMMON directory can be used instead (e.g.~/snap/ght/common/recordings).Steps to recreate
Expected outcome
A recording of the chrome session to be successfully saved in a local directory.
Actual outcome