[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: start menu icon
From:       Franklin Weng <franklin () goodhorse ! idv ! tw>
Date:       2017-08-30 22:52:00
Message-ID: CADtxYXa7TMvsaJJXhuTNgeupMpZ3JxKrWZ02O0mQqtk+G-adpQ () mail ! gmail ! com
[Download RAW message or body]

Awesome, thanks!  I'll check it out soon and report back.  And I promise at
least a blog post will be written to record all these.


Franklin

-- 
Sent from my phone

2017年8月31日 03:51,"Marco Martin" <notmart@gmail.com>寫道:

> On mercoledì 30 agosto 2017 15:07:26 CEST Franklin Weng wrote:
> >
> > *looking at Eike with shining eyes*
> > Could you please tell me in more detail about "ship an applet config
> > initialization script in look-n-feel package"?  In the package
>
> documentation-wise i fear all there is is:
> https://userbase.kde.org/KDE_System_Administration/
> PlasmaDesktopScripting#Look_and_Feel_dependent_default_setup_for_applets
>
> but says oretty much all there is to know
> you would have in your look and feel a file called
> contents/plasmoidsetupscripts/org.kde.plasma.kickoff.js
>
> in that script you can access to a global variable called "applet"
> to which you can access and write its configuration like the normal
> layout.js
> script
> , you would have something like:
>
> applet.currentConfigGroup = ["General"]
> applet.writeConfig("icon", "file:///usr/share/whatever/my/icon/path")
> applet.reloadConfig();
>
> --
> Marco Martin
>

[Attachment #3 (text/html)]

<div dir="auto">Awesome, thanks!   I&#39;ll check it out soon and report back.   And \
I promise at least a blog post will be written to record all these.<div \
dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">Franklin<br><div \
dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">-- <br>Sent from my \
phone</div></div></div></div><div class="gmail_extra"><br><div \
class="gmail_quote">2017年8月31日 03:51,&quot;Marco Martin&quot; &lt;<a \
href="mailto:notmart@gmail.com">notmart@gmail.com</a>&gt;寫道:<br \
type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">On mercoledì 30 agosto 2017 \
15:07:26 CEST Franklin Weng wrote:<br> &gt;<br>
&gt; *looking at Eike with shining eyes*<br>
&gt; Could you please tell me in more detail about &quot;ship an applet config<br>
&gt; initialization script in look-n-feel package&quot;?   In the package<br>
<br>
documentation-wise i fear all there is is:<br>
<a href="https://userbase.kde.org/KDE_System_Administration/" rel="noreferrer" \
target="_blank">https://userbase.kde.org/KDE_<wbr>System_Administration/</a><br> \
PlasmaDesktopScripting#Look_<wbr>and_Feel_dependent_default_<wbr>setup_for_applets<br>
 <br>
but says oretty much all there is to know<br>
you would have in your look and feel a file called<br>
contents/plasmoidsetupscripts/<wbr>org.kde.plasma.kickoff.js<br>
<br>
in that script you can access to a global variable called &quot;applet&quot;<br>
to which you can access and write its configuration like the normal layout.js<br>
script<br>
, you would have something like:<br>
<br>
applet.currentConfigGroup = [&quot;General&quot;]<br>
applet.writeConfig(&quot;icon&quot;, \
&quot;file:///usr/share/whatever/<wbr>my/icon/path&quot;)<br> \
applet.reloadConfig();<br> <br>
--<br>
Marco Martin<br>
</blockquote></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic