Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic wayland session start for lxqt #624

Open
wants to merge 74 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
82d549a
Create abstraction for lxqt desktop group
Besanon Oct 22, 2024
5b71547
Update lxqt
Besanon Oct 22, 2024
8072b33
xdg-desktop abstraction added
Besanon Oct 22, 2024
637347b
removing tabs
Besanon Oct 22, 2024
836dbd0
Create startlxqt
Besanon Oct 22, 2024
e886831
Merge branch 'roddhjav:main' into main
Besanon Oct 22, 2024
5164b2b
Create startlxqt
Besanon Oct 22, 2024
b5aa129
fixing startlxqt
Besanon Oct 22, 2024
e81dc05
Delete apparmor.d/profiles-s-z/startlxqt
Besanon Oct 22, 2024
67fcca5
indented by 2 spaces (like other entries)
Besanon Oct 23, 2024
f5e0472
Merge branch 'roddhjav:main' into main
Besanon Oct 23, 2024
f05b9be
Merge branch 'roddhjav:main' into main
Besanon Oct 24, 2024
c47e048
Update sddm
Besanon Oct 24, 2024
d567cb8
Create lxqt-session
Besanon Oct 24, 2024
2ae9304
Update lxqt-session
Besanon Oct 25, 2024
4c2db9b
Update lxqt-session
Besanon Oct 25, 2024
632f62b
removed trailing whitespace
Besanon Oct 25, 2024
6ca9092
Update kscreen_backend_launcher to support lxqt desktop
Besanon Oct 25, 2024
b2e0387
Update lxqt-session
Besanon Oct 27, 2024
a6d8553
Merge branch 'roddhjav:main' into main
Besanon Oct 28, 2024
b8712e7
Create lxqt-panel
Besanon Oct 28, 2024
db1a170
Update lxqt-panel
Besanon Oct 28, 2024
6524dcc
Update lxqt-panel
Besanon Oct 29, 2024
2653354
Update lxqt-panel
Besanon Oct 29, 2024
8c4a457
Merge branch 'roddhjav:main' into main
Besanon Oct 29, 2024
0cfe954
fix conflicting x
Besanon Oct 29, 2024
0aafd35
Update lxqt-panel
Besanon Nov 1, 2024
26b1b32
remove include <abstractions/app-launcher-user>
Besanon Nov 1, 2024
9791b68
Update lxqt-panel
Besanon Nov 1, 2024
38e88ce
Update lxqt-panel
Besanon Nov 1, 2024
d5552d2
Create lxqt-globalkeysd
Besanon Nov 4, 2024
35fa0a2
Create lxqt-about
Besanon Nov 4, 2024
a7da467
Create lxqt-leave
Besanon Nov 4, 2024
554301b
Create lxqt-runner
Besanon Nov 4, 2024
7650a43
Merge branch 'roddhjav:main' into main
Besanon Nov 4, 2024
7433e7b
Update lxqt-leave
Besanon Nov 4, 2024
3ede791
Update lxqt-runner
Besanon Nov 4, 2024
de38a3b
Update lxqt-globalkeysd
Besanon Nov 4, 2024
919d8a2
remove video in lxqt-about
Besanon Nov 4, 2024
e278ea5
Update lxqt-about
Besanon Nov 4, 2024
66b19bf
Update lxqt-runner
Besanon Nov 10, 2024
7e85bd5
remove abstr. in lxqt-globalkeysd
Besanon Nov 10, 2024
bbabc65
remove abstr. in lxqt-runner
Besanon Nov 10, 2024
9452b4f
remove abstr. in lxqt-leave
Besanon Nov 10, 2024
2bee020
Merge branch 'roddhjav:main' into main
Besanon Nov 23, 2024
3abe61d
Create lxqt-config-notificationd
Besanon Nov 23, 2024
08a2987
Create lxqt-config-locale
Besanon Nov 23, 2024
9d94632
Create lxqt-config-printer
Besanon Nov 23, 2024
ee63c44
Create lxqt-config-file-associations
Besanon Nov 23, 2024
26b2e1c
Create lxqt-config-powermanagement
Besanon Nov 23, 2024
41a7535
enable wayland-session for lxqt 2.1
Besanon Nov 23, 2024
3022684
Update lxqt-config-printer
Besanon Nov 23, 2024
c2fa8db
Update lxqt-config-powermanagement
Besanon Nov 23, 2024
af7641a
Update sddm
Besanon Nov 25, 2024
49dab18
Update sddm
Besanon Nov 25, 2024
0f36ac1
adapt pci-rules
Besanon Nov 29, 2024
65ab819
Update lxqt-config-powermanagement
Besanon Nov 29, 2024
b606096
Update lxqt-config-powermanagement
Besanon Nov 29, 2024
6e402fe
Update lxqt-config-powermanagement
Besanon Nov 29, 2024
26c93b6
Update lxqt-config-powermanagement
Besanon Nov 29, 2024
5d6a1ef
Merge branch 'roddhjav:main' into main
Besanon Dec 14, 2024
12eb857
Create startlxqtwayland
Besanon Dec 14, 2024
c647263
Create lxqt-notificationd
Besanon Dec 14, 2024
557d804
Update startlxqtwayland
Besanon Dec 14, 2024
f7e8a5e
Create lxqt-config-brightness
Besanon Dec 14, 2024
75e824d
Update startlxqtwayland
Besanon Dec 14, 2024
d4e4f3e
Update startlxqtwayland
Besanon Dec 14, 2024
3643618
Update lxqt-config-brightness
Besanon Dec 14, 2024
fe7ce75
Update lxqt-config-notificationd
Besanon Dec 14, 2024
40cbf01
Update lxqt-config-notificationd
Besanon Dec 14, 2024
9e0d84a
Update lxqt-config-notificationd
Besanon Dec 14, 2024
113856a
Update lxqt-notificationd
Besanon Dec 14, 2024
b311245
Update lxqt-notificationd
Besanon Dec 14, 2024
91c2725
Update labwc for use with lxqt
Besanon Dec 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions apparmor.d/groups/lxqt/lxqt-config-brightness
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <[email protected]>
# Copyright (C) 2024 Besanon <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/lxqt-config-brightness
profile lxqt-config-brightness @{exec_path} {
include <abstractions/base>
include <abstractions/lxqt>

@{exec_path} mr,
@{bin}/pkexec rpx,

@{sh_path} rix,

owner @{HOME}/ r,

owner /tmp/@{int} r,

@{sys}/class/backlight/ r,
@{sys}/devices/@{pci}/**/**/drm/card@{int}/card@{int}-eDP-@{int}/amdgpu_bl@{int}/* rw,
@{sys}/devices/@{pci}/**/drm/card@{int}/card@{int}-eDP-@{int}/intel_backlight/* rw,

/dev/tty rw,

include if exists <local/lxqt-config-brightness>
}

# vim:syntax=apparmor
55 changes: 55 additions & 0 deletions apparmor.d/groups/lxqt/lxqt-notificationd
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <[email protected]>
# Copyright (C) 2024 Besanon <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/lxqt-notificationd
profile lxqt-notificationd @{exec_path} {
include <abstractions/base>
include <abstractions/bus-accessibility>
include <abstractions/lxqt>
include <abstractions/nameservice-strict>

dbus receive
bus=session
path="/org/freedesktop/Notifications"
interface="org.freedesktop.DBus.Introspectable"
peer=(name=":[0-9]*.[0-9]*"),
dbus send
bus=session
path="/org/freedesktop/Notifications"
interface="org.freedesktop.Notifications"
peer=(name="org.freedesktop.DBus"),
dbus receive
bus=session
path="/org/freedesktop/Notifications"
interface="org.freedesktop.Notifications"
peer=(name=":[0-9]*.[0-9]*"),

@{exec_path} mr,

@{bin}/lxqt-config-notificationd rPx,

/etc/machine-id r,

owner @{user_cache_dirs}/lxqt-notificationd/ r,
owner @{user_cache_dirs}/lxqt-notificationd/#@{int} rwk,
owner @{user_cache_dirs}/lxqt-notificationd/unattended.list rw,
owner @{user_cache_dirs}/lxqt-notificationd/unattended.list l -> @{user_cache_dirs}/lxqt-notificationd/#@{int},
owner @{user_cache_dirs}/lxqt-notificationd/unattended.list.lock rwk,
owner @{user_cache_dirs}/lxqt-notificationd/unattended.list.@{rand6} rwkl -> @{user_cache_dirs}/lxqt-notificationd/#@{int},

owner /tmp/@{int} r,

/dev/tty rw,
/dev/tty@{int} rw,
owner /dev/tty@{int} rw,

include if exists <local/lxqt-notificationd>
}

# vim:syntax=apparmor
96 changes: 96 additions & 0 deletions apparmor.d/groups/lxqt/startlxqtwayland
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <[email protected]>
# Copyright (C) 2024 Besanon <[email protected]>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/startlxqtwayland
profile startlxqtwayland @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/freedesktop.org>
include <abstractions/fontconfig-cache-read>
include <abstractions/lxqt>
include <abstractions/wayland>
include <abstractions/X-strict>

signal (receive) set=(term) peer=sddm,

@{exec_path} mr,

@{bin}/cat rix,
@{bin}/cut rix,
@{bin}/cp rix,
@{bin}/dirname rix,
@{bin}/labwc rpx,
@{bin}/grep rix,
@{bin}/gawk rix,
@{bin}/mkdir rix,
@{sh_path} rix,
@{bin}/lxqt-session rPx,
@{bin}/systemd-detect-virt rPx,
@{bin}/systemctl rCx -> systemctl,
@{bin}/dbus-update-activation-environment rCx -> dbus,

/usr/share/color-schemes/{,**} r,
/usr/share/desktop-directories/{,**} r,
/usr/share/icu/@{int}.@{int}/*.dat r,
/usr/share/kservices5/{,**} r,
/usr/share/mime/{,**} r,

/etc/locale.alias r,
/etc/machine-id r,
/etc/xdg/menus/{,**} r,

@{HOME}/ r,
owner @{HOME}/.Xauthority r,

owner @{user_cache_dirs}/ rw,
owner @{user_cache_dirs}/#@{int} rw,
@{user_cache_dirs}/ksycoca5_* rwkl -> @{user_cache_dirs}/#@{int},

owner @{user_config_dirs}/#@{int} rw,
owner @{user_config_dirs}/labwc/ rw,
owner @{user_config_dirs}/labwc/** rw,
owner @{user_config_dirs}/lxqt/ rw,
owner @{user_config_dirs}/menus/{,**} r,
owner @{user_config_dirs}/lxqt/wayland/ rw,

owner @{user_share_dirs}/kservices5/{,**} r,
owner @{user_share_dirs}/sddm/wayland-session.log rw,
owner @{user_share_dirs}/sddm/xorg-session.log rw,

owner /tmp/#@{int} rw,
owner /tmp/startlxqt.@{rand6} rwl -> /tmp/#@{int},

owner @{run}/user/@{uid}/ r,
@{PROC}/sys/kernel/core_pattern r,
owner @{PROC}/@{pid}/maps r,

/dev/tty rw,
/dev/tty@{int} rw,

include if exists <local/startlxqtwayland>

profile systemctl flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/app/systemctl>

include if exists <local/startlxqtwayland_systemctl>
}

profile dbus {
include <abstractions/base>

@{bin}/dbus-update-activation-environment mr,

owner @{HOME}/.xsession-errors w,

include if exists <local/startlxqtwayland_dbus>
}
}

# vim:syntax=apparmor
7 changes: 7 additions & 0 deletions apparmor.d/profiles-g-l/labwc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ profile labwc @{exec_path} flags=(attach_disconnected) {
include <abstractions/graphics>
include <abstractions/nameservice-strict>

signal (receive) set=term peer=sddm,

network netlink raw,

@{exec_path} mr,
Expand All @@ -27,11 +29,16 @@ profile labwc @{exec_path} flags=(attach_disconnected) {

/usr/share/libinput/ r,
/usr/share/libinput/*.quirks r,
/usr/share/themes/**/themerc r,
/usr/share/themes/Vent/openbox-3/*.xbm r,
/usr/share/X11/xkb/** r,

owner @{user_config_dirs}/labwc/ r,
owner @{user_config_dirs}/labwc/* r,
owner @{user_config_dirs}/lxqt/wayland/ rw,

owner /dev/shm/wayland.mozilla.ipc.@{int} rw,
owner /dev/shm/wlroots-@{rand6} rw,

@{sys}/class/drm/ r,
@{sys}/class/input/ r,
Expand Down