Commit graph

202 commits

Author SHA1 Message Date
Ashley Wulber
b2f4277122 feat: inhibit poweroff button 2025-06-13 17:01:48 -04:00
Michael Aaron Murphy
f187e8d767
Revert "use dbus-update-activation-environment to update/initialize"
This reverts commit c22dcdfe06.
2025-06-11 14:49:02 +02:00
Michael Aaron Murphy
77eee4602b
Revert "update $WAYLAND_DISPLAY and $DISPLAY post login"
This reverts commit dd4fa3daea.
2025-06-11 14:48:55 +02:00
Pratham Patel
dd4fa3daea update $WAYLAND_DISPLAY and $DISPLAY post login
The $WAYLAND_DISPLAY and $DISPLAY are prone to change between `greetd`'s
initialization and the user's login. Therefore, update these environment
variables so systemd services and/or d-bus services use the correct
values post login.
2025-06-03 03:00:25 +02:00
Pratham Patel
c22dcdfe06 use dbus-update-activation-environment to update/initialize
environment variables

The goal is to update the environment variables for the user's systemd
session **and** the services listening on user's d-bus session.

Until now, the variables were updated using the `import-environment`
environment command of `systemctl`. But, it would only be executed if
systemd was present on the host system. Leaving the variables on the
d-bus side either uninitialized or with incorrect values.

Therefore, instead of using `systemctl`, use the
`dbus-update-activation-environment` command to initialize/update the
environment variables for user's d-bus session but also for user's
systemd session. This is done by passing the `--systemd` option.

When systemd is not detected, the command doesn't fail, it simply
doesn't update the variables for user's systemd session. And since a
systemd user session doesn't exist, no harm no foul.
2025-06-03 03:00:25 +02:00
Ashley Wulber
80209d5aad refactor: enter span 2025-04-24 10:03:52 -06:00
Jeremy Soller
ae761c35b0 Fix compilation 2025-04-24 10:03:52 -06:00
Horu
ba561b4097 fix: ignore error when starting service 2025-04-23 09:03:54 -06:00
Michael Aaron Murphy
be18d37bfa
fix(just): wrong path for dconf profile in start-cosmic 2025-04-08 20:13:00 +02:00
Michael Aaron Murphy
37c95bc3aa
fix(debian): dconf profile now installed by justfile 2025-04-07 20:27:25 +02:00
Clayton Craft
bbd803ef75 justfile: install dconf profile
This wasn't being installed by the justfile, so distros using the
justfile for packaging weren't properly installing the dconf profile.

Fixes https://gitlab.alpinelinux.org/alpine/aports/-/issues/17056
2025-04-04 18:42:31 +02:00
Clayton Craft
2324271f5d justfile: use prefix in dconf profile path 2025-04-04 18:42:31 +02:00
ellieplayswow
1ef6af14bb
fix: xdg autostart was not executing 2025-03-23 22:04:38 +01:00
pugaizai
e9858d914c fix: update asyinc-signals to fix loongarch build 2025-03-22 13:06:51 +01:00
ellieplayswow
dd2e666438 Adding autostart flag for use / consts 2025-02-28 17:05:04 +01:00
ellieplayswow
8b4a8baea7 Rustfmt + adding checks for OnlyShowIn / NotShowIn 2025-02-28 17:05:04 +01:00
ellieplayswow
46468e8b8e Getting graphical applications working 2025-02-28 17:05:04 +01:00
ellieplayswow
b21878d549 Hiding autostart functionality behind feature gate "autostart" 2025-02-28 17:05:04 +01:00
ellieplayswow
69987c1a0d Adding in functionality to autostart programs on non-systemd systems 2025-02-28 17:05:04 +01:00
Victoria Brekenfeld
6df4561c19 start-cosmic: Import DCONF_PROFILE into systemd user environment 2025-02-27 20:04:08 +01:00
Jeremy Soller
6d16513d77 Adjust default fonts 2025-02-20 11:24:54 -07:00
Michael Aaron Murphy
fa327adf1f
remove ELECTRON_OZONE env due to flatpaks not having wayland sockets enabled 2025-02-18 02:24:45 +01:00
Michael Aaron Murphy
fae8ac6a9f
fix: set OZONE default to auto 2025-02-17 20:11:52 +01:00
Michael Aaron Murphy
8020134a9f
set ELECTRON_OZONE_PLATFORM_HINT to wayland 2025-02-15 00:48:36 +01:00
Reilly Brogan
6e48e12443 feat: Import environment variables from systemd user manager 2025-01-14 21:57:19 +01:00
Dan MacLeod
38e3686579
fix: steam fails when dconf profile lacks ending newline 2025-01-10 15:28:23 +01:00
Jeremy Soller
998cf3fba7
Switch media handler to COSMIC Player 2025-01-02 09:34:01 -07:00
Jeremy Soller
346a1a6529
Merge branch 'master' of https://github.com/pop-os/cosmic-session 2025-01-02 09:30:49 -07:00
Jeremy Soller
f5b36c5e56
Add cosmic-player 2025-01-02 09:30:40 -07:00
Ryan Brue
6650b910b5 fix: don't set XCURSOR_THEME in start-cosmic
Setting XCURSOR_THEME messes up custom cursor theme overrides, so let's set the Cosmic cursor theme another way in distros and such

Signed-off-by: Ryan Brue <ryanbrue.dev@gmail.com>
2024-12-31 17:02:49 +01:00
Ashley Wulber
0a3b9f5376 chore: update launch-pad 2024-12-17 16:31:56 -05:00
Victoria Brekenfeld
78316ba39c build: Make dconf profile path explicit and configurable 2024-12-06 15:47:47 +01:00
Victoria Brekenfeld
87a0644435 session: Add custom dconf profile
This causes the cosmic-session to have a separate
writable dconf-database (while still inheriting
the default user database).

This will (partially) prevent issues such as
https://github.com/pop-os/cosmic-epoch/issues/1174
in the future, as other desktops won't pick up
cosmic's dconf profile.
2024-12-04 16:51:50 +01:00
Ashley Wulber
53237d147f cleanup 2024-11-22 10:40:54 -05:00
Ashley Wulber
60ff2241ed feat: try to gracefully shut down settings daemon when exiting 2024-11-22 10:40:54 -05:00
Ashley Wulber
2612282fcf feat: a11y 2024-11-01 12:52:21 -04:00
Victoria Brekenfeld
5a0df6afb6 main: Only launch xdg-portal on COSMIC 2024-10-31 10:51:10 -07:00
Victoria Brekenfeld
c44946be82 comp: Allow to specify different compositors 2024-10-31 10:51:10 -07:00
Ian Douglas Scott
342369eaf9 Launch cosmic-idle 2024-10-30 10:58:29 -06:00
Ashley Wulber
c3a35f323b
fix: log cosmic-settings-daemon output 2024-10-16 20:33:10 -04:00
Jeremy Soller
b3900bc33e
Handle inode/mount-point with cosmic-files 2024-10-04 16:05:16 -06:00
Jeremy Soller
657b330669
Launch cosmic-files-applet 2024-10-03 15:42:49 -06:00
Jeremy Soller
e9d682ce37
Use cosmic-store for mime:// 2024-10-03 14:57:43 -06:00
Jeremy Soller
a3ba1adaff
Handle flatpakref with cosmic-store 2024-10-02 11:22:30 -06:00
Jeremy Soller
51670b5914
Add store to mimeapps, cleanup unused entries 2024-10-02 09:59:19 -06:00
Jeremy Soller
d06f94a8a0
Add system-config-printer to recommends 2024-09-17 10:06:12 -06:00
Victoria Brekenfeld
39c7f93800 start-cosmic: Set QT auto scaling env variables
This makes sure together with our XSettings implementation in cosmic-comp,
that QT apps running on their xcb backend will react to the DPI values
we are setting by changing their internal scaling.
2024-09-02 20:04:56 +02:00
Foxinatel
65d4ee1fe2 Make failure to connect to journald a warning, not a hard error 2024-08-29 11:59:48 +02:00
Foxinatel
6519f1d068 Builds without systemd should no longer hard depend on journald 2024-08-29 11:59:48 +02:00
Foxinatel
7b1588611c Fix compile-time errors with --no-default-features 2024-08-29 11:59:48 +02:00