Commit Graph

72 Commits

Author SHA1 Message Date
Philip Withnall
b6c12c61f3
gspawn: Rename gspawn.c to gspawn-posix.c
This is the first step towards separating the API documentation and
introspection annotations from the platform-specific implementation, so
we can guarantee that the APIs make it into `GLib-2.0.gir` regardless of
which platform the GIR is built on.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3399
2024-07-15 16:04:51 +01:00
Philip Withnall
57a8834d7b girepository: Add translation support to utility tools
This fixes a few formatting and newline issues in the strings at the
same time, but nothing major.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Fixes: #3263
2024-02-26 18:10:56 +00:00
Philip Withnall
1c60821897 po: Add missing header file to POTFILES.in
Change originally by Piotr in !3257, but the CI has problems with
his name in the author field. Since this change is blocking a release,
I have decided to merge it under my name instead, so that it lands sooner.

In parallel, we are trying to figure out what is broken with the CI so
this does not happen again.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2023-02-13 17:40:09 +00:00
Philip Withnall
0c8f7de55a gdebugcontroller: Add debug controller API and D-Bus implementation
This is intended to provide a uniform interface for controlling whether
the debug output from an application (or service) is emitted, typically
to journald, but actually to wherever the application chooses to output
it.

The main implementation of `GDebugController` is `GDebugControllerDBus`,
which is intended to be used on Linux. Other implementations may be
added in future for other platforms, or larger applications may want to
provide their own implementation which integrates with their ecosystem.

The `GDebugControllerDBus` implementation exposes a D-Bus interface at
`/org/gtk/Debugging` with a method to enable or disable debug
output at runtime.

This could be used by external harnesses, such as GNOME Builder or
systemd, to give a uniform way to get debug output from an application.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Fixes: #1190
2022-01-26 15:19:27 +00:00
Frederic Martinsons
c3a073e96f Add gio launch command to execute desktop file
This command will try to execute a desktop file, before that
it will load the input as a keyfile for checking its existence
and its validity (as a keyfile).
File arguments are allowed after the desktop file.

Closes #54

Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
2020-12-09 08:15:42 +01:00
Piotr Drąg
1cf3ae6343 Update POTFILES.in 2020-06-29 11:48:41 +01:00
Piotr Drąg
aeb85dd3cf Update POTFILES.in 2019-12-12 17:13:00 +01:00
Piotr Drąg
a3157cc59a Update POTFILES.in 2019-01-21 20:51:41 +01:00
Piotr Drąg
6b19907a4f Update POTFILES.in 2017-05-10 13:35:11 +02:00
Bastien Nocera
215c9b7951 guuid: Add UUID helper functions to GLib
Many UUID users will just need a random string, which can be generated
simply by calling the function g_uuid_string_random().

Based on original patch by
Marc-André Lureau <marcandre.lureau@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=639078
2017-02-06 14:40:38 +01:00
Matthias Clasen
37129297a9 Add new files to POTFILES 2016-07-01 16:01:34 -04:00
Piotr Drąg
f3c029978c Updated POTFILES.in 2016-05-23 18:19:51 +02:00
Philip Withnall
c3d6934f18 gio: Add DTLS interfaces
Add a new GDtlsConnection interface, plus derived GDtlsClientConnection
and GDtlsServerConnection interfaces, for implementing Datagram TLS
support in glib-networking.

A GDtlsConnection is a GDatagramBased, so may be used as a normal
datagram socket, wrapping all datagrams from a base GDatagramBased in
DTLS segments.

Test cases are included in the implementation in glib-networking.

https://bugzilla.gnome.org/show_bug.cgi?id=752240
2016-01-18 14:25:06 +00:00
Philip Withnall
4e631d2e5f gio: Add GDatagramBased interface and rebase GSocket on it
GDatagramBased is an interface abstracting datagram-based communications
in the style of the Berkeley sockets API. It may be contrasted to (for
example) GIOStream, which supports only streaming I/O.

GDatagramBased allows socket-like communications to be done through any
object, not just a concrete GSocket (which wraps socket()).

This adds the GDatagramBased interface, and implements it in GSocket.

https://bugzilla.gnome.org/show_bug.cgi?id=697907
2015-10-13 15:33:48 +01:00
Piotr Drąg
d8a7e093b9 Updated POTFILES.in 2015-09-12 19:55:24 +02:00
Piotr Drąg
717ebba9d7 Updated POTFILES.in 2015-07-20 21:39:49 +02:00
Piotr Drąg
f68582356d Updated POTFILES.in 2015-06-03 19:02:12 +02:00
Ryan Lortie
2737ab3201 substantially rework file monitors
Remove all event merging and dispatch logic from GFileMonitor.  The only
implementation of GFileMonitor outside of glib is in gvfs and it already
does these things properly.

Get rid of GLocalDirectoryMonitor.  We will use a single class,
GLocalFileMonitor, for both directory and file monitoring.  This will
prevent every single backend from having to create two objects
separately (eg: ginotifydirectorymonitor.c and ginotifyfilemonitor.c).

Introduce GFileMonitorSource as a thread-safe cross-context dispatch
mechanism.  Put it in GLocalFileMonitor.  All backends will be expected
to dispatch via the source and not touch the GFileMonitor object at all
from the worker thread.

Remove all construct properties from GLocalFileMonitor and remove the
"context" construct property from GFileMonitor.  All backends must now
get the information about what file to monitor from the ->start() call
which is mandatory to implement.

Remove the implementation of rate limiting in GFileMonitor and add an
implementation in GLocalFileMonitor.  gvfs never did anything with this
anyway, but if it wanted to, it would have to implement it for itself.
This was done in order to get the rate_limit field into the
GFileMonitorSource so that it could be safely accessed from the worker
thread.

Expose g_local_file_is_remote() internally for NFS detection.

With the "is_remote" functionality exposed, we can now move all
functions for creating local file monitors to a proper location in
glocalfilemonitor.c

Port the inotify backend to adjust to the changes above.  None of the
other backends are ported yet.  Those will come in future commits.
2015-03-20 11:59:47 -04:00
Piotr Drąg
f6ccb19e1a Updated POTFILES.in 2015-03-10 19:50:30 +01:00
Piotr Drąg
d4122b954f Updated POTFILES.in 2015-03-08 15:39:02 +01:00
Piotr Drąg
03de825c7e Updated POTFILES.in 2015-02-18 13:43:12 +01:00
Piotr Drąg
53abf0dc7d Updated POTFILES.in 2014-12-05 23:04:04 +01:00
Piotr Drąg
f7e2190e74 Updated POTFILES.in 2013-10-17 21:56:55 +02:00
Piotr Drąg
2a4dbbc73a Updated POTFILES.in 2013-07-11 21:09:15 +02:00
Piotr Drąg
454691a4b4 Updated POTFILES.in 2013-04-22 00:37:20 +02:00
Piotr Drąg
afc0a72575 Updated POTFILES.in 2013-02-15 13:45:35 +01:00
Piotr Drąg
6cce4790b7 Updated POTFILES.in 2012-12-12 22:21:17 +01:00
Piotr Drąg
f416ece103 Updated POTFILES.in 2012-07-04 04:25:41 +02:00
Piotr Drąg
88f73eef54 Updated POTFILES.in 2012-04-20 20:50:26 +02:00
Piotr Drąg
3b9791cca6 Updated POTFILES.in 2012-04-17 19:48:59 +02:00
Rico Tzschichholz
fbfad9cf85 Updated POTFILES.in 2012-01-26 14:53:15 +01:00
Piotr Drąg
051d4d846e Updated POTFILES.in 2012-01-23 20:15:30 +01:00
Piotr Drąg
0ed77c4fdd Updated POTFILES.in 2012-01-13 21:11:03 +01:00
Piotr Drąg
605856adfa Updated POTFILES.in 2011-12-09 12:55:40 +01:00
Piotr Drąg
2056906bb7 Updated POTFILES.in 2011-11-15 20:46:17 +01:00
Piotr Drąg
9973383bd0 Updated POTFILES.in 2011-10-17 18:31:48 +02:00
Dan Winship
a9e2305dce po: add missing gtls files to POTFILES.in
Pointed out by Daniel Mustieles
https://bugzilla.gnome.org/show_bug.cgi?id=657138
2011-08-23 08:28:15 -04:00
Andre Klapper
fccaadcdab Add missing files to POTFILES.in 2011-03-10 12:33:58 +01:00
Matthias Clasen
ff8817b631 Update POTFILES.in 2010-11-29 10:49:28 -05:00
Andre Klapper
80de3ca7cc Add missing file to POTFILES.in 2010-09-24 13:15:23 +02:00
Matthias Clasen
bd569dc3c9 Adapt POTFILES.in to source file renaming 2010-09-13 12:27:04 -04:00
Claude Paroz
52a41b81bd Added missing files in POTFILES.in 2010-08-27 20:04:38 +02:00
Nicolas Dufresne
ced1d0e2e7 Implemented SOCKSv4 and SOCKSv4a 2010-08-19 16:32:38 -04:00
Nicolas Dufresne
6fa1136600 Implemented SOCKSv5 proxy support 2010-08-19 16:32:37 -04:00
Matthias Clasen
3e8a9c7b52 Add missing files
Reported in bug 624739
2010-08-05 01:39:58 -04:00
Matthias Clasen
92fab48387 Some cleanups
Always include config.h, make property strings for translation,
add since tags.
2010-06-06 14:24:14 -04:00
Kjartan Maraas
b1bf5a5bb9 Add two missing files 2010-05-23 16:27:08 +02:00
Matthias Clasen
2ec41fad53 Add GDBus files to POTFILES.in 2010-05-16 13:08:01 -04:00
Matthias Clasen
bedf4c3259 Add documentation and translation for gsettings-tool 2010-04-20 22:55:15 -04:00
Paolo Borelli
277b9717da Remove utf8inputstream leftovers in a few other places 2010-03-01 10:24:43 +01:00