budgie-desktop ver.vump

This commit is contained in:
Rmys
2025-11-19 14:30:31 +03:00
parent e39bf9d66b
commit 876829dfd6
12 changed files with 792 additions and 7 deletions
@@ -0,0 +1,51 @@
From 05a9822a465a023968efb28c620e9448c82634db Mon Sep 17 00:00:00 2001
From: Joshua Strobl <me@joshuastrobl.com>
Date: Mon, 29 Jul 2024 21:58:22 +0300
Subject: [PATCH] fix: compilation under newer meson and gcc
Resolves #28
---
meson.build | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
diff --git a/meson.build b/meson.build
index 4344b23..0220a9a 100644
--- a/meson.build
+++ b/meson.build
@@ -4,11 +4,7 @@ project(
version: '1.3',
license: [ 'Apache-2.0' ],
default_options: [
- 'b_lto=false',
'c_std=c11',
- 'buildtype=release',
- 'optimization=3',
- 'werror=true',
'warning_level=3',
],
)
@@ -17,17 +13,16 @@ gnome = import('gnome')
intltool = find_program('intltool-merge')
+# Vala generates bad C code and missing these on gcc 14 will cause FTBFS
+# Additionally, Meson 1.4 unhides warnings from valac-generated C code,
+# which causes unreadable logspam. Reenables prior behavior.
am_cflags = [
- '-Wconversion',
- '-Wformat',
- '-Wformat-security',
- '-Wstack-protector',
- '-Wundef',
- '-Wuninitialized',
- '-fstack-protector',
+ '-w',
+ '-Wno-incompatible-pointer-types',
+ '-Wno-implicit-function-declaration',
]
-
add_global_arguments(am_cflags, language: 'c')
+
meson.add_install_script('scripts/mesonPostInstall.sh')
glib_dep = '>= 2.64.0'
@@ -0,0 +1,54 @@
From 14a62f08fae7855118769a27dd27a92896dbce66 Mon Sep 17 00:00:00 2001
From: David Mohammed <fossfreedom@users.noreply.github.com>
Date: Sun, 8 Dec 2024 15:42:24 +0000
Subject: [PATCH] Support mate-terminal to open files (#2)
* Support mate-terminal to open files
* Address review
---------
Co-authored-by: Campbell Jones <git@serebit.com>
---
src/file_item.vala | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/file_item.vala b/src/file_item.vala
index e4bd101..e09f59d 100644
--- a/src/file_item.vala
+++ b/src/file_item.vala
@@ -234,11 +234,12 @@ public class FileItem : DesktopItem {
if (
(preferred_terminal != "alacritty") && // Not Alacritty, no tab CLI flag
(preferred_terminal != "gnome-terminal") && // Not GNOME Terminal which uses --tab instead of --new-tab
+ (preferred_terminal != "mate-terminal") && // Not Mate Terminal which uses --tab instead of --new-tab
(preferred_terminal != "tilix") && // No new tab CLI flag (that I saw anyways)
(preferred_terminal != "kitty") // No new tab CLI flag for Kitty, either
) {
args += "--new-tab"; // Add --new-tab
- } else if ((preferred_terminal == "gnome-terminal") && (_type == "file")) { // GNOME Terminal, self explanatory really
+ } else if ((preferred_terminal == "gnome-terminal" || preferred_terminal == "mate-terminal") && (_type == "file")) {
args += "--tab"; // Create a new tab in an existing window or creates a new window
}
@@ -267,11 +268,17 @@ public class FileItem : DesktopItem {
editor = "nano";
}
- if (preferred_terminal == "gnome-terminal") { // gnome-terminal will not work with -e
+ if (preferred_terminal == "gnome-terminal") {
+ // gnome-terminal will not work with -e
args += "--";
args += editor;
args += path;
- } else {
+ } else if (preferred_terminal == "mate-terminal") {
+ // mate-terminal does not pass params with -e
+ args += "-x";
+ args += editor;
+ args += path;
+ } else {
args += "-e";
args += editor;
args += path;
@@ -0,0 +1,45 @@
From c2a95e0f1e8fce170d90ff8d556f14612c6eacd3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
Date: Fri, 31 Oct 2025 15:27:54 +0100
Subject: [PATCH] Add GNOME Console to supported terminals (#35)
GNOME Console (kgx) is the default terminal in GNOME since version 42.
---
src/budgie_desktop_view.vala | 1 +
src/file_item.vala | 6 +++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/budgie_desktop_view.vala b/src/budgie_desktop_view.vala
index c207a41..da19057 100644
--- a/src/budgie_desktop_view.vala
+++ b/src/budgie_desktop_view.vala
@@ -37,6 +37,7 @@ public const int ITEM_MARGIN = 10;
public const string[] SUPPORTED_TERMINALS = {
"alacritty",
"gnome-terminal",
+ "kgx",
"kitty",
"konsole",
"mate-terminal",
diff --git a/src/file_item.vala b/src/file_item.vala
index e09f59d..1debdcb 100644
--- a/src/file_item.vala
+++ b/src/file_item.vala
@@ -234,12 +234,16 @@ public class FileItem : DesktopItem {
if (
(preferred_terminal != "alacritty") && // Not Alacritty, no tab CLI flag
(preferred_terminal != "gnome-terminal") && // Not GNOME Terminal which uses --tab instead of --new-tab
+ (preferred_terminal != "kgx") && // Not GNOME Console which uses --tab instead of --new-tab
(preferred_terminal != "mate-terminal") && // Not Mate Terminal which uses --tab instead of --new-tab
(preferred_terminal != "tilix") && // No new tab CLI flag (that I saw anyways)
(preferred_terminal != "kitty") // No new tab CLI flag for Kitty, either
) {
args += "--new-tab"; // Add --new-tab
- } else if ((preferred_terminal == "gnome-terminal" || preferred_terminal == "mate-terminal") && (_type == "file")) {
+ } else if (
+ (preferred_terminal == "gnome-terminal" || preferred_terminal == "kgx" || preferred_terminal == "mate-terminal") &&
+ (_type == "file")
+ ) {
args += "--tab"; // Create a new tab in an existing window or creates a new window
}
@@ -20,6 +20,11 @@
<Dependency>meson</Dependency>
<Dependency>vala-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">05a9822a.patch</Patch>
<Patch level="1">14a62f08.patch</Patch>
<Patch level="1">c2a95e0f.patch</Patch>
</Patches>
</Source>
<Package>
@@ -40,6 +45,13 @@
</Package>
<History>
<Update release="3">
<Date>2025-11-19</Date>
<Version>1.3</Version>
<Comment>version bump</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2023-10-30</Date>
<Version>1.3</Version>