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
68e4b4d4
Commit
68e4b4d4
authored
Apr 09, 2024
by
Иван Мажукин
Committed by
Vitaly Lipatov
Apr 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play switch-to-pipewire: added install mode
parent
74aaff2a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
27 deletions
+59
-27
switch-to-pipeware.sh
prescription.d/switch-to-pipeware.sh
+0
-27
switch-to-pipewire.sh
prescription.d/switch-to-pipewire.sh
+59
-0
No files found.
prescription.d/switch-to-pipeware.sh
deleted
100755 → 0
View file @
74aaff2a
#!/bin/sh
[
"
$1
"
!=
"--run"
]
&&
echo
"Switch to using Pipeware"
&&
exit
.
$(
dirname
$0
)
/common.sh
assure_root
exit
if
[
"
$(
epm print info
-s
)
"
=
"rosa"
]
;
then
dnf_auto
=
''
&&
[
-n
"
$auto
"
]
&&
dnf_auto
=
'-y'
a
=
dnf swap pulseaudio pipewire
--allow-erasing
$dnf_auto
exit
fi
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
fatal
"Only ALTLinux or ROSA are supported"
epm
install
pipewire pipewire-utils pipewire-libs
# TODO: user??
a
=
systemctl
--user
--now
disable pulseaudio.service pulseaudio.socket
a
=
systemctl
--user
--now
enable
pipewire pipewire-pulse
a
=
systemctl
--user
--now
enable
pipewire-media-session.service
a
=
systemctl
--user
mask pulseaudio
#systemctl reboot
echo
"Done. Just you need reboot your system to use Pipeware."
prescription.d/switch-to-pipewire.sh
0 → 100755
View file @
68e4b4d4
#!/bin/sh
[
"
$1
"
!=
"--run"
]
&&
echo
"Switch to using Pipeware"
&&
exit
.
$(
dirname
$0
)
/common.sh
display_help
()
{
echo
"
Использование: epm play switch-to-pipewire [option]
--global
Запуск под рутом: нужен для глобального включения(enable) службы pipewire после установки.
Но запуск(start) этой службы глобально невозможен, так как pipewire работает под пользователем.
--user
Запуск под пользователем: можно сразу включить(enable) службу и запустить(start) её,
но только для конкретного пользователя, у остальных пользователей остаётся pulseaudio."
exit
}
case
"
${
3
}
"
in
'--user'
)
is_root
&&
fatal
"User installation possible only without root"
args
=
'--user --now'
;;
'--global'
)
assure_root
args
=
'--global'
;;
'--help'
|
*
)
display_help
;;
esac
if
[
"
$(
epm print info
-s
)
"
=
"rosa"
]
;
then
dnf_auto
=
''
&&
[
-n
"
$auto
"
]
&&
dnf_auto
=
'-y'
a
=
dnf swap pulseaudio pipewire
--allow-erasing
$dnf_auto
exit
fi
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
fatal
"Only ALTLinux or ROSA are supported"
epm update
epm
install
pipewire pipewire-utils pipewire-libs
# TODO: user??
a
=
systemctl
$args
disable pulseaudio.service pulseaudio.socket
a
=
systemctl
$args
enable
pipewire pipewire-pulse
a
=
systemctl
$args
enable
pipewire-media-session.service
a
=
systemctl
$args
mask pulseaudio
#systemctl reboot
echo
"Done."
if
[[
$args
==
'--global'
]]
;
then
echo
'Just you need restart your session to use Pipeware'
fi
\ No newline at end of file
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