Skip to content

GHT record feature writes to inaccessible directory from snap #253

@wolsen

Description

@wolsen

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:~ $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions