Johan Malm
f4f35a9dff
common/string-helpers.c: add strdup_printf()
2023-06-26 06:30:33 +01:00
Consolatis
82e9e866ec
Enable more compiler warnings
2023-02-01 10:42:22 +01:00
John Lindgren
a54d378e6c
common: Add znew/znew_n() macros
2022-09-18 15:25:19 -04:00
John Lindgren
cb40cdc36c
common: Add additional memory utilities (xzalloc() etc.)
2022-09-17 10:57:30 -04:00
Consolatis
4dce894fda
src/config/session.c: Handle allocation failures
...
Reported-by: @heroin-moose
2022-07-29 06:45:24 +01:00
Consolatis
d6ea0d68cf
src/config/session.c: Update dbus / systemd activation environment
...
This allows xdg-desktop-portal-wlr to work out of the box for screen-recording.
If systemd or dbus is not available the environment update will fail gracefully.
This patch will set XDG_CURRENT_DESKTOP=wlroots but a user may change this by
either having the environment variable set before starting labwc or by having
a different value set in ~/.config/labwc/environment.
Based on PR #461 by @Joshua-Ashton
2022-07-29 06:45:24 +01:00
Johan Malm
edc5338af4
Add command line option -C to specify config directory
...
Also expand usage message to explain what each option means
2022-04-22 17:00:36 +01:00
Johan Malm
71c8aa1361
session: resolve variables in environment file
...
When parsing <key>=<value> pairs to set enrivonment variables,
resolve variables in <value>.
For example, resolve $bar in
foo=$bar
Fix issue #70
2021-10-11 22:15:44 +01:00
Johan Malm
104f635b43
session.c: change "(foo*)" to "(foo *)"
2021-09-24 21:58:46 +01:00
Johan Malm
ebb632419b
*.c: add SPDX-License-Identifier
2021-09-24 21:45:48 +01:00
Johan Malm
82e47ac1f5
Remove src/common/log.c
...
Use wlr_log() instead
2021-07-23 21:15:55 +01:00
Johan Malm
20fd8f59a7
Remove info() and die()
2021-07-22 21:30:17 +01:00
Johan Malm
36d9496149
session.c: fix memory leak
...
Reported-by: Jan Beich (@jbeich)
2020-10-28 20:44:35 +00:00
Johan Malm
4d1acf645c
session: improve info() message
2020-10-22 19:42:06 +01:00
Johan Malm
7e55e2cd09
Add string-helpers.c
2020-10-09 19:46:59 +01:00
Johan Malm
45b13fc9a0
Support ~/.config/labwc/{autostart,environment}
2020-10-08 20:50:20 +01:00