Skip to content

Commit 75de179

Browse files
committed
Add jamesdsp autostart and remove old script to apply gtk3 config
1 parent ad9ed70 commit 75de179

4 files changed

Lines changed: 36 additions & 18 deletions

File tree

biglinux-improve-compatibility/usr/bin/big-execute-after-user-login

Lines changed: 0 additions & 6 deletions
This file was deleted.

biglinux-improve-compatibility/usr/lib/systemd/user/big-execute-after-user-login.service

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[Unit]
2+
Description=Jamesdsp Autostart
3+
4+
# If jamesdsp is set to start automatically, this file will indeed start.
5+
Requires=pipewire-pulse.socket
6+
ConditionUser=!root
7+
Wants=pipewire.service pipewire-session-manager.service
8+
After=pipewire.service pipewire-session-manager.service
9+
Conflicts=pulseaudio.service
10+
11+
[Service]
12+
Type=simple
13+
# If grep fails (exit code 1), the service will not start.
14+
# We use %h to represent the user's home folder.
15+
ExecCondition=/bin/sh -c "grep -q 'AutoStartEnabled=true' %h/.config/jamesdsp/application.conf"
16+
17+
ExecStart=jamesdsp -t
18+
Restart=on-failure
19+
Slice=session.slice
20+
21+
[Install]
22+
WantedBy=default.target

pkgbuild/biglinux-improve-compatibility.install

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ post_install() {
55
systemctl start suspend-bluetooth-fix
66
systemctl enable glibc2-41-fix.path
77
systemctl start glibc2-41-fix.path
8-
systemctl --global enable big-execute-after-user-login
8+
systemctl --global enable jamesdsp-autostart
99
if [[ ! -e /etc/sysctl.d/90-sysrq.conf ]]; then
1010
echo 'kernel.sysrq = 502' > /etc/sysctl.d/90-sysrq.conf
1111
fi
@@ -21,10 +21,22 @@ pre_remove() {
2121
systemctl disable biglinux-improve-compatibility
2222
systemctl disable suspend-bluetooth-fix
2323
systemctl disable glibc2-41-fix
24+
if [[ -e /usr/lib/systemd/user/jamesdsp-autostart.service ]]; then
25+
systemctl --global disable jamesdsp-autostart
26+
fi
2427
}
2528

29+
30+
pre_upgrade() {
31+
# Disable before remove on upgrade this package
32+
if [[ -e /usr/lib/systemd/user/big-execute-after-user-login.service ]]; then
33+
systemctl --global disable big-execute-after-user-login
34+
fi
35+
}
36+
37+
2638
post_upgrade() {
27-
systemctl --global enable big-execute-after-user-login
39+
systemctl --global enable jamesdsp-autostart
2840
systemctl enable suspend-bluetooth-fix
2941
systemctl start suspend-bluetooth-fix
3042
systemctl enable glibc2-41-fix.path

0 commit comments

Comments
 (0)