D18296: Add support for passing cursor information via URL parameters when running kioclient exec.

Gleb Popov noreply at phabricator.kde.org
Mon Mar 25 13:57:14 GMT 2019


arrowd added a comment.


  In D18296#437985 <https://phabricator.kde.org/D18296#437985>, @apol wrote:
  
  > Overall this makes sense to me, this assumes though that there will never be a file ending with `:digit`, is that something we can live with?
  
  
  Judging from
  
        UrlInfo(QString path)
            : line(0), column(0)
        {
            /**
             * first try: just check if the path is an existing file
             */
            if (QFile::exists(path)) {
                /**
                 * create absolute file path, we will e.g. pass this over dbus to other processes
                 * and then we are done, no cursor can be detected here!
                 */
                url = QUrl::fromLocalFile(QDir::current().absoluteFilePath(path));
                return;
            }
    
    such files can still be opened, they just can't receive cursor information.

REPOSITORY
  R126 KDE CLI Utilities

REVISION DETAIL
  https://phabricator.kde.org/D18296

To: arrowd, #plasma, #ktexteditor, broulik
Cc: apol, cullmann, plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190325/5be758a6/attachment-0001.html>


More information about the Plasma-devel mailing list