Review Request 119552: Kdeclarative: Introduce org.kde.kio component

Marco Martin notmart at gmail.com
Thu Jul 31 16:54:08 UTC 2014



> On July 31, 2014, 2:21 p.m., Aleix Pol Gonzalez wrote:
> > src/qmlcontrols/kioplugin/kio.cpp, line 33
> > <https://git.reviewboard.kde.org/r/119552/diff/1/?file=294573#file294573line33>
> >
> >     What about creating a url handler for krun things?
> >     http://qt-project.org/doc/qt-4.8/qdesktopservices.html#url-handlers
> 
> Marco Martin wrote:
>     that would also work.
>     where it would be installed tough?
>     still a kio import?
> 
> Aleix Pol Gonzalez wrote:
>     Well, we just need to call QDesktopServices::setUrlHandler, we could just put it in libplasma or KGuiAddons (like help:/).
>     
>     That's how we do it for the help:/ url handler:
>     
>     Q_GLOBAL_STATIC(UrlHandler, s_handler)
>     
>     static void initializeGlobalSettings()
>     {
>         QDesktopServices::setUrlHandler(QStringLiteral("help"), s_handler, "openHelp");
>     }
>     
>     Q_COREAPP_STARTUP_FUNCTION(initializeGlobalSettings)

depends if we want that krun:/ url be available from everywhere..


- Marco


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/119552/#review63571
-----------------------------------------------------------


On July 31, 2014, 10:54 a.m., Antonis Tsiapaliokas wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/119552/
> -----------------------------------------------------------
> 
> (Updated July 31, 2014, 10:54 a.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: kdeclarative
> 
> 
> Description
> -------
> 
> With the specific component we will be able to open files,documents,applications etc.
> Because until now we are not able to open them.
> 
> 
> Diffs
> -----
> 
>   src/qmlcontrols/CMakeLists.txt bab913b 
>   src/qmlcontrols/kioplugin/CMakeLists.txt PRE-CREATION 
>   src/qmlcontrols/kioplugin/kio.h PRE-CREATION 
>   src/qmlcontrols/kioplugin/kio.cpp PRE-CREATION 
>   src/qmlcontrols/kioplugin/kioplugin.h PRE-CREATION 
>   src/qmlcontrols/kioplugin/kioplugin.cpp PRE-CREATION 
>   src/qmlcontrols/kioplugin/qmldir PRE-CREATION 
> 
> Diff: https://git.reviewboard.kde.org/r/119552/diff/
> 
> 
> Testing
> -------
> 
> Everything seems to work ok.
> 
> * Applications open properly if we pass their desktop file as a parameter
> * Files and images are opening properly
> 
>  
> 
> 
> Thanks,
> 
> Antonis Tsiapaliokas
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20140731/48ad295f/attachment-0001.html>


More information about the Plasma-devel mailing list