1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-04 17:30:55 +00:00
Commit Graph

153 Commits

Author SHA1 Message Date
Friedrich W. H. Kossebau
ab5ed86896 Use KDECompilerSettings instead of KDEFrameworkCompilerSettings
The latter is only for KF modules to use.

Also include the KDE cmake modules as first thing, as their settings
can influence other included macros.

GIT_SILENT
2021-12-13 12:12:28 +01:00
Alexander Lohnau
432c776599 Build without KDE & Qt derecations 2021-12-13 08:35:26 +00:00
Eugene Popov
2ef87708fd [Location Bar] Add the ability to show hidden folders in the subdirectories popup 2021-12-02 09:03:47 +00:00
Heiko Becker
aa9a80fba2 GIT_SILENT Upgrade release service version to 22.03.70. 2021-11-08 20:35:47 +01:00
Nate Graham
27bfcde4ef Port to KTerminalLauncherJob
Dolphin still uses KToolInvocation::invokeTerminal() which is
deprecated and requires KInit. However Dolphin was ported away from
requiring it in other ways, so it is now possible to have Dolphin
running but not KInit, which breaks the "Open in Terminal"
functionality.

Using KTerminalLauncherJob fixes this. It was introduced in Frameworks
5.83, so the CMake dependency version is accordingly increased.

BUG: 441072
FIXED-IN: 21.12
2021-08-31 09:12:16 -06:00
Ahmad Samir
0b81b4baf9 Use KDirLister directly now that it emits a jobError() signal
Since KIO 5.82, KCoreDirLister (the base class of KDirLister) emits a jobError()
signal when the ListJob used internally emits an error.

Drop KFileItemModelDirLister class, now redundant.

This also bump the KF version to 5.82.
2021-07-19 09:57:58 +00:00
Albert Astals Cid
d284e22f87 GIT_SILENT Upgrade release service version to 21.11.70. 2021-07-10 19:59:01 +02:00
Alex Richardson
997977c67a Make the KDocTools dependency optional
I am cross-compiling dolphin and haven't build KDocTools. Since it's only
needed for the handbook we can make the dependency optional.
2021-07-09 09:19:05 +01:00
Ömer Fadıl Usta
216068bd7c Update CMake , Qt 2021-06-25 15:57:07 +00:00
Felix Ernst
a4be53fb99 Replace custom hamburger/control menu with KHamburgerMenu 2021-04-29 13:22:10 +00:00
Christophe Giboudeaux
b0c30bea13 Remove the KInit dependency
Amends 9e8e58147
2021-03-30 09:13:14 +02:00
Albert Astals Cid
b7440b946b GIT_SILENT Upgrade release service version to 21.07.70. 2021-03-13 22:00:57 +01:00
Nicolas Fella
7dc863add7 Require C++17
Not only does C++17 bring many nice things, it also will be required
with Qt6.

Many KDE projects already require 17 without issues.
2021-02-09 20:34:23 +00:00
Laurent Montel
8236e95c76 Autogenerate categories file 2021-01-23 09:23:41 +01:00
Alexander Lohnau
48fec6c9ec Add 'Open Terminal Here' action from dolphin to menu 2020-11-21 20:22:16 +00:00
Henri Chain
e36de310cb D-Bus activation systemd service
Correctly scopes dolphin in systemd service `app-org.kde.dolphin.service` when dbus-activated (while still working if systemd is not present), as per https://systemd.io/DESKTOP_ENVIRONMENTS/

uses new ECM modules:
- https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/5 to simplify the systemd service templating + install
- https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/17 to generate the dbus service file automatically

needs https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/25
2020-11-19 10:40:56 +01:00
Albert Astals Cid
dd9e25cde5 GIT_SILENT Upgrade release service version to 21.03.70. 2020-11-08 18:33:53 +01:00
Elvis Angelaccio
465e06138e Add support for KUserFeedback
This commit introduces KUserFeedback in dolphin with some basic data
sources and with a settings page to configure the telemetry values.

There are also a couple custom data sources as proof of concept: a bunch
of settings and the count of available network shares as listed by Solid.

The settings page is shown only if the user feedback framework is
enabled, but currently in Plasma we don't have a global kill switch to
disable it.

At the moment we never show an encouragement message. We need to connect
to the `Provider::showEncouragementMessage()` signal, but first we
should agree to a common way to show a non-annoying message to the users.
2020-11-05 18:31:28 +00:00
Elvis Angelaccio
957cc92f46 Revert "D-Bus activation systemd service"
This reverts commit eb441b1188.

We'll push it again after we branch 20.12. We don't want to push a too
recent version of KF5 on distros.

!27
2020-11-04 01:12:48 +01:00
Henri Chain
eb441b1188 D-Bus activation systemd service
Correctly scopes dolphin in systemd service `app-org.kde.dolphin.service` when dbus-activated (while still working if systemd is not present), as per https://systemd.io/DESKTOP_ENVIRONMENTS/

uses new ECM modules:
- https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/5 to simplify the systemd service templating + install
- https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/17 to generate the dbus service file automatically

needs https://invent.kde.org/frameworks/extra-cmake-modules/-/merge_requests/25
2020-10-21 10:20:56 +00:00
Elvis Angelaccio
3bf2922e33 Port away from QList::toSet()
The QSet range constructor requires Qt 5.14.

In `DolphinView::slotHeaderContextMenuRequested()` the conversion from
QList to QSet was pointless, so we just use a QList now.
2020-10-15 01:22:00 +02:00
Ahmad Samir
9b83378c08 Check protocol Class before creating a StatJob
StatJob::mostLocalUrl only works with ":local" protocols, adjust the code
accordingly.

Make the code async.

Remove activeContainerLocalPath() method as it isn't needed anymore.

Drive-by change: minimum required version of Qt should be 5.12 because
that's what KF >= 5.73 already requires.
2020-09-20 21:29:23 +00:00
Ahmad Samir
257eeebf4b Port KRun to OpenUrlJob
In DolphinMainWindow, since KRun allows running executables by default, use
setRunExecutables(true) so as not to change the behaviour.

Remove the now redundant slotHandleUrlStatFinished, that whole StatJob
logic is now handled by OpenUrlJob.

Bump KF required version to 5.73, since that's where
OpenUrlJob::setShowOpenOrExecuteDialog was introduced.
2020-08-18 08:43:58 +00:00
Albert Astals Cid
2463a35f3e GIT_SILENT Upgrade release service version to 20.11.70. 2020-07-11 12:20:59 +02:00
Méven Car
c81927651a 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
2020-06-16 19:37:18 +02:00
Alexander Lohnau
3e1cb2c7fb 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
2020-05-05 17:26:13 +02:00
Méven Car
ac234a9c55 Allow to display UDS_RECURSIVE_SIZE in status bar
Summary: Useful for trash:/ in particular

Test Plan: {F8233980}

Reviewers: #dolphin, dfaure, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D28794
2020-04-14 07:42:39 +02:00
Elvis Angelaccio
924499a279 Bump minimum required KF5 version
Needed after 885916b7b4.
2020-04-05 20:17:36 +02:00
Albert Astals Cid
9c3f9c4846 GIT_SILENT Upgrade release service version to 20.07.70. 2020-03-15 19:32:46 +01:00
Nate Graham
09e215be46 "Use newly-upstreamed rename dialog from KIO""
This reverts commit 41105103b0.

KIO's version was just bumped to 5.67, so this can land now without
breaking the CI.
2020-01-11 13:21:52 -07:00
Nate Graham
41105103b0 Revert "Use newly-upstreamed rename dialog from KIO"
This reverts commit bae6620f22.

Frameworks 5.67 doesn't exist yet; this needs to wait another month.
2020-01-06 14:34:36 -07:00
Nate Graham
bae6620f22 Use newly-upstreamed rename dialog from KIO
Summary:
With the rename dialog upstreamed in D17595, we can use it from there.

This will require the KF5 dep to be bumped to 5.67, which should be feasible given that we're at the very beginning of a new Applications cycle.

Depends on D17595

Test Plan:
1. Dolphin Settings > uncheck "rename inline"
2. Rename one or more files. Observe that it still works

Tests still pass.

Reviewers: #dolphin, elvisangelaccio, meven

Reviewed By: elvisangelaccio, meven

Subscribers: meven, broulik, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D17597
2020-01-06 14:25:44 -07:00
Elvis Angelaccio
61edac1842 Use non-deprecated install dir variables from ECM 2019-12-24 19:30:44 +01:00
Jonathan Riddell
7bf48cbb4d Change KDE_APPLICATIONS_VERSION to RELEASE_SERVICE_VERSION https://phabricator.kde.org/T11933
GIT_SILENT
2019-12-10 16:39:11 +00:00
Yuri Chornoivan
808339bff6 Use URLs with transport encryption 2019-11-16 18:53:28 +02:00
Méven Car
89a7b316d1 [Information Panel] Allows to refresh icon and metadata for urls such as trash:/
Summary: CCBUG: 392882

Test Plan:
1. Create a file
2. Remove it, so that it goes to the trash
3. Open trash
4. Empty trash

Before:
Information panel icon is still user-trash-full

After:
Information panel icon is changed to user-trash

Reviewers: ngraham, #dolphin, elvisangelaccio

Reviewed By: ngraham, #dolphin, elvisangelaccio

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D23668
2019-11-12 08:20:58 +01:00
Albert Astals Cid
ce081212eb GIT_SILENT Upgrade KDE Applications version to 20.03.70. 2019-11-10 01:12:45 +01:00
David Hallas
c3b914a7fa Unmounting busy device doesn't tell who is blocking
Summary: Unmounting a busy device from the places panel doesn't tell which applications have open files blocking the unmount.

Test Plan:
Mount a USB stick using Dolphin
Open a file from the USB stick
Unmount the USB stick using Dolphin
Observe the new error message.

FEATURE: 189302

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

Reviewed By: #dolphin, elvisangelaccio, meven

Subscribers: meven, davidedmundson, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19989
2019-10-27 06:52:25 +01:00
Laurent Montel
96e84bef52 We depend against 5.61 2019-09-20 06:51:17 +02:00
Laurent Montel
abbb98f57b We depend against 5.61 which depends against qt 5.11 2019-09-14 09:41:37 +02:00
Simon Krull
9cd042a86c Change default Dolphin toolbar layout
Summary:
{F7205836}

Use a default toolbar layout that looks better and makes more sense for new users.

Test Plan: Open Dolphin (with the default toolbar)

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

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

Subscribers: iasensio, filipf, meven, elvisangelaccio, felixernst, GB_2, ndavis, ngraham, kfm-devel, #vdg, #dolphin

Tags: #dolphin, #vdg

Differential Revision: https://phabricator.kde.org/D23075
2019-08-25 09:35:00 -06:00
Wolfgang Bauer
e39b7e8f5a Merge branch 'Applications/19.08' 2019-08-07 18:11:51 +02:00
Wolfgang Bauer
68aee5ed51 Fix build with cmake < 3.7
`VERSION_GREATER_EQUAL` was introduced in cmake 3.7, but the specified
minimum version is 3.0.
So use `NOT VERSION_LESS` instead to still support older cmake versions
too.

Differential Revision: https://phabricator.kde.org/D22984
2019-08-07 18:08:57 +02:00
Christoph Feck
813e8866b7 GIT_SILENT Upgrade KDE Applications version to 19.07.90. 2019-07-29 15:44:58 +02:00
Albert Astals Cid
981e96efe6 GIT_SILENT Upgrade KDE Applications version to 19.11.70. 2019-07-15 21:39:44 +02:00
Albert Astals Cid
c951c63e14 GIT_SILENT Upgrade KDE Applications version to 19.07.80. 2019-07-15 21:17:55 +02:00
Yuri Chornoivan
cd2078cef4 Add docs about the new 'Open new folders in tabs' option 2019-06-26 10:48:17 +03:00
Elvis Angelaccio
ff81ed60cf Fix ECM version comparison
CCMAIL: montel@kde.org
2019-06-16 12:02:42 +02:00
Laurent Montel
c337bfeeea Install in new logging directory when we use kf5 5.59.0 2019-06-13 07:07:35 +02:00
Alexander Saoutkin
27e3907a3d Open externally called files/directories in new tabs
Summary:
FEATURE: 183429
FIXED-IN: 19.08.0
GUI: new cli argument --new-window

Externally called files/directories are opened in a a new tab of an instance of Dolphin that already exists. If any of the given URIs are already open in a tab, then those tabs are activated instead of a new tab being opened.  If there is no instance then the files/directories are opened in a new window. The newly opened file/directory has its tab activated, and consequently, the window is also activated.

When the user clicks "Open In New Window" or "Detach Tab", the files/directories are opened in a new window.

Test Plan:
[Manual]
Before testing, set the default file manager in system settings as the newly built Dolphin executable.
One must also include the new dolphin executable in the $PATH, otherwise some functions will attempt to open the system dolphin instead of the new one.

Furthermore, running two different versions of Dolphin (in particular, where one does not have this patch included) can result in bugs appearing, in particular, new tabs not opening as old instances will not recognise the DBus commands sent to it. However, I see no reason why a user will have two different versions of Dolphin (apart from people like us :D).

Open directories with the help of auxillary programs (i.e. a browser). The files/directories should appear in a new window if an instance does not exist. If an existence already exists, then a new tab should be opened and activated in that instance and the window activated.
Use QDBusViewer to open folders/items by calling the ShowFolders/ShowItems methods in org.freedesktop.FileManager1 of the Dolphin instance.
When a user chooses to "Open In New Window"/"Detach Tab" then the files/directories should be opened in a new window.

Reviewers: #dolphin, elvisangelaccio

Subscribers: zzag, dfaure, fvogt, fikrim, magar, fbg13, davidedmundson, kwin, ngraham, elvisangelaccio, anthonyfieroni, kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D16648
2019-05-30 22:40:08 +02:00