|
|
thunar的告警信息初衷是好的,但我的屏幕本来就不大,thunar的root用户会危害系统的提示就占了一行,(呵呵,吝啬),此补丁去掉该信息(来源于xfce4论坛),需要的下载。使用方法:
cp thunar-no-root-warning.patch /usr/portage/xfce-base/thunar/files/ ;
vim /usr/portage/xfce-base/thunar/thunar-0.8.0-r2.ebuild 为如下 红色)
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}-jpeg.patch"
[color="Red"]epatch "${FILESDIR}/thunar-no-root-warning.patch"
}
emerge thunar --degist -av
thunar-no-root-warning.patch:
Index: thunar-window.c
===================================================================
--- Thunar-0.8.0.orig/thunar/thunar-window.c (revision 25182)
+++ Thunar-0.8.0/thunar/thunar-window.c (working copy)
@@ -586,10 +586,10 @@
{
GtkRadioAction *radio_action;
GtkAccelGroup *accel_group;
- GtkWidget *separator;
+ //GtkWidget *separator;
GtkWidget *menubar;
- GtkWidget *label;
- GtkWidget *ebox;
+ //GtkWidget *label;
+ //GtkWidget *ebox;
GtkWidget *item;
GtkAction *action;
gboolean show_hidden;
@@ -715,6 +715,7 @@
gtk_container_add (GTK_CONTAINER (item), window->throbber);
gtk_widget_show (window->throbber);
+#if 0
/* check if we need to add the root warning */
if (G_UNLIKELY (geteuid () == 0))
{
@@ -739,6 +740,7 @@
gtk_table_attach (GTK_TABLE (window->table), separator, 0, 1, 3, 4, GTK_EXPAND | GTK_FILL, GTK_FILL, 0, 0);
gtk_widget_show (separator);
}
+#endif
window->paned = gtk_hpaned_new ();
gtk_container_set_border_width (GTK_CONTAINER (window->paned), 6); |
|