Reply
Thread Tools
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#11
Originally Posted by impeham View Post
i don't understand what you're saying - can you give a command example?
In X-Terminal, code:
Code:
browser --view=tab --url="about:mozilla"
will open MicroB with webpage "about:mozilla" loaded. All pages are in tabs within one window.
The screenshot was with:
Code:
browser --view=box --url="about:mozilla"
It's an easier way to to make it open the microb browser with the URL you wish to see, and without the separate bookmarks window opening.

There is also an old discussion, but its dbus command didn't quite work for me.

Also, changing "browser.startup.homepage" in "about:config" seemed to have no effect. Maybe, after restart?

Best wishes...
 

The Following 4 Users Say Thank You to Wikiwide For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#12
@wikiwide
on which system with which version are you running your --view=box or --view=tab options?

On mine N900 with kp50 and microb-engine 20100401-1.9.2-5.2+0m5 they do not work.

But -and only using- the option --url="site_address" works fine.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 3 Users Say Thank You to peterleinchen For This Useful Post:
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#13
Originally Posted by reinob View Post
I tried killing a single browser window with wmctrl -i -c <window id> but it closed all browser windows.
In that case I'm starting to run out of ideas, but you could try to use xdotool to bring the bookmark window on foreground and click alt+f4.

Code:
ID=`xdotool search --name "Web"`
xdotool windowactivate --sync $ID key --clearmodifiers --delay 100 alt+F4
I'm hoping that works, but I'm not sure, because I can't test. There are three things what might need modification:
  1. Search method/application's name
  2. Time given for the X server to bring the window to foreground
  3. Closing method? Does alt+F4 work? Do we need to use cursor instead?
__________________
Couple of my applications:
ConnLock - Advanced phone lock
Sanakirja.org - A Sanakirja.org dictionary client
Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers

Last edited by laasonen; 2012-11-23 at 19:53.
 

The Following 2 Users Say Thank You to laasonen For This Useful Post:
Posts: 669 | Thanked: 433 times | Joined on May 2010
#14
Originally Posted by Wikiwide View Post
In X-Terminal, code:
Code:
browser --view=tab --url="about:mozilla"
will open MicroB with webpage "about:mozilla" loaded. All pages are in tabs within one window.
The screenshot was with:
Code:
browser --view=box --url="about:mozilla"
It's an easier way to to make it open the microb browser with the URL you wish to see, and without the separate bookmarks window opening.

There is also an old discussion, but its dbus command didn't quite work for me.

Also, changing "browser.startup.homepage" in "about:config" seemed to have no effect. Maybe, after restart?

Best wishes...
for me it starts the default browser - opera - how do i use this specifically for microb?
 

The Following User Says Thank You to impeham For This Useful Post:
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#15
Originally Posted by impeham View Post
for me it starts the default browser - opera - how do i use this specifically for microb?
Hmf... I don't even know how to change on Maemo 5 which browser is default...
Maemo 5: 21.2011.38 (CSSU Testing)
Ah, code to start normal window with needed URL without seeing bookmarks window (probably doesn't work when MicroB isn't default browser, though):
Code:
/usr/bin/browser_dbuscmd.sh load_url about:mozilla
Actual D-Bus command can be found inside "/usr/bin/browser_dbuscmd.sh", which belongs to package "microb-eal".
Best wishes.

Originally Posted by peterleinchen View Post
@wikiwide
on which system with which version are you running your --view=box or --view=tab options?

On mine N900 with kp50 and microb-engine 20100401-1.9.2-5.2+0m5 they do not work.

But -and only using- the option --url="site_address" works fine.
What does "browser --help" say? Because my "microb-engine" seems to have exactly the same version, and I have seen these command-line options working before CSSU version of Maemo was installed.
__________________
Per aspera ad astra...

Last edited by Wikiwide; 2012-11-23 at 20:51.
 

The Following 2 Users Say Thank You to Wikiwide For This Useful Post:
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#16
@wikiwide
browser --help
just opens the bookmark window without leaving any message in x-term.

Defining default browser on Maemo is easily done via package 'browser-switchboard'.

If your commands would work it would be smth like
microb --url="about:mozilla"
(but this also opens the bookmark window)
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#17
Originally Posted by peterleinchen View Post
@wikiwide
(but this also opens the bookmark window)
What about, in X-Terminal?
Code:
dbus-send --system --type=method_call --dest="com.nokia.osso_browser" --print-reply /com/nokia/osso_browser/request com.nokia.osso_browser.load_url string:"about:mozilla"
Best wishes.
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#18
Yep, this (of course) works.
But it opens Opera when Opera is the default browser, so not what the OP is asking for ...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
laasonen's Avatar
Posts: 565 | Thanked: 618 times | Joined on Jun 2010 @ Finland
#19
I took a fast look at browser-switchboard's source code and it looks like it replaces microb's dbus service and uses maemo-invoker to open microb when needed.

Something like this might work, if you are lucky:
Code:
/usr/bin/maemo-invoker browser
wmctrl -c Web
/usr/bin/maemo-invoker browser --url http://google.fi
Sure way would be to:
  1. Replace browser-switchboard's dbus-service with microb's dbus service
  2. Close all microb windows, if bookmark window opens
  3. Open webpage via dbus
  4. Replace microb's dbus-service with browser-switchboard's dbus service
__________________
Couple of my applications:
ConnLock - Advanced phone lock
Sanakirja.org - A Sanakirja.org dictionary client
Wlan Driver Selector Applet - Switch easily between stock and bleeding edge drivers

Last edited by laasonen; 2012-11-24 at 13:57.
 

The Following 4 Users Say Thank You to laasonen For This Useful Post:
Posts: 669 | Thanked: 433 times | Joined on May 2010
#20
Originally Posted by laasonen View Post
I took a fast look at browser-switchboard's source code and it looks like it replaces microb's dbus service and uses maemo-invoker to open microb when needed.

Something like this might work, if you are lucky:
Code:
/usr/bin/maemo-invoker browser
wmctrl -c Web
/usr/bin/maemo-invoker browser --url http://google.fi
Sure way would be to:
  1. Replace browser-switchboard's dbus-service with microb's dbus service
  2. Close all microb windows, if bookmark window opens
  3. Open webpage via dbus
  4. Replace microb's dbus-service with browser-switchboard's dbus service
Interesting idea - i'll try it thanks
 

The Following User Says Thank You to impeham For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 07:39.