Compare commits
15 Commits
ubuntu/lun
...
ubuntu/ora
Author | SHA1 | Date |
---|---|---|
Simon Quigley | 5fd7bd3860 | 5 months ago |
Simon Quigley | 61dedca925 | 5 months ago |
Simon Quigley | 7764149c07 | 7 months ago |
Simon Quigley | 0d14f33743 | 7 months ago |
Simon Quigley | ebb335dce1 | 7 months ago |
Simon Quigley | 9812c22b1a | 7 months ago |
Simon Quigley | ec53f204e2 | 7 months ago |
Simon Quigley | d75689e90e | 7 months ago |
Thomas Ward | bab4903cbb | 8 months ago |
Simon Quigley | 9f6f42e6a7 | 8 months ago |
Simon Quigley | 08293ed15c | 8 months ago |
Simon Quigley | e48c0003a6 | 10 months ago |
Simon Quigley | 0952dbc648 | 10 months ago |
Simon Quigley | 136e3e068c | 10 months ago |
Simon Quigley | 18160cc23e | 10 months ago |
@ -0,0 +1,2 @@
|
||||
[preferred]
|
||||
default=lxqt;kde;gtk;
|
@ -1,63 +0,0 @@
|
||||
From: Bernhard Rosenkraenzer <bero@lindev.ch>
|
||||
Date: Sat, 17 Dec 2022 17:34:17 +0800
|
||||
Subject: Use procps-ng 4.0.0
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
lxqt-session/src/procreaper.cpp | 19 ++++++++++++-------
|
||||
2 files changed, 13 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a3c5e0d..45992a0 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -35,7 +35,7 @@ find_package(X11 REQUIRED)
|
||||
message(STATUS "Building with Qt${Qt5Core_VERSION}")
|
||||
find_package(PkgConfig REQUIRED)
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
- pkg_search_module(PROCPS REQUIRED libprocps)
|
||||
+ pkg_search_module(PROCPS REQUIRED libproc2)
|
||||
endif()
|
||||
|
||||
# Please don't move, must be after lxqt
|
||||
diff --git a/lxqt-session/src/procreaper.cpp b/lxqt-session/src/procreaper.cpp
|
||||
index 2acd030..495267e 100644
|
||||
--- a/lxqt-session/src/procreaper.cpp
|
||||
+++ b/lxqt-session/src/procreaper.cpp
|
||||
@@ -29,7 +29,7 @@
|
||||
#include "log.h"
|
||||
#if defined(Q_OS_LINUX)
|
||||
#include <sys/prctl.h>
|
||||
-#include <proc/readproc.h>
|
||||
+#include <libproc2/pids.h>
|
||||
#elif defined(Q_OS_FREEBSD)
|
||||
#include <sys/procctl.h>
|
||||
#include <libutil.h>
|
||||
@@ -109,16 +109,21 @@ void ProcReaper::stop(const std::set<int64_t> & excludedPids)
|
||||
const pid_t my_pid = ::getpid();
|
||||
std::vector<pid_t> children;
|
||||
#if defined(Q_OS_LINUX)
|
||||
- PROCTAB * proc_dir = ::openproc(PROC_FILLSTAT);
|
||||
- while (proc_t * proc = ::readproc(proc_dir, nullptr))
|
||||
+ struct pids_info *info = NULL;
|
||||
+ enum pids_item items[] = { PIDS_ID_PPID, PIDS_ID_TGID };
|
||||
+ enum rel_items { rel_ppid, rel_tgid };
|
||||
+ struct pids_stack *stack;
|
||||
+ procps_pids_new(&info, items, 2);
|
||||
+ while ((stack = procps_pids_get(info, PIDS_FETCH_TASKS_ONLY)))
|
||||
{
|
||||
- if (proc->ppid == my_pid)
|
||||
+ const int ppid = PIDS_VAL(rel_ppid, s_int, stack, info);
|
||||
+ if (ppid == my_pid)
|
||||
{
|
||||
- children.push_back(proc->tgid);
|
||||
+ const int tgid = PIDS_VAL(rel_tgid, s_int, stack, info);
|
||||
+ children.push_back(tgid);
|
||||
}
|
||||
- ::freeproc(proc);
|
||||
}
|
||||
- ::closeproc(proc_dir);
|
||||
+ procps_pids_unref(&info);
|
||||
#elif defined(Q_OS_FREEBSD)
|
||||
int cnt = 0;
|
||||
if (kinfo_proc *proc_info = kinfo_getallproc(&cnt))
|
@ -0,0 +1,55 @@
|
||||
Description: lxqt-config-session/autostart: More strict user inputs
|
||||
Makes name and command mandatory when adding or editing a autostart an
|
||||
application. Check for already existing files when editing.
|
||||
.
|
||||
TODO: Add and Edit functions are almost indentical. Candidates to some
|
||||
refactoring.
|
||||
Author: Luís Pereira <luis.artur.pereira@gmail.com>
|
||||
Origin: upstream
|
||||
Bug: https://github.com/lxqt/lxqt-session/issues/486
|
||||
Applied-Upstream: 35acc5e7fe64ab78616968a5b73b150fdf2f002a
|
||||
Last-Update: 2023-12-22
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/lxqt-config-session/autostartpage.cpp
|
||||
+++ b/lxqt-config-session/autostartpage.cpp
|
||||
@@ -133,6 +133,11 @@ void AutoStartPage::addButton_clicked()
|
||||
while (!success && edit.exec() == QDialog::Accepted)
|
||||
{
|
||||
QModelIndex index = ui->autoStartView->selectionModel()->currentIndex();
|
||||
+ if (edit.name().isEmpty() || edit.command().isEmpty() )
|
||||
+ {
|
||||
+ QMessageBox::critical(this, tr("Error"), tr("Please provide Name and Command"));
|
||||
+ continue;
|
||||
+ }
|
||||
XdgDesktopFile file(XdgDesktopFile::ApplicationType, edit.name(), edit.command());
|
||||
if (edit.needTray())
|
||||
file.setValue(QL1S("X-LXQt-Need-Tray"), true);
|
||||
@@ -148,8 +153,14 @@ void AutoStartPage::editButton_clicked()
|
||||
QModelIndex index = ui->autoStartView->selectionModel()->currentIndex();
|
||||
XdgDesktopFile file = mXdgAutoStartModel->desktopFile(index);
|
||||
AutoStartEdit edit(file.name(), file.value(QL1S("Exec")).toString(), file.contains(QL1S("X-LXQt-Need-Tray")));
|
||||
- if (edit.exec() == QDialog::Accepted)
|
||||
+ bool success = false;
|
||||
+ while (!success && edit.exec() == QDialog::Accepted)
|
||||
{
|
||||
+ if (edit.name().isEmpty() || edit.command().isEmpty() )
|
||||
+ {
|
||||
+ QMessageBox::critical(this, tr("Error"), tr("Please provide Name and Command"));
|
||||
+ continue;
|
||||
+ }
|
||||
file.setLocalizedValue(QL1S("Name"), edit.name());
|
||||
file.setValue(QL1S("Exec"), edit.command());
|
||||
if (edit.needTray())
|
||||
@@ -157,7 +168,10 @@ void AutoStartPage::editButton_clicked()
|
||||
else
|
||||
file.removeEntry(QL1S("X-LXQt-Need-Tray"));
|
||||
|
||||
- mXdgAutoStartModel->setEntry(index, file, true);
|
||||
+ if (mXdgAutoStartModel->setEntry(index, file, true))
|
||||
+ success = true;
|
||||
+ else
|
||||
+ QMessageBox::critical(this, tr("Error"), tr("File '%1' already exists!").arg(file.fileName()));
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,34 @@
|
||||
Description: Copy over GTK 3 settings from XDG_CONFIG_DIRS
|
||||
This is a workaround for GTK 3 settings not being applied by default from XDG.
|
||||
Ideally, all desktop environments would do this, and it would be fixed in GTK itself.
|
||||
Author: Simon Quigley <tsimonq2@ubuntu.com>
|
||||
Origin: vendor
|
||||
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/gtk+3.0/+bug/2047705
|
||||
Forwarded: no
|
||||
Last-Update: 2023-12-29
|
||||
---
|
||||
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
|
||||
--- a/startlxqt.in
|
||||
+++ b/startlxqt.in
|
||||
@@ -32,6 +32,21 @@ else
|
||||
fi
|
||||
done
|
||||
fi
|
||||
+# Handle GTK 3 configuration files
|
||||
+echo "$XDG_CONFIG_DIRS" | tr ':' '\n' | while read -r dir; do
|
||||
+ dir_path="$dir/gtk-3.0/"
|
||||
+ if [ -d "$dir_path" ]; then
|
||||
+ mkdir -p "$HOME/.config/gtk-3.0"
|
||||
+ for file in "$dir_path"*; do
|
||||
+ if [ -f "$file" ]; then
|
||||
+ target_file="$HOME/.config/gtk-3.0/$(basename "$file")"
|
||||
+ if [ ! -f "$target_file" ]; then
|
||||
+ cp "$file" "$target_file"
|
||||
+ fi
|
||||
+ fi
|
||||
+ done
|
||||
+ fi
|
||||
+done
|
||||
|
||||
if [ -z "$XDG_CACHE_HOME" ]; then
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
@ -1,2 +1,3 @@
|
||||
ensure-necessary-paths-are-pulled-from.patch
|
||||
0001-Use-procps-ng-4.0.0.patch
|
||||
autostart-ux-polish.patch
|
||||
gtk-3-configuration-copy.patch
|
||||
|
Loading…
Reference in new issue