Commit graph

62 commits

Author SHA1 Message Date
Christoph Dalski
2770d1155a fix: login shell path interpreted as string by modern shells
The single quotes around the login shell path are interpreted as string by modern shells like nushell.
The exec call breaks.

Tested locally with nushell.

Fixes: #221
2026-09-16 22:02:14 +02:00
Hugo Osvaldo Barrera
3bdf11741a Fix hardcoded values for XDG_RUNTIME_DIR
Remove hardcoded values and use the proper backing environment variable
instead.
2026-08-19 16:32:48 -06:00
Hugo Osvaldo Barrera
3e2f7368d0 start-cosmic: use sh
Nothing else is cosmic uses bash, so it's only a dependency for a single
script.

Rewrite start-cosmic as a shell script, dropping the dependency on bash.

No AI/LLM-generated code is included in this PR.
2026-08-19 14:16:43 -06:00
Tony Wasserka
9a55864e81 fix: set XDG_SESSION_DESKTOP in start-cosmic
On NixOS, autologin bypasses cosmic-greeter and instead launches start-cosmic
directly. The XDG_SESSION_DESKTOP variable previously wasn't set hence, which
would break functionality like session commands ("Power Off") in the launcher.
2026-04-13 11:49:23 -06:00
Adil Hanney
02a4c58c3d fix: use QT_QPA_PLATFORMTHEME=qt5ct not qt6ct
The version of qt5ct shipped with Pop!_OS requires this. qt6ct still accepts either value.
2026-03-18 13:53:58 -04:00
Adil Hanney
af9aaf9c1a fix: don't overwrite QT_QPA_PLATFORMTHEME
This lets you set QT_QPA_PLATFORMTHEME in ~/.profile if you need to.
2026-03-18 13:53:58 -04:00
Levi Portenier
59b48b5b3b
Merge pull request #183 from thefossguy/fix-whitespace-vars-checking
start-cosmic: handle ANSI-C quoted strings returned by systemd
2026-03-10 13:16:45 -06:00
Adil Hanney
618624bcc0
feat: enable cutecosmic or qt6ct with QT_QPA_PLATFORMTHEME 2026-02-20 21:36:45 +01:00
Thomas Wouters
7b5fd4de9d
fix: environment variables with spaces 2026-02-03 16:37:32 +01:00
Pratham Patel
a823516ebd
start-cosmic: handle ANSI-C quoted strings returned by systemd 2026-01-30 16:39:46 +05:30
Thomas Wouters
42752142e3 Use mapfile to read environment variables
Looping `tr '\n' ' '` would break if variables contain whitespace
2026-01-28 11:30:46 +01:00
Levi Portenier
77a284009c
Merge pull request #180 from thefossguy/start-cosmic-handle-env-init
start-cosmic: update values of existing env vars
2026-01-27 16:53:52 -07:00
Pratham Patel
32f43be573
start-cosmic: set SSH_AUTH_SOCK only if the correct value can be determined 2026-01-20 23:08:57 +05:30
Pratham Patel
de27085e49
start-cosmic: update values of existing env vars
I could not find any consistent documentation on _which_ environment
variables a DE should populate. GNOME just imports everything[0] from
the current DE-startup-session. KDE imports some DE and KDE specific
variables but again, this isn't defined anywhere (that I could find)
on places like <freedesktop.org>. So instead, lets just update
existing ones.
[0]: d14f6db15e
2026-01-15 01:04:05 +05:30
DeiAsPie
ec64522110
fix: add SSH_AUTH_SOCK to systemd import-environment
Move the systemctl import-environment call after keyring setup so the
SSH_AUTH_SOCK variable exists before being imported into the user
service manager. Remove the earlier duplicate import block.
2026-01-06 01:56:44 +01:00
Mattias Eriksson
f4093070be [i18n] Swedish translation of desktop file 2025-12-09 09:21:00 -07:00
Ashley Wulber
379ce30715 cleanup: logs 2025-09-19 11:26:54 -06:00
Aaron Honeycutt
2441be2ad0
fix: avoid hardcoding keyring daemon path for distros like NixOS 2025-09-05 21:35:34 +02:00
ligenix
4598b7cdf4
fix: start gnome-keyring before cosmic-session & export SSH_AUTH_SOCK 2025-08-29 16:44:53 +02:00
Sebastian Jung
4c72d42731
fix: start gnome-keyring components if the daemon is active 2025-08-20 20:03:55 +02: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
Victoria Brekenfeld
6df4561c19 start-cosmic: Import DCONF_PROFILE into systemd user environment 2025-02-27 20:04:08 +01: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
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
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
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
Jeremy Soller
b3900bc33e
Handle inode/mount-point with cosmic-files 2024-10-04 16:05:16 -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
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
Jeremy Soller
a44e8ddc0a
Fix cosmic-session target 2024-06-24 09:43:26 -06:00
Jeremy Soller
22fe67cfeb
Add Wants=xdg-desktop-autostart.target to systemd target 2024-05-28 10:59:29 -06:00
Jeremy Soller
d8ff9791b0
Use cosmic-store to handle appstream: 2024-05-20 10:14:26 -06:00
Ryan Brue
5613bc6606 fix: set cursor theme to COSMIC 2024-05-03 23:45:11 +02:00
Jeremy Soller
54c0955516
Use cosmic-files for inode/directory 2024-04-19 14:17:16 -06:00
Jeremy Soller
05b6720446
Add default association for rust 2024-03-04 13:02:49 -07:00
Jeremy Soller
b97723b1a6
Assign cosmic-edit to text/markdown 2024-03-04 12:57:59 -07:00
Jeremy Soller
371751d8c8
Fix mimeapps assignment of cosmic-edit 2024-03-04 12:04:25 -07:00
Jeremy Soller
5c948cfb81 Use popsicle for disk images 2024-03-04 11:45:25 -07:00
Jeremy Soller
368adf2d72 Add cosmic-mimeapps.list, derived from gnome-mimeapps.list 2024-03-04 11:45:25 -07:00
Victoria Brekenfeld
e05814291c
Merge pull request #30 from jokeyrhyme/23-use-preferred-shell
fix: use preferred SHELL in login shell mode
2024-01-09 13:49:43 +01:00
Ron Waldon-Howe
bc87ac9918 fix: check before using systemctl 2024-01-09 15:50:00 +11:00
Ron Waldon-Howe
9f256004e7 fix: use preferred SHELL in login shell mode 2024-01-09 15:33:33 +11:00