]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
5 years agoMerge branch 'release/20.04'
Elvis Angelaccio [Sun, 5 Jul 2020 15:26:52 +0000 (17:26 +0200)]
Merge branch 'release/20.04'

5 years agoWrite correct value for "Open in application" script execution setting
Wolfgang Bauer [Tue, 30 Jun 2020 18:01:39 +0000 (18:01 +0000)]
Write correct value for "Open in application" script execution setting

KIO actually uses "alwaysAsk", "execute", and "open" as possible values.

When reading the setting, map unknown values to "open" like KIO does.
That also provides compatibility with older dolphin versions.

BUG: 421294
FIXED-IN: 20.04.3

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Fri, 3 Jul 2020 20:53:42 +0000 (22:53 +0200)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit a91d1db06293f00382b88150a29594642d5217c8)

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Fri, 3 Jul 2020 20:53:42 +0000 (22:53 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade release service version to 20.04.3.
Christoph Feck [Fri, 3 Jul 2020 20:29:05 +0000 (22:29 +0200)]
GIT_SILENT Upgrade release service version to 20.04.3.

5 years ago## Summary
Yann Holme-Nielsen [Mon, 29 Jun 2020 22:27:33 +0000 (22:27 +0000)]
## Summary
* Adds a "Copy location" item, after the "Copy" Context item and Edit Menu, which will attempt to copy the path of the fist item into clipboard.

## Reasoning
Most File Managers have this option through one or another way.
Also using the default Copy option often results in different behaviour depending on the target software, Konsole will take the path. Other Programs will use the URI. Which ultimately could lead to non optimal User Experience.

## Notes
* Should the target file **not** be on a local hard drive, this fallback to using the remote URL, feedback is wanted on that matter.

FEATURE: 407004

5 years agoMerge branch 'release/20.04'
Alexander Lohnau [Tue, 23 Jun 2020 15:42:06 +0000 (17:42 +0200)]
Merge branch 'release/20.04'

5 years agoFix file preview for desktop files with absolute icon paths
Alexander Lohnau [Tue, 23 Jun 2020 06:22:42 +0000 (08:22 +0200)]
Fix file preview for desktop files with absolute icon paths

BUG: 423326

5 years agoExpand DolphinQuery to support different Url schemes
Ismael Asensio [Mon, 22 Jun 2020 12:33:29 +0000 (12:33 +0000)]
Expand DolphinQuery to support different Url schemes

5 years agoGeneralize Player protocol support
Kai Uwe Broulik [Mon, 8 Jun 2020 20:45:27 +0000 (22:45 +0200)]
Generalize Player protocol support

In preparation for AFC support in KFilePlacesModel.
This needs to go into stable since otherwise once Solid announces
AFC devices Dolphin would see them but try to open them as MTP URL

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 18 Jun 2020 06:34:48 +0000 (08:34 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 18 Jun 2020 05:20:24 +0000 (07:20 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Thu, 18 Jun 2020 03:48:38 +0000 (05:48 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Thu, 18 Jun 2020 00:28:52 +0000 (02:28 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 17 Jun 2020 14:57:19 +0000 (16:57 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 17 Jun 2020 13:40:57 +0000 (15:40 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Wed, 17 Jun 2020 12:16:01 +0000 (14:16 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 17 Jun 2020 09:41:34 +0000 (11:41 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoPlaces: Use Solid::Device::DisplayName for DisplayRole
Méven Car [Tue, 16 Jun 2020 17:37:08 +0000 (19:37 +0200)]
Places: Use Solid::Device::DisplayName for DisplayRole

Summary:
BUG: 415281
FIXED-IN: 20.08
Counter-part of D26113

Test Plan:
Before:
{F8215025}
After:
{F8215027}

Reviewers: ngraham, #dolphin

Reviewed By: ngraham, #dolphin

Subscribers: broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26114

5 years agoSVN_SILENT made messages (.desktop file) - always resolve ours
l10n daemon script [Sat, 13 Jun 2020 03:34:06 +0000 (05:34 +0200)]
SVN_SILENT made messages (.desktop file) - always resolve ours

In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sat, 13 Jun 2020 00:21:10 +0000 (02:21 +0200)]
GIT_SILENT made messages (after extraction)

5 years agodoc: Document 'Skip local previews' option
Yuri Chornoivan [Wed, 10 Jun 2020 05:50:08 +0000 (08:50 +0300)]
doc: Document 'Skip local previews' option

5 years agoProvide ability to configure size cut-off for local file previews
Gastón Haro [Tue, 9 Jun 2020 17:03:30 +0000 (11:03 -0600)]
Provide ability to configure size cut-off for local file previews

Summary:
FileWidgets read from kdeglobals the property "MaximumSize" under "PreviewSettings" to decide if a preview will be generated for that file.
There is no current GUI to change that file size limit. On the other hand Dolphin ignores it.

This patch aims to fix that by adding new configuration options to Dolphin. That is a new spinbox in Dolphin settings under General -> Previews tab.

Test Plan:
1 - Set up a local folder with 2 jpg images of less and more than 1 MB respectively.
2 - Go to Dolphin Preferences. General -> Previews and check "JPEG Images" from
    the list. And set "Skip previews for files above:" to 1MB.
3 - Navigate to the afore mentioned folder. Only the image of size less than 1 MB should
    show a preview.

BUG: 331240

Reviewers: ngraham, #dolphin, meven, elvisangelaccio

Reviewed By: ngraham, #dolphin, meven, elvisangelaccio

Subscribers: cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28402

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 8 Jun 2020 17:47:51 +0000 (19:47 +0200)]
GIT_SILENT Update Appstream for new release

(cherry picked from commit 9e3c8a06ee2f30ae68c36c018f817ce2e481cbb9)

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 8 Jun 2020 17:47:51 +0000 (19:47 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoGIT_SILENT Upgrade release service version to 20.04.2.
Christoph Feck [Mon, 8 Jun 2020 17:25:55 +0000 (19:25 +0200)]
GIT_SILENT Upgrade release service version to 20.04.2.

5 years agoStatus bar: Hide the space free bar when size is unknown
Méven Car [Tue, 12 May 2020 06:26:11 +0000 (08:26 +0200)]
Status bar: Hide the space free bar when size is unknown

Summary:
BUG: 420027
BUG: 422226
FIXED-IN: 20.08

Test Plan: {F8312398}

Reviewers: #dolphin, ngraham, broulik, #vdg, elvisangelaccio

Reviewed By: #dolphin, ngraham, #vdg, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29213

5 years agoDetect animated format using mimeType instead of file path
Ismael Asensio [Sat, 6 Jun 2020 16:40:03 +0000 (18:40 +0200)]
Detect animated format using mimeType instead of file path

This allows to extend the functionality to non-local files and avoids a warning
on such files (`QFSFileEngine::open: No file name specified`)

5 years agoMerge branch 'release/20.04'
Nate Graham [Wed, 3 Jun 2020 17:51:01 +0000 (11:51 -0600)]
Merge branch 'release/20.04'

5 years agoShow progress when duplicating items
Nate Graham [Mon, 1 Jun 2020 15:58:25 +0000 (09:58 -0600)]
Show progress when duplicating items

For unknown reasons, when I implemented this feature, I turned off
progress notifications. I don't think this makes any sense, and we just
got a bug report about it.

Accordingly, this patches turns on progress notifications.

BUG: 422335
FIXED-IN: 20.04.2

5 years agoFix FIFO usage
Elvis Angelaccio [Sun, 31 May 2020 21:43:46 +0000 (23:43 +0200)]
Fix FIFO usage

`m_propriorityQueue` and `m_queue` are used as FIFO queues, so we need
to use `takeFirst()` instead of `takeLast()` when removing elements
from the queue.

While at it, add a comment so that we will remember these are FIFO
queues.

5 years ago[DolphinStatusBar] Fix free space info height with bigger fonts
Ahmad Samir [Sun, 31 May 2020 07:04:07 +0000 (09:04 +0200)]
[DolphinStatusBar] Fix free space info height with bigger fonts

When the font height is more than the zoom slider height, use the former
to set the fixed height of the free space widget on the status bar.
Otherwise the text is cut-off.

This works with Breeze, Oxygen and Fusion styles.

5 years agoPrevents warnings
Méven Car [Fri, 29 May 2020 17:35:02 +0000 (19:35 +0200)]
Prevents warnings

Warnings such as :
kf5.kio.core: Invalid URL: QUrl("")

It happened for instance with recentlyused:/ ioslave

5 years agoPrevents showing StatJob Progress info
Méven Car [Sat, 30 May 2020 11:54:44 +0000 (13:54 +0200)]
Prevents showing StatJob Progress info

BUG: 422121
Was introduced in ac234a9c55aed509b385ef03835a6d0f563e6a22

5 years agoPort away from deprecated QFontMetrics::width()
Elvis Angelaccio [Thu, 28 May 2020 20:40:57 +0000 (22:40 +0200)]
Port away from deprecated QFontMetrics::width()

While the documention says to port to QFontMetrics::horizontalAdvance(),
what we actually need is not the horizontal advance, but the width of
the text. So we need to port to QFontMetrics::boundingRect().width().

Quoting from https://kdepepo.wordpress.com/2019/08/05/about-deprecation-of-qfontmetricswidth/:

"Since it was not clear from the confusingly named function QFontMetrics::width()
that it actually returned the horizontal advance, instead of the bounding width,
this method is now obsolete.
You must port to either QFontMetrics::horizontalAdvance() or QFontMetrics::boundingRect().width().

Please make sure you are aware of the difference, and do not port
blindly. I am pretty sure that in most cases
QFontMetrics::boundingRect() is what you want, unless you are writing
custom text shaping/layouting code. Using the wrong function can cause
clipped text or text that suddenly wraps to the next line despite
calculating the width that it needs."

5 years agoNon-functional change: consistent indentation
Adriaan de Groot [Thu, 28 May 2020 21:42:23 +0000 (23:42 +0200)]
Non-functional change: consistent indentation

Use 4-space indents consistently, rather than a mix of 2- and 4-.

5 years agoMake ruby, and Gem:test-unit, optional
Adriaan de Groot [Thu, 28 May 2020 21:39:52 +0000 (23:39 +0200)]
Make ruby, and Gem:test-unit, optional

While this reduces test-coverage in cases where the user doesn't have
Ruby or the testing gem installed, it at least allows us to get
through configure and build without disabling **all** testing.

5 years agoPort to non-deprecated variant of QPixmapCache::find()
Elvis Angelaccio [Thu, 28 May 2020 21:04:04 +0000 (23:04 +0200)]
Port to non-deprecated variant of QPixmapCache::find()

We need to pass the pixmap by address, not by reference.

5 years agoAdd some missing const qualifiers
Elvis Angelaccio [Thu, 28 May 2020 20:42:40 +0000 (22:42 +0200)]
Add some missing const qualifiers

5 years agoDrop incorrect emit keywork
Elvis Angelaccio [Thu, 28 May 2020 20:09:03 +0000 (22:09 +0200)]
Drop incorrect emit keywork

This is not a signal.

5 years agoFix clazy-range-loop warning
Elvis Angelaccio [Thu, 28 May 2020 20:02:03 +0000 (22:02 +0200)]
Fix clazy-range-loop warning

5 years agoPort away from deprecated qrand()
Elvis Angelaccio [Thu, 28 May 2020 19:59:39 +0000 (21:59 +0200)]
Port away from deprecated qrand()

5 years agoUpdate README.md: fixed typo in subheading (upper case)
hormet yiltiz [Wed, 27 May 2020 05:04:55 +0000 (05:04 +0000)]
Update README.md: fixed typo in subheading (upper case)

5 years agoKDirectoryContentsCounter: scan first path not in cache
Méven Car [Mon, 25 May 2020 15:31:51 +0000 (15:31 +0000)]
KDirectoryContentsCounter: scan first path not in cache

Use a secondary QLinkedList to store the priority path.

5 years agoMerge branch 'release/20.04'
Nate Graham [Sun, 24 May 2020 14:26:34 +0000 (08:26 -0600)]
Merge branch 'release/20.04'

5 years agouse KSycoca for updating OpenPreferredSearchTool action
Piotr Henryk Dabrowski [Sun, 24 May 2020 14:25:14 +0000 (08:25 -0600)]
use KSycoca for updating OpenPreferredSearchTool action

Summary:
Remove all random updates of OpenPreferredSearchTool action, and
use KSycoca for updating it as discussed in https://phabricator.kde.org/D22594#663847

Enhancement for D29441 for bug #420911 caused by D22594.
The bug was fixed by D29442.

CCBUG: 420911

Test Plan:
```
$ cd ${KDE_INSTALL_DIR}/usr/share/applications

$ sudo mv org.kde.kfind.desktop org.kde.kfind.desktop_
$ kbuildsycoca5

$ sudo mv org.kde.kfind.desktop_ org.kde.kfind.desktop
$ kbuildsycoca5
```

Reviewers: broulik, elvisangelaccio, ngraham, #dolphin

Reviewed By: elvisangelaccio, #dolphin

Subscribers: anthonyfieroni, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29568

5 years agoRevert "GIT_SILENT: we don't use phabricator now"
Elvis Angelaccio [Sat, 23 May 2020 21:35:22 +0000 (23:35 +0200)]
Revert "GIT_SILENT: we don't use phabricator now"

This reverts commit eee6b15865c76798264dae5a29a7e9ee405844c6.

We still need this to review open phabricator patches.

5 years agoKDirectoryContentsCounter: don't schedule scanning a folder already in the Queue
Méven Car [Tue, 19 May 2020 05:52:26 +0000 (07:52 +0200)]
KDirectoryContentsCounter: don't schedule scanning a folder already in the Queue

Use a QLinkedList to check for presence in the queue.

merge request !2

5 years agoChange README to README.md for Markdown parsing
Julian Schraner [Tue, 19 May 2020 16:10:37 +0000 (16:10 +0000)]
Change README to README.md for Markdown parsing

5 years agoAdd Dolphin icon as repository logo
Ilya Bizyaev [Tue, 19 May 2020 07:14:04 +0000 (10:14 +0300)]
Add Dolphin icon as repository logo

5 years agoDolphinView: rename new methods to copy/move urls
Elvis Angelaccio [Mon, 18 May 2020 22:22:26 +0000 (00:22 +0200)]
DolphinView: rename new methods to copy/move urls

DolphinView doesn't know anything about split views and it shouldn't.
Rename these new methods to what they actually do (just copy or move to a
given QUrl).

5 years agoMove search and filter bar close buttons to the right
Nate Graham [Tue, 12 May 2020 20:17:51 +0000 (14:17 -0600)]
Move search and filter bar close buttons to the right

Summary:
Close buttons for windows, tabs, and pretty much everything else in KDE are on the right,
not the left. This patch makes Dolphin's search and filter bars follow that.

BUG: 421372
FIXED-IN: 20.08.0

Test Plan: {F8314176}

Reviewers: abetts, #dolphin, #vdg, elvisangelaccio, GB_2

Reviewed By: #dolphin, #vdg, elvisangelaccio, GB_2

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29693

5 years agoMerge branch 'release/20.04'
Méven Car [Mon, 18 May 2020 06:17:01 +0000 (08:17 +0200)]
Merge branch 'release/20.04'

5 years agoLeft-elide file/folders while keeping their extension visible
Méven Car [Sat, 16 May 2020 07:59:54 +0000 (09:59 +0200)]
Left-elide file/folders while keeping their extension visible

Summary:
Tweak behavior introduced in D19471.

BUG: 404955

Test Plan:
Before:
{F8325282}
After:
{F8325283}
{F8325284}

Reviewers: ngraham, #dolphin, elvisangelaccio, #vdg

Reviewed By: ngraham, #dolphin, elvisangelaccio, #vdg

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29794

5 years agoGIT_SILENT: we don't use phabricator now
Laurent Montel [Sun, 17 May 2020 16:55:49 +0000 (18:55 +0200)]
GIT_SILENT: we don't use phabricator now

5 years agoAdded VCS plugins signals connections for outOfVersionControl() actions.
Nikolai Krasheninnikov [Wed, 6 May 2020 17:31:05 +0000 (20:31 +0300)]
Added VCS plugins signals connections for outOfVersionControl() actions.

Summary:
Plugins can now do out of version control actions (D29041), so we need them to inform of their state.
This change connects every plugin signal to Dolphin on plugin instantiation.

Test Plan:
1. Try SVN Update of inaccessible repository: see SVN error message shows up.
2. Try pull inaccessible git repository: see GIT error message shows up.
3. Try SVN Commit: see SVN message.

Reviewers: #dolphin, meven, elvisangelaccio

Reviewed By: #dolphin, meven

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29488

5 years agoAllow to copy or move selection to the other split view
Antonio Prcela [Thu, 14 May 2020 22:17:31 +0000 (16:17 -0600)]
Allow to copy or move selection to the other split view

Summary:
FEATURE: 276167

Default keyboard shortcuts set to `SHIFT+F5` for `copy`, `SHIFT+F6` for `move`

Reviewers: #dolphin, elvisangelaccio, ngraham, meven, dfaure

Reviewed By: #dolphin, elvisangelaccio, ngraham, meven, dfaure

Subscribers: yurchor, kde-doc-english, dfaure, meven, kfm-devel

Tags: #dolphin, #documentation

Differential Revision: https://phabricator.kde.org/D29006

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 13 May 2020 07:20:03 +0000 (09:20 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Wed, 13 May 2020 00:40:37 +0000 (02:40 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT Update Appstream for new release
Christoph Feck [Mon, 11 May 2020 21:07:46 +0000 (23:07 +0200)]
GIT_SILENT Update Appstream for new release

5 years agoDolphinView: rename cutSelectedItems to cutSelectedItemsToClipboard
Elvis Angelaccio [Mon, 11 May 2020 20:53:08 +0000 (22:53 +0200)]
DolphinView: rename cutSelectedItems to cutSelectedItemsToClipboard

For consistency with d1a70c0b629b.

5 years agoGIT_SILENT Upgrade release service version to 20.04.1.
Christoph Feck [Mon, 11 May 2020 20:20:17 +0000 (22:20 +0200)]
GIT_SILENT Upgrade release service version to 20.04.1.

5 years agoDolphin: Cleanup service settings page
Alexander Lohnau [Mon, 11 May 2020 17:58:26 +0000 (19:58 +0200)]
Dolphin: Cleanup service settings page

Summary:
Just some little things :-)
- Refactor foreach
- Fix minor formatting issues
- Use auto keyword where appropiate

Test Plan: Compiles

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29560

5 years agoDolphinView: rename copySelectedItems to copySelectedItemsToClipboard
Elvis Angelaccio [Mon, 11 May 2020 17:31:29 +0000 (19:31 +0200)]
DolphinView: rename copySelectedItems to copySelectedItemsToClipboard

This makes it explicit that this is just a copy to clipboard, so that
we can use the name for an actual KIO::copy().

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 10 May 2020 07:03:41 +0000 (09:03 +0200)]
GIT_SILENT made messages (after extraction)

5 years agoGIT_SILENT made messages (after extraction)
l10n daemon script [Sun, 10 May 2020 00:45:11 +0000 (02:45 +0200)]
GIT_SILENT made messages (after extraction)

5 years agois use -> is used
Albert Astals Cid [Sat, 9 May 2020 22:36:54 +0000 (00:36 +0200)]
is use -> is used

CCMAIL: meven29@gmail.com

5 years agoPrevent crash in Windows
Méven Car [Fri, 8 May 2020 11:21:33 +0000 (13:21 +0200)]
Prevent crash in Windows

Summary: https://phabricator.kde.org/D25335#664304

Reviewers: #dolphin, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29470

5 years agoPort QRegExp to QRegularExpression
Ahmad Samir [Tue, 24 Dec 2019 15:15:44 +0000 (17:15 +0200)]
Port QRegExp to QRegularExpression

Summary:
Port QRegExp::exactMatch() with QRegularExpression::anchoredPattern().
Port QRegExp::Wildcard with QRegularExpression::wildcardToRegularExpression().
Note that QRegularExpression::wildcardToRegularExpression() returns an anchored
pattern.

Test Plan:
Using the filter bar in dolphin works as before.

All unit tests pass, except:
- kfileitemmodeltest (which is unrelated AFAICS); it fails on master too
- placesitemmodeltest, which fails on master too

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D26215

5 years agoMerge branch 'release/20.04'
Kai Uwe Broulik [Wed, 6 May 2020 08:52:38 +0000 (10:52 +0200)]
Merge branch 'release/20.04'

5 years agoDon't update preferred search action on window activation
Kai Uwe Broulik [Wed, 6 May 2020 08:52:09 +0000 (10:52 +0200)]
Don't update preferred search action on window activation

I don't see why this is necessary and causes a blocking(!) StatJob every single time the window is focussed,
worse, ends up in an infinite loop when the window loses focus on an auth prompt.

CCBUG: 420911

Differential Revision: https://phabricator.kde.org/D29441

5 years agoKeep name readable on drag to matching background
Christian Christiansen [Tue, 5 May 2020 23:30:57 +0000 (09:30 +1000)]
Keep name readable on drag to matching background

Summary:
Previously, when a single item was selected and dragged, the
name would become unreadable when the text colour matched the
background colour it was dragged onto.

This is now fixed by not deselecting the item (and hence keeping
the highlighting around the text) before creating the pixmap for
dragging.

BUG: 405266

Test Plan: Tested with Breeze and Breeze Dark.

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio, meven

Subscribers: meven, elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29378

5 years agoDolphin: Implement package kit for deb/rpm/pacman service packages
Alexander Lohnau [Sun, 3 May 2020 18:23:08 +0000 (20:23 +0200)]
Dolphin: Implement package kit for deb/rpm/pacman service packages

Summary: The deb/rpm/pacman packages are now installed/uninstalled using packagekit.

Test Plan: Try to install deb package from kde store (search for `jetbrains`). Then uninstall it.

Reviewers: #dolphin, ngraham, elvisangelaccio, meven

Reviewed By: #dolphin, ngraham, elvisangelaccio, meven

Subscribers: cblack, anthonyfieroni, asturmlechner, meven, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29119

5 years agoMerge branch 'release/20.04'
Kai Uwe Broulik [Tue, 5 May 2020 10:05:49 +0000 (12:05 +0200)]
Merge branch 'release/20.04'

5 years agoDon't use local URL for KMoreTool
Kai Uwe Broulik [Tue, 5 May 2020 10:05:18 +0000 (12:05 +0200)]
Don't use local URL for KMoreTool

This method is called a billion times and spawns a blocking(!) StatJob.
KFind can search local URLs, too, so I don't see why this is necessary.
Either way, I'd rather have a non-KDE search tool broken than the app.
Ideally, I'd like this entire thing redone to use an async StatJob, if any.
Fwiw the KMoreTools in the free space bar doesn't use a local URL either.

BUG: 420911
FIXED-IN: 20.04.1

Differential Revision: https://phabricator.kde.org/D29442

5 years agoAdd new option 'Folder size displays' to the docs
Yuri Chornoivan [Tue, 5 May 2020 05:53:06 +0000 (08:53 +0300)]
Add new option 'Folder size displays' to the docs

5 years agoSort by file size according to DetailsModeSettings::directorySizeCount
Méven Car [Tue, 5 May 2020 05:31:54 +0000 (07:31 +0200)]
Sort by file size according to DetailsModeSettings::directorySizeCount

Test Plan: Sort by file size in details view.

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29424

5 years agoFix Windows Build
Méven Car [Tue, 5 May 2020 05:31:19 +0000 (07:31 +0200)]
Fix Windows Build

Summary: Due to D25335

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29425

5 years agoMerge branch 'release/20.04'
Nikolai Krasheninnikov [Mon, 4 May 2020 19:56:33 +0000 (22:56 +0300)]
Merge branch 'release/20.04'

5 years agoFixes Dolphin crash on "Defocus Terminal Panel" menu click if no Konsole is installed.
Nikolai Krasheninnikov [Fri, 1 May 2020 17:44:58 +0000 (20:44 +0300)]
Fixes Dolphin crash on "Defocus Terminal Panel" menu click if no Konsole is installed.

Summary:
Dolphin crashes if no Konsole is installed and user clicks menu action "Defocus Terminal Panel".
This fix is pretty straight forward.

Steps to reproduce:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Terminal Panel".
4. Click in service menu "Defocus Terminal Panel". Observe the crash.

Test Plan:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Teminal Panel".
4. Click in service menu "Defocus Terminal Panel".
5. Click in service menu "Focus Terminal Panel".
6. Press F4 to close console window.

Reviewers: #dolphin, meven, elvisangelaccio, ngraham

Reviewed By: #dolphin, meven, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29345

5 years agoFixes Dolphin crash on "Defocus Terminal Panel" menu click if no Konsole is installed.
Nikolai Krasheninnikov [Fri, 1 May 2020 17:44:58 +0000 (20:44 +0300)]
Fixes Dolphin crash on "Defocus Terminal Panel" menu click if no Konsole is installed.

Summary:
Dolphin crashes if no Konsole is installed and user clicks menu action "Defocus Terminal Panel".
This fix is pretty straight forward.

Steps to reproduce:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Terminal Panel".
4. Click in service menu "Defocus Terminal Panel". Observe the crash.

Test Plan:
1. Run Dolphin without Konsole available.
2. Press F4 to open console window.
3. Click in service menu "Focus Teminal Panel".
4. Click in service menu "Defocus Terminal Panel".
5. Click in service menu "Focus Terminal Panel".
6. Press F4 to close console window.

Reviewers: #dolphin, meven, elvisangelaccio, ngraham

Reviewed By: #dolphin, meven, elvisangelaccio, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29345

5 years agoDolphin: Cleanup kcms
Alexander Lohnau [Mon, 4 May 2020 18:30:25 +0000 (20:30 +0200)]
Dolphin: Cleanup kcms

Summary: Refactor forearch, adjust formatting, remove unnecessary version checks.

Test Plan: Compiles

Reviewers: #dolphin, ngraham, elvisangelaccio, meven

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29377

5 years agoReplace the list with the simplified list, instead of concatenate.
Antonio Prcela [Mon, 4 May 2020 13:51:34 +0000 (07:51 -0600)]
Replace the list with the simplified list, instead of concatenate.

Summary: Replace the list m_selectedUrls with a simplified list, instead of concatenating the simplified list to the current one.

Reviewers: dfaure, meven

Reviewed By: dfaure

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29399

5 years ago[Details mode] Allow to fill the column size of directories with actual size
Méven Car [Mon, 4 May 2020 05:26:26 +0000 (07:26 +0200)]
[Details mode] Allow to fill the column size of directories with actual size

Summary:
Allow to compute the recursive size of directories to fill the details view size column.
A setting allow to set a limit to the recursive level, allowing the user to have some power over the setting.

When sorting by size and the feature is on, we get progressive ordering as the directory size are gathered.

KDirectoryContentsCounter uses a cache internally to keep results so that it can display directory size faster, but counts the dir size of directories each time it is asked to count the size a directory nevertheless and when the size has changed, it is updated.
KDirectoryContentsCounter uses one worker per instance only, meaning one process per view makes the disk spin.

FIXED-IN: 20.08
BUG: 190580
BUG: 158090

Test Plan:
With some recursion allowed:
{F8267580}

Without any recursion allowed (default):
{F8267581}

Reviewers: elvisangelaccio, ngraham, #dolphin

Reviewed By: elvisangelaccio, ngraham, #dolphin

Subscribers: feverfew, anthonyfieroni, iasensio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D25335

5 years agoDolphin Service Menu Installer: Launch certain scripts in Konsole
Alexander Lohnau [Sun, 3 May 2020 18:07:53 +0000 (20:07 +0200)]
Dolphin Service Menu Installer: Launch certain scripts in Konsole

Summary:
In general the issue with installers/uninstallers for the dolphin plugin is
that a lot of the scripts are intended to be run manually in a terminal.
For instance if a script uses `sudo make install` the user can't type in the password.

With this patch scripts that are executed without arg variants are
executed in konsole (if available).

Test Plan:
Tests still pass. Try to install the "Jetbrains Dolphin Plugin" tar.gz file from the kde store.
If you have the required dependencies etc. the konsole window should close.
If the install script fails (type in wrong admin password a couple of times) you
should have a shell opened.

Reviewers: #dolphin, ngraham, nicolasfella, elvisangelaccio, meven

Reviewed By: #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29089

5 years agoServicesSettingsPage: add missing connection receiver
Elvis Angelaccio [Sun, 3 May 2020 17:05:32 +0000 (19:05 +0200)]
ServicesSettingsPage: add missing connection receiver

5 years agoDolphin Services: Add search box
Alexander Lohnau [Sun, 3 May 2020 06:54:43 +0000 (08:54 +0200)]
Dolphin Services: Add search box

Summary:
You can now filter the list of installed services.
This is especially useful if you install additional service menus
from the kde store, because one instalaton can add a lot of services.
For instance the ReImage plugin.

Test Plan:
Compiles, search for a service menu.
Only services matching the query will show up.

Reviewers: ngraham, elvisangelaccio, meven

Reviewed By: meven

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29375

5 years agofilenamesearch:/ define a title for the query
Méven Car [Sun, 3 May 2020 10:45:54 +0000 (12:45 +0200)]
filenamesearch:/ define a title for the query

Summary: CCBUG: 420354

Reviewers: ngraham, elvisangelaccio, #dolphin, #frameworks, iasensio

Reviewed By: elvisangelaccio, #dolphin, iasensio

Subscribers: iasensio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29198

5 years agoInformation Panel: show early icons for folders
Méven Car [Fri, 1 May 2020 05:51:21 +0000 (07:51 +0200)]
Information Panel: show early icons for folders

Summary:
Folders previews can be long to generate.
This can be noticeable by the user.

This diff displays folder icons after a 100ms timer.

BUG: 420340
FIXED-IN: 20.08

Test Plan:
rm -r ~/.cache/thumbnails/
In dolphin open trash
Click on download (or any directory with a long to generate preview).

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29204

5 years agoFor VCS-plugin interface added pure virtual function outOfVersionControlActions()
Nikolai Krasheninnikov [Mon, 27 Apr 2020 05:52:38 +0000 (08:52 +0300)]
For VCS-plugin interface added pure virtual function outOfVersionControlActions()

Summary: This commit changes VCS-plugin interface in order to provide actions for unversioned items (for example clone or checkout repository), updates to dolphin-plugins comes in the separate commit D29042.

Reviewers: #dolphin, meven, elvisangelaccio

Reviewed By: #dolphin, meven, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29041

5 years agodoc: switch to https for bugs.kde.org
Pino Toscano [Wed, 29 Apr 2020 07:30:01 +0000 (09:30 +0200)]
doc: switch to https for bugs.kde.org

5 years agoUpdate docs for startup page of configuration
Yuri Chornoivan [Mon, 27 Apr 2020 06:03:37 +0000 (09:03 +0300)]
Update docs for startup page of configuration

Summary: After several resurfaces of GUI the current docs are not up-to-date.

Test Plan: I used an impression from D11382 to write this. Tested with checkXML5. An updated screenshot is needed.

Reviewers: #dolphin, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: ngraham, kfm-devel, kde-doc-english

Tags: #dolphin, #documentation

Differential Revision: https://phabricator.kde.org/D29220

5 years agoprevent a QFileInfo warning
René Bertin [Mon, 27 Apr 2020 08:32:34 +0000 (10:32 +0200)]
prevent a QFileInfo warning

DolphinSearchBox::init() can generate a terminal warning depending on
the user's search history:

QFileInfo::absolutePath: Constructed with empty filename

The warning can seem to appear randomly if you don't use the search
feature often, because of its dependency on previous search activity.

Prevent this warning by adding a simple check if the current
m_searchPath is valid or not. This check has no effect on the value
returned by DolphinSearchBox::isIndexingEnabled() and is in line with
the fact that m_searchPath == QUrl() indicates that no search path has
been set.

Differential Revision: https://phabricator.kde.org/D29194

5 years agoAdd an option to show tabs from last time when Dolphin starts
Nate Graham [Fri, 19 Jul 2019 17:52:12 +0000 (11:52 -0600)]
Add an option to show tabs from last time when Dolphin starts

Summary:
All modern web browsers offer a function to show tabs from last time when a browser starts, and many apps today
restore their prior state when they're launched. This patch implements thatfunctionality as an option and turns it on by default.

The settings window is accordingly adjusted to be clear about what applies when:

{F7681752}

FEATURE: 413564
FIXED-IN: 20.08.0

Depends on D25106
Depends on D25219

Test Plan:
With the new setting turned off:
- No behavioral changes at all

With the new setting turned on:
- When launched from the GUI or CLI without any URLs, dolphin restores session
- When rebooting with Dolphin open, it restores session normally after the system comes back (i.e. no behavioral change here)
- When launched with URLs, Dolphin window is opened showing those URLs instead of restoring session
- When Dolphin is already running and a new window is opened, that new window shows a single tab with the same URL as was visible in the previously-open Dolphin instance (i.e. no behavioral change here)
- "Open Containing folder" functionality in other apps works regardless of whether or not Dolphin is running

Reviewers: #dolphin, #vdg, feverfew, meven, elvisangelaccio, ndavis

Reviewed By: #dolphin, #vdg, feverfew, elvisangelaccio, ndavis

Subscribers: davidedmundson, ndavis, intika, feverfew, kfm-devel, ngraham, broulik, #dolphin

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D11382

5 years agoInformation Panel: hide phonon widget when starting a search
Méven Car [Sat, 25 Apr 2020 06:04:21 +0000 (08:04 +0200)]
Information Panel: hide phonon widget when starting a search

Summary: BUG: 420512

Test Plan:
Select on hove over a video file
Type Ctrl + F
Type some test + enter

Reviewers: ngraham, #dolphin, elvisangelaccio

Reviewed By: ngraham, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29158

5 years agoInformation Panel: show the phonon when we can use phonon
Méven Car [Fri, 24 Apr 2020 17:16:24 +0000 (19:16 +0200)]
Information Panel: show the phonon when we can use phonon

Summary: Similar to D29158

Test Plan:
Select a video file
Type CTRL + F and some text
Hit ALt + left or previous button

Before:
The video controls are not visible for selected video file

After:
Video controls are visible again.

Reviewers: ngraham, elvisangelaccio, #dolphin

Reviewed By: ngraham, #dolphin

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29160

5 years agoMerge branch 'release/20.04'
Alexander Lohnau [Tue, 21 Apr 2020 19:32:46 +0000 (21:32 +0200)]
Merge branch 'release/20.04'

5 years agoDolphin Service Installer: Run uninstall scripts, rename methods
Alexander Lohnau [Tue, 21 Apr 2020 16:44:48 +0000 (18:44 +0200)]
Dolphin Service Installer: Run uninstall scripts, rename methods

Summary:
Now scripts starting with `uninstall` are being executed.
Addtionally the `runInstallerScriptOnce` method has been renamed, because it is used to run the install/uninstall scripts.
Same for `runInstallerScript`.
Depends on D28801

Test Plan: Compile, run tests. Try to uninstall a dolphin service which has a uninstall.sh script.

Reviewers: #dolphin, ngraham, nicolasfella, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: cfeck, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28836

5 years agoInformation Panel: Make icons as big as previews
Méven Car [Tue, 21 Apr 2020 07:20:27 +0000 (09:20 +0200)]
Information Panel: Make icons as big as previews

Summary:
Make icons match the preview size.
It prevents a user that had a wide information panel,
seeing a size difference between a preview and an icon despite they can look similar (i.e folder preview).

Test Plan:
Before:
{F8248373, size=full}

After:
{F8248370, size=full}

Reviewers: #dolphin, ngraham, elvisangelaccio

Reviewed By: #dolphin, ngraham, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D29002

5 years agoUse new "Show/Hide Hidden Files" standard shortcut
Nate Graham [Mon, 13 Apr 2020 18:27:40 +0000 (12:27 -0600)]
Use new "Show/Hide Hidden Files" standard shortcut

Summary:
Note that we lose the F8 shortcut since the KStandardShortcut added in XXXX can only
accommodate toew default shortcuts, and I thought Ctrl+H and Alt+. were the more important
ones. Hopefully that's not too high a price to pay.

Depends on D28802

Test Plan:
- Apply D28802 to kconfig
- Apply this patch to Dolphin, compile, and launch Dolphin
- Hit Ctrl+H or Alt+. and see that hidden files are shown or hidden as approproiate

Reviewers: #dolphin, dfaure, elvisangelaccio

Reviewed By: #dolphin, elvisangelaccio

Subscribers: elvisangelaccio, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28804