Author Topic: ugly linux gui  (Read 16294 times)

0 Members and 1 Guest are viewing this topic.

Azrael

  • Guest
ugly linux gui
« on: April 15, 2008, 12:41:41 AM »
Avast for Linux has a very ugly GUI. The interface doesn't use my gtk theme and its fonts are horribly rendered. It's probably because Avast uses a statically linked gtk libraries instead of dynamically linked ones.
I'm using Ubuntu 7.10.
See the attached screenshot.

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67194
Re: ugly linux gui
« Reply #1 on: April 15, 2008, 03:43:41 AM »
Yeah... it will be good a great improvement on the GUI for Linux...
Welcome to avast forums.
The best things in life are free.

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: ugly linux gui
« Reply #2 on: April 22, 2008, 03:12:52 PM »
Hallo,
there's a wrapper that checks for compatible libs on your machine, and when there's an error, it uses its own basic version libs that come with the application.


sinclair:/mnt/storage/t/10-3-08/buildF# objdump -x /usr/lib/avast4workstation/bin/avastgui
...
Dynamic Section:
  NEEDED      libgthread-2.0.so.0
  NEEDED      libgtk-x11-2.0.so.0
  NEEDED      libgdk-x11-2.0.so.0
  NEEDED      libatk-1.0.so.0
  NEEDED      libgdk_pixbuf-2.0.so.0
  NEEDED      libm.so.6
  NEEDED      libpangox-1.0.so.0
  NEEDED      libpango-1.0.so.0
  NEEDED      libgobject-2.0.so.0
  NEEDED      libgmodule-2.0.so.0
  NEEDED      libdl.so.2
  NEEDED      libglib-2.0.so.0
  NEEDED      libesmtp.so.5
  NEEDED      libpthread.so.0
  NEEDED      libavastengine-4.so.7
  NEEDED      libc.so.6
  NEEDED      libX11.so.6
  SYMBOLIC    0x0
...

pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

Kreuger

  • Guest
Re: ugly linux gui
« Reply #3 on: July 05, 2008, 06:29:39 PM »
Sorry to bring back this old topic but his there a way to find out which libraries Im missing? Im sure I have all of them already but it still gives me that ugly interface

pupusse

  • Guest
Re: ugly linux gui
« Reply #4 on: July 06, 2008, 09:33:46 AM »
well ,

to avoid this ugly GUI , use avast in commandline mode !!!

that's what I do and it's easier and faster.  ;)

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: ugly linux gui
« Reply #5 on: July 09, 2008, 04:32:15 PM »
Sorry to bring back this old topic but his there a way to find out which libraries Im missing? Im sure I have all of them already but it still gives me that ugly interface

having them = avast will use them, probably with this ugly result.
having NOT them = avast will use its own libs, which will give standard result

you can edit the wrapper script  to confuse the checks and forcing use of packed-in libs:
if test "x$AVAST_FAILSAFE" != "x1" ; then
    if test "x`$AVAST_PREFIX/bin/testlibs-avastengine 2>/dev/null`" = xOK ; then
        has_avastengine=1
    fi
    if test "x`$AVAST_PREFIX/bin/testlibs-esmtp 2>/dev/null`" = xOK ; then
        has_esmtp=1
    fi
    if test "x`$AVAST_PREFIX/bin/testlibs-x11 2>/dev/null`" = xOK ; then
        has_x11=1
    fi
    if test "x`$AVAST_PREFIX/bin/testlibs-gtk 2>/dev/null`" = xOK ; then
        has_gtk=1
    fi
fi


... just comment this out (or change those =1 to -0). this would do the job.

May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: ugly linux gui
« Reply #6 on: July 09, 2008, 04:35:12 PM »
well ,

to avoid this ugly GUI , use avast in commandline mode !!!

that's what I do and it's easier and faster.  ;)

Yes, that's what I would say too :). There are plenty of tasks where the command line does the job better... but some people dislike this oldskool wonder ... maybe because it reminds the times when computers were really computers :).;

pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

Offline FreewheelinFrank

  • Avast Evangelist
  • Ultra Poster
  • ***
  • Posts: 4872
  • I'm a GNU
    • Don't Surf in the Nude!
Re: ugly linux gui
« Reply #7 on: July 20, 2008, 12:34:19 AM »
Follow these instructions for a nicer GUI:

Quote
If you like to use GTK 2.x then work your way to the avast directory.
Code:

cd /usr/lib/avast4workstation

Then just remove the

sudo rm -rf lib-x11/

and

sudo rm -rf lib-gtk2/

http://ubuntuforums.org/showthread.php?t=229128
     Bambleweeny 57 sub-meson brain     Don't Surf in the Nude Blog

markjensen

  • Guest
Re: ugly linux gui
« Reply #8 on: July 31, 2008, 02:41:57 AM »
Those commands work great!   However, in order to avoid a difficult-to-reverse error, might I suggest you use the the following alternate commands that are non-destructive:
Code: [Select]
cd /usr/lib/avast4workstation
sudo mv lib-x11 lib-x11~
sudo mv lib-gtk2 lib-gtk2~
as you could easily restore the directories.

But thanks for the post!  I registered just to acknowledge that this did the trick wonderfully!

Offline FreewheelinFrank

  • Avast Evangelist
  • Ultra Poster
  • ***
  • Posts: 4872
  • I'm a GNU
    • Don't Surf in the Nude!
Re: ugly linux gui
« Reply #9 on: July 31, 2008, 08:46:47 AM »
Thanks Mark, but the advice was from the Ubuntu forum, so they deserve the thanks.
     Bambleweeny 57 sub-meson brain     Don't Surf in the Nude Blog

bemular

  • Guest
Re: ugly linux gui
« Reply #10 on: August 22, 2008, 07:47:01 AM »
Does the avast4server have a GUI thingy too? I would love to have one.

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: ugly linux gui
« Reply #11 on: August 22, 2008, 12:53:40 PM »
Does the avast4server have a GUI thingy too? I would love to have one.

hallo,
it's a daemon, in the fact -> a thing that starts silently from sysv-init structure at the beginning, and thus, any user-interaction dependence is not what we want here. yes, we can think about some gui for setting its configuration file, but - aren't vi or emacs the best tool for it? :).

regards,
pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)

bemular

  • Guest
Re: ugly linux gui
« Reply #12 on: August 26, 2008, 08:15:59 AM »
I see. I was hoping for a more visual type than using the avastcmd (that comes with avast4server) for manually scanning the system. The server is actually in my work client's machine. They know very very little of Linux and are used to Windows that they kinda need a GUI. Nevertheless, it's fine at the moment.

Offline zilog

  • Avast team
  • Advanced Poster
  • *
  • Posts: 957
  • or #f0; daa; add a,#a0; adc a,#40
Re: ugly linux gui
« Reply #13 on: August 26, 2008, 10:32:39 AM »
I see. I was hoping for a more visual type than using the avastcmd (that comes with avast4server) for manually scanning the system. The server is actually in my work client's machine. They know very very little of Linux and are used to Windows that they kinda need a GUI. Nevertheless, it's fine at the moment.

avastcmd has nothing to do with the avastd's server suite - it's a standalone cmdline tool, working on its own. maybe you are talking about avastlite? for local scans, there's avastgui (with gui, of course).

regards,
pc
May's Law: Software efficiency halves every 18 months, compensating Moore's Law. (David May, INMOS)