Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-06-23 02:46:36

wisemagic
Member
From: Louisiana U.S.A.
Registered: 2011-09-17
Posts: 37
Website

Customizing Question

XUbuntu Synaptic Login
xubuntu.png


Standard Debian Synaptic Login
debian.png

Both running Greybird Theme
Same Font

Question: Does anyone know how to make the standard Debian Synaptic login dialog look like the XUbuntu one?

Offline

#2 2019-06-23 07:14:40

ctac
Member
Registered: 2017-05-08
Posts: 57

Re: Customizing Question

What are the differences ?
Password for root: vs Password:
I don't use XUbuntu but I think there is no root account.
The Icon :
In debian the icon is the synaptic icon. To get the defaut key icon, you must remove the line

    <icon_name>synaptic</icon_name> 

in /usr/share/polkit-1/actions/com.ubuntu.pkexec.synaptic.policy
Be careful, It's a system file.
This way, I don't get the same Icon, perhaps It's because I don't use Greybird Theme.
I think you can adjust other différences like font in Setting menu.

Offline

#3 2019-06-23 10:04:45

wisemagic
Member
From: Louisiana U.S.A.
Registered: 2011-09-17
Posts: 37
Website

Re: Customizing Question

NO, don't care about the icon.

Visually,.... the size of the dialog window itself.

Offline

#4 2019-06-23 11:47:30

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Customizing Question

It looks like xubuntu (ubuntu) patches the code to make the string wrap at 70 characters. From https://changelogs.ubuntu.com/changelog … /changelog:

* Auth dialog: Make the label wrap at 70 chars.
    Because GtkWindow doesn't have a default width anymore.
    Thanks to Lars Uebernickel! (via Ubuntu)

The patch file is locate here:

From: Lars Uebernickel <lars@uebernic.de>
Date: Fri, 17 Oct 2014 15:35:25 +0200
Subject: Auth dialog: Make the label wrap at 70 chars

Because GtkWindow doesn't have a default width anymore.

Bug: https://bugzilla.gnome.org/show_bug.cgi?id=738688
Bug-Ubuntu: https://launchpad.net/bugs/1382566
---
 src/polkitgnomeauthenticationdialog.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/polkitgnomeauthenticationdialog.c b/src/polkitgnomeauthenticationdialog.c
index d307516..efd4185 100644
--- a/src/polkitgnomeauthenticationdialog.c
+++ b/src/polkitgnomeauthenticationdialog.c
@@ -574,6 +574,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
   g_free (s);
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+  gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
   gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
 
   /* secondary message */
@@ -601,6 +602,7 @@ polkit_gnome_authentication_dialog_constructed (GObject *object)
     }
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+  gtk_label_set_max_width_chars (GTK_LABEL (label), 70);
   gtk_box_pack_start (GTK_BOX (main_vbox), label, FALSE, FALSE, 0);
 
   /* user combobox */

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-06-23 13:47:16

wisemagic
Member
From: Louisiana U.S.A.
Registered: 2011-09-17
Posts: 37
Website

Re: Customizing Question

Thanks ToZ.

This may be a bit beyond my capabilities. I'm not sure how to install, or patch with this.

Offline

#6 2019-06-23 14:27:16

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Customizing Question

I'm not that familiar with debian. Perhaps the debian forums would be a better place to ask about patching packages. I imagine it would involve using something like quilt.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 541.01 KiB (Peak: 542.29 KiB) ]