Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 23 Oct 2019, 18:59
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
WebSearch 0.5
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 5 [67 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 3678
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 13 Dec 2018, 11:59    Post subject:  WebSearch 0.5
Subject description: Internet search bar
 

Bonjour,
Everything is in the title and images...

0.5 version (20181227):
- Browser selector in Preferences (optionally displayed in the WebSearch bar)
- Check Internet connection using the option "no-check-certificate" (MochiMoppel)
- /root/Choices/URI/https link to defaultbrowser automatically created if not existing (MochiMoppel)
- Engines info files - en, fr - new formatting ("|" instead of "tabs" > fredx181)
- Engine scripts modified to allow selected browser to work instead of xdg-open
- Spanish translation (nilsonmorales - 0.4)
- French translation

0.4 version (20181219):
- WebSearch bar/icons size (mfb)
- Display WebSearch as desktop application (needs gtkdialog-desklet)
- Engines info files - en, fr - (English file created by musher0)
- Run WebSearch at startup
- Now check for Internet connection when clicking the "Find" button to avoid the warning message if WebSearch configured to be run at startup and connection not yet active
- Changed /root to $HOME (vovchik)
- French translation updated
- gtktc file renamed as gtkrc_ws to avoid overwritting of gtkrc 2Pc file (for ToOpPy users)

0.3 version (20181217):
- JWM options excluded from Preferences when JWM is not active
- Blended background or foreground JWM colors taken into account and selectable separately (Wink radky)
- http://google.com changed to http://duckduckgo.com (Wink musher0)
- French translation

0.2 version (20181215):
- Engines are stored in the application "engines" directory and have each their own configuration file. They can now be dynamically listed, managed and user can create its own configuration file if an engine is missing.
36 search engines available (dynamically):
    - 500px
    - Ask
    - Bandcamp
    - Bing
    - CNN
    - Cplusplus
    - Crunchyroll
    - Docker Hub
    - Dribbble
    - DuckDuckGo
    - eBay
    - Ecosia
    - Facebook
    - Gibiru
    - Giphy
    - Google
    - Internet Archive
    - Lilo
    - Netflix
    - NhacCuaTui
    - Pinterest
    - Quora
    - Qwant
    - Rotten Tomatoes
    - Slideshare
    - SoundCloud
    - Stack Overflow
    - Swisscows
    - The Register
    - Twitter
    - Vimeo
    - Wikipedia
    - WolframAlpha
    - Yahoo
    - Yandex
    - YouTube

0.1 version (20181212):
More than 20 search engines available (statically):
    - Ask
    - Bing
    - DuckDuckGo
    - eBay
    - Ecosia
    - Facebook
    - Gibiru
    - Giphy (Animated GIFs)
    - Google
    - Internet Archive (Digital library)
    - Lilo
    - Pinterest
    - Quora
    - Qwant
    - Slideshare (Presentations)
    - Swisscows
    - Vimeo
    - Wikipedia
    - Yahoo
    - Yandex
    - YouTube
Cheers!
181228_122831_775x60_easyshot.jpg
 Description   
 Filesize   63.66 KB
 Viewed   189 Time(s)

181228_122831_775x60_easyshot.jpg

181227_122120_530x573_easyshot.jpg
 Description   
 Filesize   47.09 KB
 Viewed   234 Time(s)

181227_122120_530x573_easyshot.jpg

websearch-0.5_all.pet
Description 
pet

 Download 
Filename  websearch-0.5_all.pet 
Filesize  27.69 KB 
Downloaded  90 Time(s) 
gtk2desklet-3.1.pet
Description  Additional program to display WebSearch as desktop application
pet

 Download 
Filename  gtk2desklet-3.1.pet 
Filesize  32.08 KB 
Downloaded  88 Time(s) 
websearch-0.4_all.pet
Description 
pet

 Download 
Filename  websearch-0.4_all.pet 
Filesize  18.11 KB 
Downloaded  108 Time(s) 
websearch-0.3_all.pet
Description 
pet

 Download 
Filename  websearch-0.3_all.pet 
Filesize  15.34 KB 
Downloaded  103 Time(s) 
websearch-0.2_all.pet
Description 
pet

 Download 
Filename  websearch-0.2_all.pet 
Filesize  14.57 KB 
Downloaded  91 Time(s) 
websearch-0.1_all.pet
Description 
pet

 Download 
Filename  websearch-0.1_all.pet 
Filesize  11.55 KB 
Downloaded  134 Time(s) 

_________________

A second life for your PCs...

Last edited by Argolance on Thu 10 Jan 2019, 05:07; edited 11 times in total
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 2811
Location: South Australia :-(

PostPosted: Thu 13 Dec 2018, 19:17    Post subject:  

@Argolance, very nice.

I tried it in Fatdog64 and it is missing the green arrow.

I substituted your line (about : 350)
Code:
<pixmap><input file>/usr/share/icons/hicolor/16x16/actions/gtk-go-forward-ltr.png</input></pixmap>
with
Code:
<pixmap stock-icon-size=\"3\"><input file stock=\"gtk-go-forward\"></input></pixmap>
so you don't need to include the arrow icon.

Originally I hadn't installed it, just ran the script so it couldn't find your added icon.

Thanks for this, very handy.

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Argolance


Joined: 06 Jan 2008
Posts: 3678
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 14 Dec 2018, 05:44    Post subject:  

Bonjour,
Quote:
Originally I hadn't installed it, just ran the script so it couldn't find your added icon.

I would have used the stock icon if I succeeded in giving it the right size. It was indeed to big: so, thanks for the trick!
Quote:
Thanks for this, very handy.

The pleasure is all mine! Smile

Cordialement.

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4125
Location: holland

PostPosted: Fri 14 Dec 2018, 08:34    Post subject:  

Thanks, works great !!

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2647

PostPosted: Fri 14 Dec 2018, 08:48    Post subject:  

What about Wolfram?
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3678
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 14 Dec 2018, 09:54    Post subject:  

amigo wrote:
What about Wolfram?

    1st step:
    Line 110:
    Code:
    #web search
    function FIND[...]

    Copy/past these lines (just after the lines related to Wikipedia):
    Code:
    elif  [ "$ENGINE" = "WolframAlpha" ]; then
       SEARCHTXT=$(echo "$SEARCHTXT" | sed 's/^/+/;s/ /+/g')
       xdg-open https://www.wolframalpha.com/input/?i="$SEARCHTXT"

    2nd step:
    Edit /root/.websearch/websearch_engines and add WolframAlpha (case sensitive) to the list, just after Wikipedia (to respect the alphabetical order).

NOTE: please, if you wish some engines to be added to the script, feel free to tell it!

Thanks.

_________________

A second life for your PCs...

Last edited by Argolance on Sat 15 Dec 2018, 13:41; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0

Joined: 04 Jan 2009
Posts: 14414
Location: Gatineau (Qc), Canada

PostPosted: Fri 14 Dec 2018, 12:40    Post subject:  

Hi Argo.

Ça marche pas. / It doesn't work.
Quote:
[~]>whereis websearch
websearch: /usr/bin/websearch /usr/local/websearch /usr/share/applications/websearch.desktop

[~]>websearch

(And the cursor stays there, blinking, forever and ever, amen.)
(Et le curseur reste là, à clignoter, dans les siècles des siècles, amen.)
Is there a remedy?

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
fredx181


Joined: 11 Dec 2013
Posts: 4125
Location: holland

PostPosted: Fri 14 Dec 2018, 13:01    Post subject:  

musher0 wrote:

Ça marche pas. / It doesn't work.


Could be because you don't have "xdg-open" maybe, check with:
Code:
which xdg-open


It's part of package xdg-ulils.

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3678
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 14 Dec 2018, 13:20    Post subject:  

musher0 wrote:
Ça marche pas. / It doesn't work.

Ça marche pô? Rolling Eyes
Ben mon colon, pour un "vieux de la vieille", tu ne donnes pas beaucoup de grain à moudre, hein!
Quel Puppy,? Que dit la console? Peut-être en effet te manque-t-il xdg-open mais ça m'étonnerait. De mon côté, j'ai testé sur Stretch 7.5, Tahr 6.0.5 et il semble que là en tout cas, tout est OK, mais...

Last edited by Argolance on Fri 14 Dec 2018, 13:21; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
musher0

Joined: 04 Jan 2009
Posts: 14414
Location: Gatineau (Qc), Canada

PostPosted: Fri 14 Dec 2018, 13:20    Post subject:  

I have it:
Code:
[~]>which xdg-open
/usr/bin/xdg-open

Edit, 2minutes later:
Actually, it's here:
Code:
[/usr/local/bin]>lg xdg-open
-rwxr-xr-x 1 451 nov 29  2015 xdg-open*

With contents:
Code:
#!/bin/bash
#this script created by Jemimah. see: http://murga-linux.com/puppy/viewtopic.php?t=63400&start=150
#110115 xdg-open used to be a symlink to defaulthandler.

case "$1" in
        '') exit
                ;;
        *://*) exec rox -U "$1"
                ;;
        *@*.*) exec rox -U "mailto:${1}"
                ;;
        *) exec rox "$1"
                ;;
        magnet:*) exec transmission "$1"
                ;;
esac

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3678
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 14 Dec 2018, 13:44    Post subject:  

@musher0
Nos messages se sont croisés, sans doute n'as-tu pas vu ma réponse/question ci-dessus?
Argolance wrote:
Quel Puppy? Que dit la console?

Code:
# websearch
???????

et (par exemple):
Code:
# xdg-open https://www.google.com/search?q=murga+linux+musher0
Wink
_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
musher0

Joined: 04 Jan 2009
Posts: 14414
Location: Gatineau (Qc), Canada

PostPosted: Fri 14 Dec 2018, 18:34    Post subject:  

Hello Argo.

The console says « rien », it just hangs there.
The Pup is xenialPup-706.

Will try your search about me! Laughing Finding yourself being a long
process...

Edit, a minute later:
I didn't find anything!!! Becôz I have everything google blocked in my
hosts file. Twisted Evil

Edit, a few hours later:
I found something, however (pls see attached pic) Laughing, with J. Assange's
surfraw. Puppy version is here, on augras' ElkArte Puppy forum, « en bas »

Vu que Monsieur Assange et cie ont déja créé quelque chose, pourquoi
ne pas t'en servir comme base ? / Since Mr. Assange & Co have already
created something, why not use it as a base?

BFN / À+
Finding-Tarot_Readings-with-Assange's-surfraw.jpg
 Description   
 Filesize   201.13 KB
 Viewed   512 Time(s)

Finding-Tarot_Readings-with-Assange's-surfraw.jpg


_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3678
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 15 Dec 2018, 09:54    Post subject:  

Bonjour,
musher0 wrote:
The console says « rien », it just hangs there.
The Pup is xenialPup-706.

I tested WebSearch on Slacko 6.3.0 and Xenialpup 7.5. I noticed that it works well on Xenialpup but doesn't on Slacko.
Running in console, I got:
Code:
# websearch
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2001/12/soap-envelope"><env:Body xmlns:rox="http://rox.sourceforge.net/SOAP/ROX-Filer"><env:Fault xmlns:rpc="http://www.w3.org/2001/12/soap-rpc" xmlns:env="http://www.w3.org/2001/12/soap-envelope"><faultcode>Failed</faultcode><faultstring>https://www.duckduckgo.com/?q=+Murga+LINUX: no handler for https</faultstring></env:Fault></env:Body></env:Envelope>

This was solved while creating a link to /usr/local/bin/defaultbrowser called "https" in /root/Choices/URI.
You probably encountered the same problem.

Arrow WebSearch 0.2 is available. Details in the first message of this topic.

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
musher0

Joined: 04 Jan 2009
Posts: 14414
Location: Gatineau (Qc), Canada

PostPosted: Sat 15 Dec 2018, 12:31    Post subject:  

Hello, Argolance.

I tested your version 2, from console and by clicking on the
websearch.desktop file, and it still does not work on this Pup. If it's relying
on any jwm structure or element (as you sometimes do), my WM's of
choice at present are either pekwm or echinus. So that could be an
explanation.

I checked:
xenialPup-706 has a https symlink at ROX's URI directory
and
Jemimah's xdg-open script is so general and well done that it can pick
up everything.

Sorry, it's all the time I have for testing at present. Regular life is calling
this Saturday in the form of "shop for winter tires urgently"! Smile

BFN.

_________________
musher0
~~~~~~~~~~
Je suis né pour aimer et non pas pour haïr. (Sophocle) /
I was born to love and not to hate. (Sophocles)
Back to top
View user's profile Send private message 
radky

Joined: 02 May 2010
Posts: 979

PostPosted: Sat 15 Dec 2018, 13:30    Post subject:  

Hi Argolance,

Thank you for WebSearch -- very nice!

There is one small problem for JWM themes in which the background or foreground color is defined by blended nomenclature.

For example, WebSearch does not currently parse ACTIVE_BG='#3F3F3F:#000000' in the Aurora theme below:

MENU_BG='#181920'
ACTIVE_BG='#3F3F3F:#000000'
FOREGROUND='#A5A5A5'
PAGER_BG='#353746'
FG_SELECTED='gray65'

One possible solution would be an additional cut command to select the first of the two blended colors (cut -d':' -f1).

---

WebSearch is also quite useful for desktop environments other than JWM. However, in such cases, the 'Sticky, Above and JWM colors' options in Preferences are no longer valid. Would it be helpful to test the current desktop environment and exclude those options in Preferences when JWM is not active?

Again, your contributions to the Puppy community are much appreciated.

_________________
PupMates
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 5 [67 Posts]   Goto page: 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0709s ][ Queries: 12 (0.0096s) ][ GZIP on ]