Flatpak doesn't get properly set up for new users #2

Closed
opened 2022-09-06 15:49:21 +00:00 by a · 0 comments
Owner

The lines

    # Set up Flatpak
    run(['sudo', '-u', username, 'flatpak', 'remote-add', '--if-not-exists', 'flathub',
         'https://dl.flathub.org/repo/flathub.flatpakrepo', '--user'])

fail with error error: Refusing to operate under sudo with --user. Omit sudo to operate on the user installation, or use a root shell to operate on the root user's installation. so Flatpak doesn't get properly set up.

The lines ```python # Set up Flatpak run(['sudo', '-u', username, 'flatpak', 'remote-add', '--if-not-exists', 'flathub', 'https://dl.flathub.org/repo/flathub.flatpakrepo', '--user']) ``` fail with error `error: Refusing to operate under sudo with --user. Omit sudo to operate on the user installation, or use a root shell to operate on the root user's installation.` so Flatpak doesn't get properly set up.
a closed this issue 2022-09-06 15:56:13 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: exozyme/scripts#2
No description provided.