Notices


Reply
Thread Tools
Posts: 45 | Thanked: 11 times | Joined on Aug 2008
#581
Originally Posted by Laughing Man View Post
sure, i'll contact you tomorrow as i'm about to head to bed.
likewise...
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#582
I'll try to see if it fails for me too, but later, because I have to shutdown the power in my home now.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#583
Browser-proxy.py opens the links from xchat allright.
Mauku links open allright too.
Chinook OS here, so no browserd daemon nostalgy.
Life's good

Thank you again xiojason!

EDIT: here the hack can be toggled on/off by changing /usr/share/dbus-1/services/com.nokia.osso_browser.service on the fly. Worth a button on personal menu...

EDIT EDIT: now that the main bookmarks pane can open the tear browser, we need a way to use tear to add bookmars there - it must be some other kind of dbus service, right?
__________________
Ernesto de Bernardis


Last edited by debernardis; 2009-07-14 at 07:17.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#584
Fails here, too, if a Tear window is already open. Can't say I'm that bothered as I got into the habit of copying and pasting links (when accels is disabled...) into the address bar and at least I don't have to see the default browser again.
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#585
Oh, ****, just discovered that the Vala compiler has a little option named "--disable-dbus-transformation", guess what it does... Disables the freaky automatic DBus name capitalization... grrr. I guess I'll just integrate xiojason's code in Tear ... Or do you prefer to have an external daemon which handles this task?
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 

The Following 2 Users Say Thank You to Bundyo For This Useful Post:
xiojason's Avatar
Posts: 36 | Thanked: 74 times | Joined on Jun 2009 @ Seattle, WA, USA
#586
Originally Posted by Bundyo View Post
I guess I'll just integrate xiojason's code in Tear ... Or do you prefer to have an external daemon which handles this task?
I say build it in! As an toggleable option, ideally, of course.
 

The Following 2 Users Say Thank You to xiojason For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#587
I already converted your code to Vala, but had a problem running it (the auto capitalization was my initial problem with DBus)

Code:
using GLib;
using Gtk;
using DBus;
using Osso;

BrowserProxyServer server;

[DBus (name = "com.nokia.osso_browser")]
public class BrowserProxyServer : GLib.Object {

	[DBus (visible = false)]
    public void OpenAddress(string uri) {
        uri.printf();
		Process.spawn_async( null, ("/usr/bin/dbus-send --session --type=method_call --print-reply --dest=com.nokia.tear "+
									"/com/nokia/tear com.nokia.Tear.OpenAddress string:"+uri).split(" "),
							 null, 0, null, null );
    }
	
    public int load_url(string uri) {
        warning( "load_url" );
        this.OpenAddress( uri );
        return 1;
    }

    public int open_new_window(string uri) {
		warning( "open_new_window" );
        return this.load_url( uri );
	}
	
}

public class BrowserProxy : GLib.Object {
	
	construct {
		var connection = DBus.Bus.get( BusType.SESSION );
		
        dynamic DBus.Object bus = connection.get_object ("org.freedesktop.DBus",
                                                   "/org/freedesktop/DBus",
                                                   "org.freedesktop.DBus");
                                                   
		uint request_name_result = bus.request_name ("com.nokia.osso_browser", (uint) 0);

        if (request_name_result == DBus.RequestNameReply.PRIMARY_OWNER)
	        connection.register_object ("/com/nokia/osso_browser", server);
	}
		
    static int main (string[] args) {
        Osso.Context ctx;

        Gtk.init (ref args);
        
        ctx = new Osso.Context("BrowserProxy", "0.1", false, null);
        if (ctx.display_state_on() != Osso.Status.OK)
            warning("Osso Initialization failed.");
            
        server = new BrowserProxyServer();
        var pbrowser = new BrowserProxy();
        Gtk.main();
        
        return 0;
    }
}
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Posts: 4,556 | Thanked: 1,624 times | Joined on Dec 2007
#588
Hmm noticed something interesting. For the links that don't open on the first try in mauku you can try again and then it will work.
__________________
Originally Posted by ysss View Post
They're maemo and MeeGo...

"Meamo!" sounds like what Zorro would say to catherine zeta jones... after she slaps him for looking at her dirtily...
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#589
Originally Posted by Bundyo View Post
I already converted your code to Vala, but had a problem running it
This also fails to load up another Tear window for me if Tear is already open

(Built with --disable-dbus-transformation to make sure)
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#590
Yes, just found out that there is some bug in Vala if I disable the auto transformations, it fails to found some of its own methods... Probably because they were auto capitalized. Great!
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Reply

Tags
browserd fix, microb killer, webkit


 
Forum Jump


All times are GMT. The time now is 04:33.