Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
uzbl - a usable browser
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Sat May 23, 2009 9:46 am    Post subject: uzbl - a usable browser Reply with quote

To quote their webpage
Quote:
The uzbl browser…

…a keyboard controlled (modal vim-like bindings, or with modifier keys) browser based on Webkit.

very minimal interface. No unnecessary interface elements

controllable through a FIFO and with external scripts.

what is not browsing, is not in uzbl. Things like url changing, loading/saving of bookmarks, saving history,.. are handled through external scripts that you write


In short, uzbl is a webbrowser based in the spirit of the suckless-projekt (dwm, dmenu, wmii, ...), made to have a minimal gui-browser with good rendering (based on WebKit) which puts the user in charge, by allowing him to script it the way he likes - it's not some fullblown but heavy browser like i.e. Firefox.

This thread should be seen as a place for discussion and user generated configs.

deps:
Quote:
git (for downloading)
pkgconfig (for Make/gcc)
libwebkit 1.1.4 or higher
libsoup 2.24 or higher (dep for webkit/gtk+)
gtk 2 something something

GTK+ has been chosen, since there's no real xlib-only webkit-branch, porting to qt-webkit is't that bad either.

build:
Quote:
git clone git://github.com/Dieterbe/uzbl.git
$ cd uzbl
$ make


Edit, ebuild now available at b.g.o, thanks to @Spaulding(scroll down).


Last edited by avx on Sat May 23, 2009 11:43 pm; edited 5 times in total
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Sat May 23, 2009 3:36 pm    Post subject: Reply with quote

I think I just came.
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
fr4nk
n00b
n00b


Joined: 29 May 2004
Posts: 22
Location: Austria

PostPosted: Sat May 23, 2009 3:44 pm    Post subject: Reply with quote

Wow. 8O Thanks for that link! Gonna keep a close eye on that project.

dreadlorde wrote:
I think I just came.


++ on that one :lol:
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Sat May 23, 2009 4:08 pm    Post subject: Reply with quote

Anyone compiled this yet? There doesn't seem the be the webkit version that uzbl requires in portage (unless it's webkit-gtk, which isn't located at webkitgtk.org). Fun.
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Sat May 23, 2009 4:26 pm    Post subject: Reply with quote

Jep, it's webkit-gtk. Using it for about 2-3 weeks now, working good for me, but I need to do some tweaking before deleting my opera.
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Sat May 23, 2009 4:44 pm    Post subject: Reply with quote

Compiling webkit-gtk + libsoup right now. :D
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Sat May 23, 2009 7:31 pm    Post subject: Reply with quote

Here's my ebuild:
http://wklej.org/id/94663/
very ugly & non tested... if you have any suggestions just write to me.
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Sat May 23, 2009 8:14 pm    Post subject: Reply with quote

Looks like it still needs some work; or I didn't install something.
Code:

[/usr/local/src/uzbl]# make -j2
cc  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/webkit-1.0   -Wall -W -DARCH="\"i686\"" -DCOMMIT="\"ae5ccd70b0170418780509578587cbadbcf636bd\"" -lwebkit-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0    uzbl.c   -o uzbl
cc  -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/webkit-1.0   -Wall -W -DARCH="\"i686\"" -DCOMMIT="\"ae5ccd70b0170418780509578587cbadbcf636bd\"" -lwebkit-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0    uzblctrl.c   -o uzblctrl
uzbl.c:54:26: error: libsoup/soup.h: No such file or directory
In file included from uzbl.c:56:
uzbl.h:119: error: expected specifier-qualifier-list before 'SoupSession'
uzbl.h:359: error: expected ')' before '*' token
uzbl.h:363: error: expected ')' before '*' token
uzbl.c:88: error: 'Network' has no member named 'proxy_url'
uzbl.c:88: warning: missing initializer
uzbl.c:88: warning: (near initialization for 'var_name_to_ptr[22].ptr')
uzbl.c:89: error: 'Network' has no member named 'max_conns'
uzbl.c:89: warning: missing initializer
uzbl.c:89: warning: (near initialization for 'var_name_to_ptr[23].ptr')
uzbl.c:90: error: 'Network' has no member named 'max_conns_host'
uzbl.c:90: warning: missing initializer
uzbl.c:90: warning: (near initialization for 'var_name_to_ptr[24].ptr')
uzbl.c:91: error: 'Network' has no member named 'useragent'
uzbl.c:91: warning: missing initializer
uzbl.c:91: warning: (near initialization for 'var_name_to_ptr[25].ptr')
uzbl.c: In function 'download_cb':
uzbl.c:234: warning: implicit declaration of function 'webkit_download_get_uri'
uzbl.c:234: error: 'WebKitDownload' undeclared (first use in this function)
uzbl.c:234: error: (Each undeclared identifier is reported only once
uzbl.c:234: error: for each function it appears in.)
uzbl.c:234: error: expected expression before ')' token
uzbl.c:234: error: invalid operands to binary * (have 'const struct <anonymous> *' and 'const struct <anonymous> *')
uzbl.c:234: warning: initialization makes pointer from integer without a cast
uzbl.c: At top level:
uzbl.c:230: warning: unused parameter 'download'
uzbl.c: In function 'load_uri':
uzbl.c:475: warning: implicit declaration of function 'webkit_web_view_load_uri'
uzbl.c: In function 'set_proxy_url':
uzbl.c:845: error: 'SoupURI' undeclared (first use in this function)
uzbl.c:845: error: 'suri' undeclared (first use in this function)
uzbl.c:845: error: invalid operands to binary * (have 'const struct <anonymous> *' and 'const struct <anonymous> *')
uzbl.c:845: warning: statement with no effect
uzbl.c:847: error: 'Network' has no member named 'proxy_url'
uzbl.c:848: error: invalid operands to binary == (have 'const struct <anonymous>' and 'int')
uzbl.c:848: error: 'Network' has no member named 'proxy_url'
uzbl.c:849: warning: implicit declaration of function 'soup_session_remove_feature_by_type'
uzbl.c:849: error: 'Network' has no member named 'soup_session'
uzbl.c:850: error: 'SOUP_SESSION_PROXY_URI' undeclared (first use in this function)
uzbl.c:853: warning: implicit declaration of function 'soup_uri_new'
uzbl.c:853: error: 'Network' has no member named 'proxy_url'
uzbl.c:853: warning: statement with no effect
uzbl.c:854: error: 'Network' has no member named 'soup_session'
uzbl.c:856: warning: passing argument 2 of 'g_object_set' from incompatible pointer type
uzbl.c:857: warning: implicit declaration of function 'soup_uri_free'
uzbl.c: In function 'set_var_value':
uzbl.c:958: error: 'Network' has no member named 'soup_session'
uzbl.c:959: error: 'SOUP_SESSION_MAX_CONNS' undeclared (first use in this function)
uzbl.c:959: error: 'Network' has no member named 'max_conns'
uzbl.c:959: warning: passing argument 2 of 'g_object_set' from incompatible pointer type
uzbl.c:962: error: 'Network' has no member named 'soup_session'
uzbl.c:963: error: 'SOUP_SESSION_MAX_CONNS_PER_HOST' undeclared (first use in this function)
uzbl.c:963: error: 'Network' has no member named 'max_conns_host'
uzbl.c:963: warning: passing argument 2 of 'g_object_set' from incompatible pointer type
uzbl.c:969: warning: implicit declaration of function 'soup_session_remove_feature'
uzbl.c:969: error: 'Network' has no member named 'soup_session'
uzbl.c:969: warning: implicit declaration of function 'SOUP_SESSION_FEATURE'
uzbl.c:969: error: 'Network' has no member named 'soup_logger'
uzbl.c:973: error: 'Network' has no member named 'soup_logger'
uzbl.c:973: warning: implicit declaration of function 'soup_logger_new'
uzbl.c:973: warning: statement with no effect
uzbl.c:974: warning: implicit declaration of function 'soup_session_add_feature'
uzbl.c:974: error: 'Network' has no member named 'soup_session'
uzbl.c:975: error: 'Network' has no member named 'soup_logger'
uzbl.c: In function 'settings_init':
uzbl.c:1604: error: 'Network' has no member named 'soup_session'
uzbl.c:1604: error: 'handle_cookies' undeclared (first use in this function)
uzbl.c:1604: warning: passing argument 1 of 'g_signal_connect_data' discards qualifiers from pointer target type
uzbl.c: In function 'set_useragent':
uzbl.c:1615: error: 'Network' has no member named 'soup_session'
uzbl.c:1615: error: 'SOUP_SESSION_USER_AGENT' undeclared (first use in this function)
uzbl.c:1615: warning: passing argument 2 of 'g_object_set' from incompatible pointer type
uzbl.c: At top level:
uzbl.c:1619: error: expected ')' before '*' token
uzbl.c:1637: error: expected ')' before '*' token
uzbl.c: In function 'main':
uzbl.c:1669: error: 'Network' has no member named 'soup_session'
uzbl.c:1669: warning: implicit declaration of function 'webkit_get_default_session'
uzbl.c:1669: warning: statement with no effect
make: *** [uzbl] Error 1
make: *** Waiting for unfinished jobs....

_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
fr4nk
n00b
n00b


Joined: 29 May 2004
Posts: 22
Location: Austria

PostPosted: Sat May 23, 2009 8:18 pm    Post subject: Reply with quote

dreadlorde wrote:
Looks like it still needs some work; or I didn't install something.[/code]


You need the masked version of webkit-gtk from portage (version 0_p42162).

Posting this from uzbl, btw. :)
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Sat May 23, 2009 8:24 pm    Post subject: Reply with quote

fr4nk wrote:
dreadlorde wrote:
Looks like it still needs some work; or I didn't install something.[/code]


You need the masked version of webkit-gtk from portage (version 0_p42162).

Posting this from uzbl, btw. :)

Doh!

:p
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Sat May 23, 2009 8:36 pm    Post subject: Reply with quote

Updated 1st post to reflect @Spaulding's ebuild.

@Spaulding, please up it @b.g.o, if you don't have an account there/don't want to, let me know and I'll do it, thanks.
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Sat May 23, 2009 8:45 pm    Post subject: Reply with quote

reffering to fr4nk post I update my ebuild.
Code:

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-libs/cairo/cairo-1.8.6-r1.ebuild,v 1.7 2009/03/27 17:03:18 armin76 Exp $

inherit eutils flag-o-matic libtool git

EGIT_REPO_URI="git://github.com/Dieterbe/uzbl.git"

DESCRIPTION="…a keyboard controlled (modal vim-like bindings, or with modifierkeys) browser based on Webkit."
HOMEPAGE="http://www.uzbl.org"
SRC_URI=""

LICENSE="|| ( LGPL-2.1 MPL-1.1 )"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE=""

RESTRICT="test"

RDEPEND="=net-libs/webkit-gtk-0_p42162[soup]
      net-libs/libsoup
      x11-libs/gtk+"

DEPEND="${RDEPEND}
   >=dev-util/pkgconfig-0.19
   "

src_unpack() {
   git_src_unpack
   cd "${S}"

}

src_compile() {

   emake || die "compile failed"
}

src_install() {
   emake -j1 DESTDIR="${D}" install || die "Installation failed"
   dodoc AUTHORS ChangeLog NEWS README
}


Cheers, any problems? PM! :)
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Sat May 23, 2009 9:41 pm    Post subject: Reply with quote

Is the "emake -j1" needed? Compiles with -j3 without problems for me. Since uzbl isn't that usefull alone, maybe include a USE-flag triggered include of dmenu?

Besides that, nice work and thanks again.

Edit, thanks to @Spaulding, there's now a bug for uzbl at b.g.o.


Last edited by avx on Tue May 26, 2009 2:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Mon May 25, 2009 4:52 am    Post subject: Reply with quote

Anyone else have webkit-gtk-0_p42162 fail to compile?
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Mon May 25, 2009 10:06 am    Post subject: Reply with quote

Code:
[I] net-libs/webkit-gtk
     Available versions:  0_p40220 {M}(~)0_p42162 {coverage debug gstreamer pango soup sqlite svg xslt}
     Installed versions:  0_p42162(03:19:36 09.04.2009)(coverage soup sqlite svg -debug -gstreamer -pango -xslt)
Worked without problems on ~amd64.

What errors do you get?
Back to top
View user's profile Send private message
fr4nk
n00b
n00b


Joined: 29 May 2004
Posts: 22
Location: Austria

PostPosted: Mon May 25, 2009 10:42 am    Post subject: Reply with quote

Also, there is a new version in portage: 1.1.7. Maybe that one works for you.
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Mon May 25, 2009 6:57 pm    Post subject: Reply with quote

fr4nk wrote:
Also, there is a new version in portage: 1.1.7. Maybe that one works for you.

It sure does, and all I have to say is that I already love this browser. :D
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Mon May 25, 2009 9:43 pm    Post subject: Reply with quote

Sweet, glad you like it :)

Following the dwm-mailinglist, it doesn't seem like the vertical-patch for dmenu will be accepted upstream, but since this is pretty usefull for our needs here, maybe someone is willing to post an ebuild including the patch to bugzilla? Be faster than me, I'll go to bed :p
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Tue May 26, 2009 1:16 am    Post subject: Reply with quote

What's the significance of the dmenu vertical patch with uzbl?
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Tue May 26, 2009 2:39 pm    Post subject: Reply with quote

The original dmenu presents choices only in a horizontal, i.e. left to right, fashion, which is pretty akward to read, if you use it to switch between several instances of uzbl by the pages names or urls. Think about having 10+ tabs open in ff/o and you can barely read the first few letters of a tab. On the contrary, the vertical dmenu presents the choices as a list from up to down, so there is way more space to fit a long url, because every entry gets a single line. Of course, if you have something like 50 instances of uzbl, your screen will be pretty much only a dmenu, but since it reduces the options to the findings of your typing, this doesn't stay long.

Here's a screeny of the vertical dmenu in action(on the right side).
Back to top
View user's profile Send private message
dreadlorde
Apprentice
Apprentice


Joined: 16 Dec 2008
Posts: 243
Location: /adm/timezone/US_Michigan

PostPosted: Tue May 26, 2009 7:05 pm    Post subject: Reply with quote

ph030 wrote:
The original dmenu presents choices only in a horizontal, i.e. left to right, fashion, which is pretty akward to read, if you use it to switch between several instances of uzbl by the pages names or urls. Think about having 10+ tabs open in ff/o and you can barely read the first few letters of a tab. On the contrary, the vertical dmenu presents the choices as a list from up to down, so there is way more space to fit a long url, because every entry gets a single line. Of course, if you have something like 50 instances of uzbl, your screen will be pretty much only a dmenu, but since it reduces the options to the findings of your typing, this doesn't stay long.

Here's a screeny of the vertical dmenu in action(on the right side).

Ah. Is there some other patch for dmenu that shows running apps? Because I can only launch apps with dmenu.
:?
_________________
Ludwig von Mises Institute
Quote:
I am not to be a shepherd, I am not to be a grave-digger. No longer will I speak to the people; for the last time I have spoken to the dead.
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Tue May 26, 2009 7:49 pm    Post subject: Reply with quote

What do you want to do with the resulting list? You can pipe anything to dmenu, i.e. something like `ps aux | grep something | dmenu`.
Back to top
View user's profile Send private message
Dieter@be
Guru
Guru


Joined: 03 Apr 2005
Posts: 314
Location: Wetteren, Belgium

PostPosted: Thu May 28, 2009 7:07 pm    Post subject: Reply with quote

Someone posted an ebuild on http://www.uzbl.org/wiki/gentoo_ebuild

feel free to improve that page.

And glad you guys like it :D
_________________
Nothing beats a ride on the Gentoo learning curve.
2 Gentoo Linux boxes - 2 Arch Linux boxes - Love all four
Say no to i386 binaries! -- Adopt an unanswered topic
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2151

PostPosted: Thu May 28, 2009 9:51 pm    Post subject: Reply with quote

@Dieter@be, IIRC I read on the arch-forums that your eventually planning to fork dmenu under a new name and include the vertical patches. Is this still planned?

Another question, maybe I overlooked it, but how do I handle mailto-links(actually I haven't even tried, just crossed my mind at this very moment :p )? Edit, what about a cli-switch to start uzbl in a defined size and position, something like the common "-g 800x600+400+200"?
Back to top
View user's profile Send private message
Dieter@be
Guru
Guru


Joined: 03 Apr 2005
Posts: 314
Location: Wetteren, Belgium

PostPosted: Fri May 29, 2009 5:26 pm    Post subject: Reply with quote

ph030 wrote:
@Dieter@be, IIRC I read on the arch-forums that your eventually planning to fork dmenu under a new name and include the vertical patches. Is this still planned?

Another question, maybe I overlooked it, but how do I handle mailto-links(actually I haven't even tried, just crossed my mind at this very moment :p )? Edit, what about a cli-switch to start uzbl in a defined size and position, something like the common "-g 800x600+400+200"?

I suggested that the guy who wrote the patch submits it upstream and tries to get it merged, and otherwise maintains the fork himself. If that doesn't happen someone else should do it. (I'm not the best candidate but I will if I have to)
both of your suggestions are actually on our todo list.
_________________
Nothing beats a ride on the Gentoo learning curve.
2 Gentoo Linux boxes - 2 Arch Linux boxes - Love all four
Say no to i386 binaries! -- Adopt an unanswered topic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum