Compare commits

...

10 Commits

10 changed files with 40 additions and 166 deletions

20
debian/changelog vendored
View File

@ -1,3 +1,23 @@
libfm-qt (1.2.0-0ubuntu1) lunar; urgency=medium
* New upstream release.
* Fix the watch file, for real this time.
* Lubuntuify the package slightly, to make debhelper happy.
* Remove reverse-applicable upstream patches.
* Bump build dependencies to the latest upstream LXQt versions.
* Rename libfm-qt11 -> libfm-qt12 and add necessary Breaks/Replaces.
* Update symbols from amd64 build logs.
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 16 Nov 2022 19:21:46 -0600
libfm-qt (1.1.0-3ubuntu1) kinetic; urgency=medium
* Revert the previous upload.
* Make Breaks/Replaces stricter for libfm-qt11 on libfm-qt-common due to the
nature of the reverted upload.
-- Simon Quigley <tsimonq2@ubuntu.com> Mon, 10 Oct 2022 11:06:03 -0500
libfm-qt (1.1.0-2ubuntu1) kinetic; urgency=medium libfm-qt (1.1.0-2ubuntu1) kinetic; urgency=medium
* Update debian/libfm-qt11.symbols for GCC 12. * Update debian/libfm-qt11.symbols for GCC 12.

22
debian/control vendored
View File

@ -1,5 +1,5 @@
Source: libfm-qt Source: libfm-qt
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
XSBC-Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org> XSBC-Original-Maintainer: LXQt Packaging Team <pkg-lxqt-devel@lists.alioth.debian.org>
Uploaders: Alf Gaida <agaida@siduction.org>, Uploaders: Alf Gaida <agaida@siduction.org>,
ChangZhuo Chen (陳昌倬) <czchen@debian.org>, ChangZhuo Chen (陳昌倬) <czchen@debian.org>,
@ -16,17 +16,19 @@ Build-Depends: debhelper-compat (= 13),
libqt5svg5-dev, libqt5svg5-dev,
libqt5x11extras5-dev, libqt5x11extras5-dev,
libx11-dev, libx11-dev,
lxqt-build-tools (>= 0.11.0), lxqt-build-tools (>= 0.12.0),
qtbase5-private-dev qtbase5-private-dev
Standards-Version: 4.6.1 Standards-Version: 4.6.1
Vcs-Browser: https://salsa.debian.org/lxqt-team/libfm-qt Vcs-Browser: https://git.lubuntu.me/Lubuntu/libfm-qt-packaging
Vcs-Git: https://salsa.debian.org/lxqt-team/libfm-qt.git Vcs-Git: https://git.lubuntu.me/Lubuntu/libfm-qt-packaging.gi
XS-Debian-Vcs-Browser: https://salsa.debian.org/lxqt-team/libfm-qt
XS-Debian-Vcs-Git: https://salsa.debian.org/lxqt-team/libfm-qt.git
Homepage: https://github.com/lxqt/libfm-qt Homepage: https://github.com/lxqt/libfm-qt
Rules-Requires-Root: no Rules-Requires-Root: no
Package: libfm-qt11 Package: libfm-qt12
Replaces: libfm-qt9 Replaces: libfm-qt9, libfm-qt11
Breaks: libfm-qt9 Breaks: libfm-qt9, libfm-qt11
Architecture: any Architecture: any
Multi-Arch: same Multi-Arch: same
Section: libs Section: libs
@ -48,8 +50,8 @@ Architecture: all
Multi-Arch: foreign Multi-Arch: foreign
Section: libs Section: libs
Depends: ${misc:Depends} Depends: ${misc:Depends}
Breaks: libfm-qt11 (<< 1.1.0-1), libfm-qt9 Breaks: libfm-qt11 (<< 1.1.0-3ubuntu1), libfm-qt9
Replaces: libfm-qt11 (<< 1.1.0-1), libfm-qt9 Replaces: libfm-qt11 (<< 1.1.0-3ubuntu1), libfm-qt9
Description: Common files for libfm-qt Description: Common files for libfm-qt
Libfm-Qt is a companion library providing components to build desktop file Libfm-Qt is a companion library providing components to build desktop file
managers. managers.
@ -61,7 +63,7 @@ Architecture: any
Section: libdevel Section: libdevel
Depends: ${misc:Depends}, Depends: ${misc:Depends},
libexif-dev, libexif-dev,
libfm-qt11 (= ${binary:Version}), libfm-qt12 (= ${binary:Version}),
libmenu-cache-dev libmenu-cache-dev
Description: file management support library for pcmanfm-qt (development files) Description: file management support library for pcmanfm-qt (development files)
Libfm-Qt is a companion library providing components to build desktop file Libfm-Qt is a companion library providing components to build desktop file

View File

@ -1,2 +0,0 @@
libfm-qt 11 libfm-qt11 (>= 1.1.0)

2
debian/libfm-qt12.shlibs vendored Normal file
View File

@ -0,0 +1,2 @@
libfm-qt 12 libfm-qt12 (>= 1.2.0)

View File

@ -1,5 +1,5 @@
# SymbolsHelper-Confirmed: 1.1.0 amd64 i386 riscv64 # SymbolsHelper-Confirmed: 1.1.0 amd64 i386 riscv64
libfm-qt.so.11 libfm-qt11 #MINVER# libfm-qt.so.12 libfm-qt12 #MINVER#
* Build-Depends-Package: libfm-qt-dev * Build-Depends-Package: libfm-qt-dev
_ZN2Fm10DirListJob10filesFoundERNS_12FileInfoListE@Base 0.16.0 _ZN2Fm10DirListJob10filesFoundERNS_12FileInfoListE@Base 0.16.0
_ZN2Fm10DirListJob11qt_metacallEN11QMetaObject4CallEiPPv@Base 0.16.0 _ZN2Fm10DirListJob11qt_metacallEN11QMetaObject4CallEiPPv@Base 0.16.0
@ -356,6 +356,7 @@ libfm-qt.so.11 libfm-qt11 #MINVER#
_ZN2Fm12FileLauncher11launchFilesEP7QWidgetRKNS_12FileInfoListE@Base 0.16.0 _ZN2Fm12FileLauncher11launchFilesEP7QWidgetRKNS_12FileInfoListE@Base 0.16.0
_ZN2Fm12FileLauncher11launchPathsEP7QWidgetRKSt6vectorINS_8FilePathESaIS4_EE@Base 0.16.0 _ZN2Fm12FileLauncher11launchPathsEP7QWidgetRKSt6vectorINS_8FilePathESaIS4_EE@Base 0.16.0
_ZN2Fm12FileLauncher13launchWithAppEP7QWidgetP9_GAppInfoRKSt6vectorINS_8FilePathESaIS6_EE@Base 1.1.0 _ZN2Fm12FileLauncher13launchWithAppEP7QWidgetP9_GAppInfoRKSt6vectorINS_8FilePathESaIS6_EE@Base 1.1.0
_ZN2Fm12FileLauncher16resetExecActionsEv@Base 1.2.0
_ZN2Fm12FileLauncher3askEPKcPKPci@Base 0.16.0 _ZN2Fm12FileLauncher3askEPKcPKPci@Base 0.16.0
_ZN2Fm12FileLauncher9chooseAppERKNS_12FileInfoListEPKcRNS_9GErrorPtrE@Base 0.16.0 _ZN2Fm12FileLauncher9chooseAppERKNS_12FileInfoListEPKcRNS_9GErrorPtrE@Base 0.16.0
_ZN2Fm12FileLauncher9showErrorEP18_GAppLaunchContextRKNS_9GErrorPtrERKNS_8FilePathERKSt10shared_ptrIKNS_8FileInfoEE@Base 0.16.0 _ZN2Fm12FileLauncher9showErrorEP18_GAppLaunchContextRKNS_9GErrorPtrERKNS_8FilePathERKSt10shared_ptrIKNS_8FileInfoEE@Base 0.16.0

View File

@ -1,25 +0,0 @@
From 472128c3bfc301f3258bd99501a88ef4097d0429 Mon Sep 17 00:00:00 2001
From: tsujan <tsujan2000@gmail.com>
Date: Thu, 9 Jun 2022 01:35:27 +0430
Subject: [PATCH] Fixed crash with empty URI scheme of folder path (#808)
An empty URI scheme is possible when trying to open a folder with an empty path (like when the desktop path is empty and pcmanfm-qt's desktop module is started).
Fixes https://github.com/lxqt/lxqt-session/issues/439
---
src/core/folder.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/core/folder.cpp b/src/core/folder.cpp
index 5bb40137..710a9132 100644
--- a/src/core/folder.cpp
+++ b/src/core/folder.cpp
@@ -532,7 +532,7 @@ void Folder::onDirListFinished() {
const auto& infos = job->files();
// with "search://", there is no update for infos and all of them should be added
- if(strcmp(dirPath_.uriScheme().get(), "search") == 0) {
+ if(dirPath_.hasUriScheme("search")) {
files_to_add = infos;
for(auto& file: files_to_add) {
files_[file->path().baseName().get()] = file;

View File

@ -1,3 +1 @@
fix-metadata-for-trusting-executables.patch fix-metadata-for-trusting-executables.patch
fix-uri-scheme-crash.patch
support-adding-pattern-lists.patch

View File

@ -1,124 +0,0 @@
From f66aa205c48a60378abcf0dac3d21b83d47aa2c5 Mon Sep 17 00:00:00 2001
From: tsujan <tsujan2000@gmail.com>
Date: Sat, 14 May 2022 01:17:14 +0430
Subject: [PATCH] Support adding of pattern lists to entries of search dialog
(#806)
Such lists will be used later for adding search history to `pcmanfm-qt`.
---
src/filesearch.ui | 13 ++++++++++---
src/filesearchdialog.cpp | 28 ++++++++++++++++++++++++++--
src/filesearchdialog.h | 6 ++++++
3 files changed, 42 insertions(+), 5 deletions(-)
diff --git a/src/filesearch.ui b/src/filesearch.ui
index 85e57556..a90456a5 100644
--- a/src/filesearch.ui
+++ b/src/filesearch.ui
@@ -36,8 +36,11 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
- <widget class="QLineEdit" name="namePatterns">
- <property name="text">
+ <widget class="QComboBox" name="namePatterns">
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ <property name="currentText">
<string>*</string>
</property>
</widget>
@@ -218,7 +221,11 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
- <widget class="QLineEdit" name="contentPattern"/>
+ <widget class="QComboBox" name="contentPattern">
+ <property name="editable">
+ <bool>true</bool>
+ </property>
+ </widget>
</item>
<item>
<widget class="QCheckBox" name="contentCaseSensitive">
diff --git a/src/filesearchdialog.cpp b/src/filesearchdialog.cpp
index 0216687f..267cc4c7 100644
--- a/src/filesearchdialog.cpp
+++ b/src/filesearchdialog.cpp
@@ -23,6 +23,7 @@
#include "ui_filesearch.h"
#include <limits>
#include <QFileDialog>
+#include <QCompleter>
#include <utility>
namespace Fm {
@@ -43,6 +44,10 @@ FileSearchDialog::FileSearchDialog(QStringList paths, QWidget* parent, Qt::Windo
connect(ui->addPath, &QPushButton::clicked, this, &FileSearchDialog::onAddPath);
connect(ui->removePath, &QPushButton::clicked, this, &FileSearchDialog::onRemovePath);
+ // the default completer is case-insensitive
+ ui->namePatterns->completer()->setCaseSensitivity(Qt::CaseSensitive);
+ ui->contentPattern->completer()->setCaseSensitivity(Qt::CaseSensitive);
+
ui->namePatterns->setFocus();
}
@@ -50,6 +55,25 @@ FileSearchDialog::~FileSearchDialog() {
delete ui;
}
+QString FileSearchDialog::namePattern() const {
+ return ui->namePatterns->currentText();
+}
+
+QString FileSearchDialog::contentPattern() const {
+ return ui->contentPattern->currentText();
+}
+
+void FileSearchDialog::addNamePatterns(const QStringList& patterns) {
+ ui->namePatterns->addItems(patterns);
+ ui->namePatterns->setCurrentIndex(-1);
+ ui->namePatterns->setCurrentText(QLatin1String("*"));
+}
+
+void FileSearchDialog::addContentPatterns(const QStringList& patterns) {
+ ui->contentPattern->addItems(patterns);
+ ui->contentPattern->setCurrentIndex(-1);
+}
+
void FileSearchDialog::accept() {
// build the search:/// uri
int n = ui->listView->count();
@@ -62,11 +86,11 @@ void FileSearchDialog::accept() {
fm_search_set_recursive(search, ui->recursiveSearch->isChecked());
fm_search_set_show_hidden(search, ui->searchHidden->isChecked());
- fm_search_set_name_patterns(search, ui->namePatterns->text().toUtf8().constData());
+ fm_search_set_name_patterns(search, ui->namePatterns->currentText().toUtf8().constData());
fm_search_set_name_ci(search, !ui->nameCaseSensitive->isChecked());
fm_search_set_name_regex(search, ui->nameRegExp->isChecked());
- fm_search_set_content_pattern(search, ui->contentPattern->text().toUtf8().constData());
+ fm_search_set_content_pattern(search, ui->contentPattern->currentText().toUtf8().constData());
fm_search_set_content_ci(search, !ui->contentCaseSensitive->isChecked());
fm_search_set_content_regex(search, ui->contentRegExp->isChecked());
diff --git a/src/filesearchdialog.h b/src/filesearchdialog.h
index 504c1ed0..2aee1b57 100644
--- a/src/filesearchdialog.h
+++ b/src/filesearchdialog.h
@@ -59,6 +59,12 @@ class LIBFM_QT_API FileSearchDialog : public QDialog {
bool searchhHidden() const;
void setSearchhHidden(bool hidden);
+ QString namePattern() const;
+ QString contentPattern() const;
+
+ void addNamePatterns(const QStringList& patterns);
+ void addContentPatterns(const QStringList& patterns);
+
private Q_SLOTS:
void onAddPath();
void onRemovePath();

6
debian/watch vendored
View File

@ -1,3 +1,5 @@
version=4 version=4
opts="pgpsigurlmangle=s/$/.asc/" \ opts="searchmode=plain, \
https://github.com/lxqt/libfm-qt/releases .*/libfm-qt-([\d\.]+).tar.xz pgpsigurlmangle=s/$/.asc/, \
uversionmangle=s/(\d+\.\d+\.\d+).*/$1/" \
https://api.github.com/repos/lxqt/@PACKAGE@/releases https:\/\/github.com\/lxqt\/@PACKAGE@\/releases\/download\/@ANY_VERSION@\/@PACKAGE@-@ANY_VERSION@.tar.xz