summaryrefslogtreecommitdiff
path: root/x11/gtk+3/patches/patch-gtk_gtkplacessidebar_c
diff options
context:
space:
mode:
authorVineet Kumar <git@vineetk.net>2026-06-15 14:54:51 -0400
committerVineet Kumar <git@vineetk.net>2026-06-15 14:54:51 -0400
commite81f04fa53e7e01afdc834d9c22b5c982c98f59b (patch)
tree763d6d68516ca9d184ddd2402978adcc4027a99d /x11/gtk+3/patches/patch-gtk_gtkplacessidebar_c
parent92e45e47c29ec037842c4a34ebc0c14143d413ff (diff)
remove all ports to start from clean slateHEADmaster
This is due to the following two reasons: 1. it's very out of date compared with current ports tree (like by 2+ years!) - some of the ports here were mainly just updates I didn't upstream, which have since now been part of openbsd, like verilator 2. removing dependencies is a lot of headache to stay in sync and/or for ports I no longer use - e.g. dbus is very difficult to remove in a desktop while patching to remove from gtk and downstream - I don't want to spend more time reducing number of dependencies when I can be working instead. I no longer have as much free time as I did in high school :(
Diffstat (limited to 'x11/gtk+3/patches/patch-gtk_gtkplacessidebar_c')
-rw-r--r--x11/gtk+3/patches/patch-gtk_gtkplacessidebar_c45
1 files changed, 0 insertions, 45 deletions
diff --git a/x11/gtk+3/patches/patch-gtk_gtkplacessidebar_c b/x11/gtk+3/patches/patch-gtk_gtkplacessidebar_c
deleted file mode 100644
index ce97e17..0000000
--- a/x11/gtk+3/patches/patch-gtk_gtkplacessidebar_c
+++ /dev/null
@@ -1,45 +0,0 @@
1unveil(2): check if the XDG directories exist before showing them on the sidebar
2
3Index: gtk/gtkplacessidebar.c
4--- gtk/gtkplacessidebar.c.orig
5+++ gtk/gtkplacessidebar.c
6@@ -657,6 +657,7 @@ add_special_dirs (GtkPlacesSidebar *sidebar)
7 */
8 if (path == NULL ||
9 path_is_home_dir (path) ||
10+ !g_file_test (path, G_FILE_TEST_IS_DIR) ||
11 g_list_find_custom (dirs, path, (GCompareFunc) g_strcmp0) != NULL)
12 continue;
13
14@@ -709,7 +710,8 @@ get_desktop_directory_uri (void)
15 /* "To disable a directory, point it to the homedir."
16 * See http://freedesktop.org/wiki/Software/xdg-user-dirs
17 */
18- if (path_is_home_dir (name))
19+ if ((name == NULL) || path_is_home_dir (name) ||
20+ !g_file_test (name, G_FILE_TEST_IS_DIR))
21 return NULL;
22
23 return g_filename_to_uri (name, NULL, NULL);
24@@ -1091,6 +1093,11 @@ update_places (GtkPlacesSidebar *sidebar)
25
26 /* home folder */
27 home_uri = get_home_directory_uri ();
28+#if defined(__OpenBSD__)
29+ if (!g_file_test (home_uri, G_FILE_TEST_IS_DIR))
30+ goto skip_home;
31+#endif
32+
33 start_icon = g_themed_icon_new_with_default_fallbacks (ICON_NAME_HOME);
34 add_place (sidebar, PLACES_BUILT_IN,
35 SECTION_COMPUTER,
36@@ -1100,6 +1107,9 @@ update_places (GtkPlacesSidebar *sidebar)
37 g_object_unref (start_icon);
38 g_free (home_uri);
39
40+#if defined(__OpenBSD__)
41+skip_home:
42+#endif
43 /* desktop */
44 if (sidebar->show_desktop)
45 {