Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
664e0040
Commit
664e0040
authored
Jun 02, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Nov 09, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add workaround for bwrap (eterbug #17394)
parent
b090e837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
5 deletions
+30
-5
flatpak.sh
prescription.d/flatpak.sh
+30
-5
No files found.
prescription.d/flatpak.sh
View file @
664e0040
...
...
@@ -8,7 +8,7 @@ assure_root
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
fatal
"Only ALTLinux is supported"
#
М
справляет ошибку "enabling unprivileged user namespaces" без перезагрузки
#
И
справляет ошибку "enabling unprivileged user namespaces" без перезагрузки
a
=
sysctl
-w
kernel.unprivileged_userns_clone
=
1
install_portals
=
""
...
...
@@ -32,13 +32,38 @@ EOF
epm
install
--skip-installed
$install_portals
xdg-desktop-portal
epm
install
flatpak flatpak-repo-flathub sysctl-conf-userns
epm
install
--skip-installed
flatpak flatpak-repo-flathub sysctl-conf-userns
if
epm installed plasma5-discover
;
then
epm
install
plasma5-discover-flatpak
epm
install
--skip-installed
plasma5-discover-flatpak
fi
# Без перезагрузки dbus, порталы не заработают
a
=
systemctl try-reload-or-restart dbus
serv dbus reload
echo
"Flatpak successfully installed, but epm play is the preferred way to install the software."
# https://bugzilla.altlinux.org/46690
cat
<<
EOL
> /etc/systemd/system/check-bwrap.service
[Unit]
Description=Check and fix permissions for bwrap
Wants=check-bwrap.path
[Service]
Type=oneshot
ExecStart=/bin/bash -c "CURRENT_PERMISSIONS=\
$(
stat
-c
'%a'
/usr/bin/bwrap
)
; if [ '\
$CURRENT_PERMISSIONS
' != '775' ]; then chmod 0755 /usr/bin/bwrap; fi"
EOL
cat
<<
EOL
> /etc/systemd/system/check-bwrap.path
[Unit]
Description=Watch /usr/bin/bwrap for changes
[Path]
PathModified=/usr/bin/bwrap
[Install]
WantedBy=multi-user.target
EOL
serv on check-bwrap.path
serv start check-bwrap.service
echo
"You need to log out of the session for flatpak to work."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment