Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » HTML viewer definition
HTML viewer definition [message #6879] Sun, 03 December 2006 00:40 Go to next message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Do you mind adding a define HTML_VIEWER to the core package, which defines the HTML viewer (browser) for POSIX systems?
I don't have "htmlview" and changed it to firefox)

#if defined(PLATFORM_WIN32) && !defined(PLATFORM_WINCE)
	ShellExecute(NULL, "open", url, NULL, ".", SW_SHOWDEFAULT);
#endif
#ifdef PLATFORM_POSIX
	system("firefox " + url + "&");
#endif


Matthias


931b81e7ea53320dccc37375b34b38c3
Re: HTML viewer definition [message #6880 is a reply to message #6879] Sun, 03 December 2006 09:28 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
a
ln -s firefox htmlview
works, too Smile

Bas
PS: is there a way to get the default browser on linux systems or at least using gnome/kde functions?
Re: HTML viewer definition [message #6882 is a reply to message #6880] Sun, 03 December 2006 12:43 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
fallingdutch wrote on Sun, 03 December 2006 09:28

a
ln -s firefox htmlview
works, too Smile

Bas
PS: is there a way to get the default browser on linux systems or at least using gnome/kde functions?


Generally $BROWSER environment var.

For Gnome:
gconftool-2 --get /desktop/gnome/url-handlers/http/command

Guido



Re: HTML viewer definition [message #10167 is a reply to message #6879] Sat, 23 June 2007 02:29 Go to previous message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator
AFAIK, according to new standards it should be:
Core/App.cpp line 299
#ifdef PLATFORM_POSIX
	system("xdg-open " + url + "&");   //aris002 -was htmlview
#endif

?
Previous Topic: time format from no. of seconds
Next Topic: bad Italian translation in Core.t
Goto Forum:
  


Current Time: Fri Mar 29 11:16:49 CET 2024

Total time taken to generate the page: 0.01368 seconds