<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gpu-screen-recorder-gnome/gobject-linter.toml, branch debian</title>
<subtitle>GNOME frontend for GPU Screen Recorder
</subtitle>
<id>https://sekoohaka.ddns.net/Debian/gpu-screen-recorder-gnome/atom?h=debian</id>
<link rel='self' href='https://sekoohaka.ddns.net/Debian/gpu-screen-recorder-gnome/atom?h=debian'/>
<link rel='alternate' type='text/html' href='https://sekoohaka.ddns.net/Debian/gpu-screen-recorder-gnome/'/>
<updated>2026-06-10T13:21:58Z</updated>
<entry>
<title>feat: add gettext i18n with translations (vi, de, fr, it, es, pt)</title>
<updated>2026-06-10T13:21:58Z</updated>
<author>
<name>Trung Lê</name>
<email>8@tle.id.au</email>
</author>
<published>2026-06-10T07:32:15Z</published>
<link rel='alternate' type='text/html' href='https://sekoohaka.ddns.net/Debian/gpu-screen-recorder-gnome/commit/?id=e845db5dc4f482f88d1562c0356cd1c65d5f538b'/>
<id>urn:sha1:e845db5dc4f482f88d1562c0356cd1c65d5f538b</id>
<content type='text'>
Wire up internationalization for the app and ship six translations.

Infrastructure:
- meson: import i18n, define GETTEXT_PACKAGE/GSR_LOCALEDIR, add po/ subdir,
  and translate the .desktop and AppStream metainfo via i18n.merge_file
  (renamed to .desktop.in / .metainfo.xml.in).
- main.c: setlocale + bindtextdomain/textdomain so the catalog is loaded.
- po/: LINGUAS, POTFILES.in, meson.build (glib preset).

String marking:
- Wrap every user-visible string with _() across main.c, gsr-window.c, the four
  pages and the shortcut dialog (titles, subtitles, labels, buttons, combo
  display names, notifications, toasts, dialogs, menu items).
- Leave ids/keys untranslated: codec/container/service ids, GAction/icon/CSS
  names, GVariant/format strings, accelerators, etc.

Linting:
- Re-enable gobject-linter's untranslated_string rule (now that i18n exists) as
  an error so new user-visible strings must be wrapped.

Translations (141 messages each, %s/%d/markup placeholders preserved):
- Vietnamese (vi), German (de), French (fr), Italian (it), Spanish (es),
  Portuguese (pt). Codec names, "OK", proper nouns and the product name are
  intentionally left in English. Verified: msgfmt --check-format passes and the
  compiled catalogs resolve (e.g. "Record" -&gt; "Ghi hình" / "Aufnahme" /
  "Enregistrement").
</content>
</entry>
<entry>
<title>ci: exclude global_shortcuts.c from use_auto_cleanup</title>
<updated>2026-06-10T01:57:34Z</updated>
<author>
<name>Trung Lê</name>
<email>8@tle.id.au</email>
</author>
<published>2026-06-10T01:57:34Z</published>
<link rel='alternate' type='text/html' href='https://sekoohaka.ddns.net/Debian/gpu-screen-recorder-gnome/commit/?id=fffd92d8752579a88bd7f9d323934cbc901b6dfd'/>
<id>urn:sha1:fffd92d8752579a88bd7f9d323934cbc901b6dfd</id>
<content type='text'>
Every use_auto_cleanup finding in the D-Bus portal plumbing is a false
positive: floating GVariant references sunk by g_variant_new_tuple/builders,
GVariant* arrays, and the request GDBusProxy that is deliberately kept alive
past the function to receive its reply signal. Converting any of them to
g_autoptr would over-unref and crash, so the rule is excluded for this file
rather than worked around in the (correct) code.
</content>
</entry>
<entry>
<title>ci: adopt gobject-linter as a blocking static-analysis gate</title>
<updated>2026-06-10T00:04:30Z</updated>
<author>
<name>Trung Lê</name>
<email>8@tle.id.au</email>
</author>
<published>2026-06-10T00:04:30Z</published>
<link rel='alternate' type='text/html' href='https://sekoohaka.ddns.net/Debian/gpu-screen-recorder-gnome/commit/?id=f6009527636f8a8017d5b9192efe96a1d03d2028'/>
<id>urn:sha1:f6009527636f8a8017d5b9192efe96a1d03d2028</id>
<content type='text'>
Add gobject-linter (github.com/bilelmoussaoui/gobject-linter) to CI to catch
GObject/GLib correctness and idiom issues.

Config (gobject-linter.toml):
- min_glib_version = 2.80 (libadwaita &gt;= 1.8)
- default_level = error: every enabled rule blocks CI
- type_style ignored: the project deliberately uses plain C scalar types
- untranslated_string ignored: app is not internationalized yet
- use_auto_cleanup downgraded to warn: it mis-fires on floating GVariant
  references (consumed by g_variant_new_tuple/builders) and on objects kept
  alive past the function (the GlobalShortcuts GDBusProxy); converting those to
  g_autoptr would over-unref and crash, so it advises rather than blocks

Workflow (.github/workflows/gobject-linter.yml): runs the official container
image on push/PR, uploads SARIF to code scanning (non-fatal for fork PRs), and
fails the build on any error-level finding.

Code is brought to a green baseline by applying the auto-fixable findings:
- strcmp -&gt; g_strcmp0 (NULL-safe)
- manual g_free/g_strdup -&gt; g_set_str
- manual source removal -&gt; g_clear_handle_id / g_clear_object / g_clear_pointer
- g_string_free(.., FALSE) -&gt; g_string_free_and_steal
- g_idle_add one-shot -&gt; g_idle_add_once (id now stored and cleared in finalize,
  also closing a latent use-after-free if the window is finalized first)
- include ordering and #pragma once

The 37 remaining use_auto_cleanup findings are reported as warnings for
incremental manual review.
</content>
</entry>
</feed>
