You are not logged in.

#1 2015-04-26 19:17:47

yodaz
Member
Registered: 2011-03-08
Posts: 41

[KDE] How to set an url to web browser plasma widget ?

Hi,

I'm using web browser plasma widget, but everytime I close and reopen my session, it resets url to http://www.kde.org instead of last visited url.

In widget's settings, there's no url field. Is there a way to specify a default url or to make this widget remember last visited url ?

Thanks for your help

Offline

#2 2017-05-03 07:20:17

bashz
Member
Registered: 2017-05-03
Posts: 1

Re: [KDE] How to set an url to web browser plasma widget ?

Hi,

To specify default url:
edit /usr/share/plasma/plasmoids/org.kde.plasma.webbrowser/contents/ui/main.qml


set your own url near the end of the file :
    PlasmaExtras.ScrollArea {
        Layout.fillWidth: true
        Layout.fillHeight: true
        WebView {
            id: webview
            url: "http://your.ownDefault.url"
            anchors.fill: parent
        }
    }

Offline

#3 2017-05-03 11:27:34

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: [KDE] How to set an url to web browser plasma widget ?

Thanks for sharing, bashz. I'm going to take this opportunity to close this old thread.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

Board footer

Powered by FluxBB