detached 661c030

GIR: Add Flatpak application library path to defaults

Signed-off-by: Felicitas Pojtinger <felicitas@pojtinger.com>
commit
661c03063af6690ea5f3fa8f9cb0150c0630d504
author
Felicitas Pojtinger · · 2025-11-27 05:48 UTC
committer
Jeroen Wijenbergh · · 2025-12-01 16:09 UTC
parent
eae1610
signature
unsigned
1 file · +4 -2
M internal/core/core.go +4 -2
@@ -29,14 +29,16 @@ func PuregoSafeRegister(fptr interface{}, libs []uintptr, name string) {
2929 // paths to where the shared object files should be located
3030 // this is unique per architecture
3131 // Debian/Ubuntu has it split into specific arch folder, Fedora is just /usr/lib64
32+// Flatpak uses /app/lib for application libraries and runtimes don't vendor `pkg-config` as the fallback
3233 // see:
3334 // https://fedora.pkgs.org/38/fedora-x86_64/gtk4-4.10.1-1.fc38.x86_64.rpm.html
3435 // https://fedora.pkgs.org/38/fedora-aarch64/gtk4-4.10.1-1.fc38.aarch64.rpm.html
3536 // https://ubuntu.pkgs.org/23.04/ubuntu-main-amd64/libgtk-4-1_4.10.1+ds-2ubuntu1_amd64.deb.html
3637 // https://ubuntu.pkgs.org/23.04/ubuntu-main-arm64/libgtk-4-1_4.10.1+ds-2ubuntu1_arm64.deb.html
38+// https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html (see --libdir)
3739 var paths = map[string][]string{
38- "amd64": {"/usr/lib/x86_64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},
39- "arm64": {"/usr/lib/aarch64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},
40+ "amd64": {"/app/lib/", "/usr/lib/x86_64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},
41+ "arm64": {"/app/lib/", "/usr/lib/aarch64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},
4042 }
4143
4244 // names is a lookup from library names to shared object filenames
@@ -29,14 +29,16 @@ func PuregoSafeRegister(fptr interface{}, libs []uintptr, name string) {
29 // paths to where the shared object files should be located29 // paths to where the shared object files should be located
30 // this is unique per architecture30 // this is unique per architecture
31 // Debian/Ubuntu has it split into specific arch folder, Fedora is just /usr/lib6431 // Debian/Ubuntu has it split into specific arch folder, Fedora is just /usr/lib64
32+// Flatpak uses /app/lib for application libraries and runtimes don't vendor `pkg-config` as the fallback
32 // see:33 // see:
33 // https://fedora.pkgs.org/38/fedora-x86_64/gtk4-4.10.1-1.fc38.x86_64.rpm.html34 // https://fedora.pkgs.org/38/fedora-x86_64/gtk4-4.10.1-1.fc38.x86_64.rpm.html
34 // https://fedora.pkgs.org/38/fedora-aarch64/gtk4-4.10.1-1.fc38.aarch64.rpm.html35 // https://fedora.pkgs.org/38/fedora-aarch64/gtk4-4.10.1-1.fc38.aarch64.rpm.html
35 // https://ubuntu.pkgs.org/23.04/ubuntu-main-amd64/libgtk-4-1_4.10.1+ds-2ubuntu1_amd64.deb.html36 // https://ubuntu.pkgs.org/23.04/ubuntu-main-amd64/libgtk-4-1_4.10.1+ds-2ubuntu1_amd64.deb.html
36 // https://ubuntu.pkgs.org/23.04/ubuntu-main-arm64/libgtk-4-1_4.10.1+ds-2ubuntu1_arm64.deb.html37 // https://ubuntu.pkgs.org/23.04/ubuntu-main-arm64/libgtk-4-1_4.10.1+ds-2ubuntu1_arm64.deb.html
38+// https://docs.flatpak.org/en/latest/flatpak-builder-command-reference.html (see --libdir)
37 var paths = map[string][]string{39 var paths = map[string][]string{
38- "amd64": {"/usr/lib/x86_64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},40+ "amd64": {"/app/lib/", "/usr/lib/x86_64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},
39- "arm64": {"/usr/lib/aarch64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},41+ "arm64": {"/app/lib/", "/usr/lib/aarch64-linux-gnu/", "/usr/lib64/", "/usr/lib/"},
40 }42 }
41 43
42 // names is a lookup from library names to shared object filenames44 // names is a lookup from library names to shared object filenames

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close