Compare commits

...

13 Commits

@ -1,16 +1,5 @@
#!/usr/bin/make -f
all: build install
build:
all:
make -C src/usr/share/xsessions/po/
rm -rf src/usr/share/xsessions/po/ src/usr/share/xsessions/*.in
cd snap-installation-monitor && cmake -DCMAKE_BUILD_TYPE=Release . && make
install:
mkdir -pv $(DESTDIR)/lubuntu-snap-installation-monitor/usr/libexec
mkdir -pv $(DESTDIR)/lubuntu-snap-installation-monitor/etc/xdg/autostart
mkdir -pv $(DESTDIR)/lubuntu-default-settings/
cp -a src/etc src/usr $(DESTDIR)/lubuntu-default-settings/.
cp -a snap-installation-monitor/snap-installation-monitor $(DESTDIR)/lubuntu-snap-installation-monitor/usr/libexec/.
cp -a snap-installation-monitor/snap-installation-monitor.desktop $(DESTDIR)/lubuntu-snap-installation-monitor/etc/xdg/autostart/.

39
debian/changelog vendored

@ -1,6 +1,39 @@
lubuntu-default-settings (25.04.2) plucky; urgency=medium
* Default to the Ubuntu color scheme for QTerminal.
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 11 Dec 2024 02:03:08 -0600
lubuntu-default-settings (25.04.1) plucky; urgency=medium
* Welcome to Plucky Puffin!
* Remove snap-installation-monitor (LP: #2061318).
-- Simon Quigley <tsimonq2@ubuntu.com> Tue, 22 Oct 2024 19:47:26 -0500
lubuntu-default-settings (24.10.1) oracular; urgency=medium
[ Aaron Rainbolt ]
* Fix theming. (LP: #2080442)
[ Simon Quigley ]
* Switch back to qpdfview from okular.
* Port snap-installation-monitor to Qt 6.
* Switch to the Qt 6 LibreOffice frontend.
* Bump Standards-version to 4.7.0, no changes needed.
* Various Lintian complaints.
-- Aaron Rainbolt <arraybolt3@ubuntu.com> Wed, 11 Sep 2024 19:12:04 -0500
lubuntu-default-settings (24.04.11) noble; urgency=medium
* Do not show an actual popup, just the notification for the snap monitor.
-- Simon Quigley <tsimonq2@ubuntu.com> Wed, 17 Apr 2024 22:27:23 -0500
lubuntu-default-settings (24.04.10) noble; urgency=medium
* Do not show hibernate option in the menu. (LP: #1902497)
* Do not show hibernate option in the menu. (LP: #1902497)
-- Walter Lapchynski <wxl@ubuntu.com> Tue, 16 Apr 2024 23:28:56 +0000
@ -33,13 +66,13 @@ lubuntu-default-settings (24.04.6) noble; urgency=medium
lubuntu-default-settings (24.04.5) noble; urgency=medium
* Setting Okular as default application for PDF files.
* Setting Okular as default application for PDF files.
-- Walter Lapchynski <wxl@ubuntu.com> Fri, 08 Mar 2024 22:55:46 +0000
lubuntu-default-settings (24.04.4) noble; urgency=medium
* Updating quick launch for Firefox snap path.
* Updating quick launch for Firefox snap path.
-- Walter Lapchynski <wxl@ubuntu.com> Thu, 07 Mar 2024 21:50:30 +0000

19
debian/control vendored

@ -3,8 +3,8 @@ Section: x11
Priority: optional
Maintainer: Lubuntu Developers <lubuntu-devel@lists.ubuntu.com>
Uploaders: Simon Quigley <tsimonq2@ubuntu.com>
Build-Depends: cmake, debhelper-compat (= 13), intltool, qtbase5-dev
Standards-Version: 4.6.2
Build-Depends: debhelper-compat (= 13), intltool
Standards-Version: 4.7.0
Homepage: https://lubuntu.me
Vcs-Browser: https://git.launchpad.net/lubuntu-default-settings?h=master
Vcs-Git: https://git.launchpad.net/lubuntu-default-settings
@ -18,14 +18,11 @@ Depends: fonts-ubuntu,
lxqt-session,
openbox,
policykit-desktop-privileges,
qt6-style-kvantum,
qt6-style-kvantum-l10n,
${misc:Depends}
Recommends: breeze-gtk-theme
Recommends: breeze-gtk-theme,
qt6-style-kvantum-themes
Description: default settings for Lubuntu
Various system settings tailored for Lubuntu.
Package: lubuntu-snap-installation-monitor
Architecture: amd64
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Simple notifier for snap installation
Let the user know if snaps are still being installed in the background when
booting up their desktop environment.
Various system settings tailored for Lubuntu's default session. This includes
default settings, applications, and themes.

19
debian/copyright vendored

@ -21,22 +21,3 @@ License: GPL-2+
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
Files: snap-installation-monitor/*
Copyright: Copyright 2024 Simon Quigley <tsimonq2@ubuntu.com>
License: GPL-3+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".

3
debian/install vendored

@ -0,0 +1,3 @@
src/etc/xdg /etc/
src/usr/lib /usr
src/usr/share /usr/

@ -0,0 +1,3 @@
# These desktop files are not meant to be user-visible; ignore these flags
lubuntu-default-settings: desktop-entry-lacks-icon-entry [usr/share/xsessions/Lubuntu.desktop]
lubuntu-default-settings: desktop-entry-lacks-keywords-entry [usr/share/xsessions/Lubuntu.desktop]

@ -1,3 +0,0 @@
lubuntu-default-settings/etc/xdg etc/
lubuntu-default-settings/usr/lib usr/
lubuntu-default-settings/usr/share usr/

@ -1,2 +0,0 @@
lubuntu-snap-installation-monitor/etc/xdg/autostart/snap-installation-monitor.desktop etc/xdg/autostart/
lubuntu-snap-installation-monitor/usr/libexec/snap-installation-monitor usr/libexec/

3
debian/rules vendored

@ -1,6 +1,3 @@
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_build:
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp

@ -1,9 +0,0 @@
cmake_minimum_required(VERSION 3.5.0)
project(snap-installation-monitor)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(Qt5 COMPONENTS Widgets DBus REQUIRED)
add_executable(snap-installation-monitor main.cpp)
target_link_libraries(snap-installation-monitor Qt5::Widgets Qt5::DBus)

@ -1,84 +0,0 @@
// Copyright (C) 2024 Simon Quigley <tsimonq2@ubuntu.com>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 3
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
#include <QApplication>
#include <QSystemTrayIcon>
#include <QtDBus/QtDBus>
#include <QTimer>
#include <QMessageBox>
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
// Create and set application icon
QIcon appIcon = QIcon::fromTheme("dialog-information");
QApplication::setWindowIcon(appIcon);
// DBus interface to systemd
QDBusInterface systemd("org.freedesktop.systemd1",
"/org/freedesktop/systemd1",
"org.freedesktop.systemd1.Manager",
QDBusConnection::systemBus());
// Retrieve current status of snapd.seeded.service, which tracks the preseed process
QDBusMessage methodCall = systemd.call("GetUnit", "snapd.seeded.service");
QDBusObjectPath unitPath = methodCall.arguments().at(0).value<QDBusObjectPath>();
QDBusInterface unit("org.freedesktop.systemd1",
unitPath.path(),
"org.freedesktop.systemd1.Unit",
QDBusConnection::systemBus());
QVariant activeState = unit.property("ActiveState");
QVariant subState = unit.property("SubState");
// System tray icon setup
QSystemTrayIcon trayIcon(appIcon);
trayIcon.setToolTip("Snap Installation Monitor");
// Initial message displayed in the system tray
auto showMessage = [&trayIcon]() {
trayIcon.showMessage("Installation Notice", "Finalizing installation of snaps, please wait...",
QSystemTrayIcon::Information, 15000);
};
// If the user clicks the system tray icon, display the notification again
QObject::connect(&trayIcon, &QSystemTrayIcon::activated, [&](QSystemTrayIcon::ActivationReason reason) {
if (reason == QSystemTrayIcon::Trigger) {
showMessage();
}
});
// Exit immediately if the service is "active (exited)", launch the GUI parts otherwise
if (activeState.toString() == "active" && subState.toString() == "exited") { return 0; }
trayIcon.show();
showMessage();
QTimer timer;
QObject::connect(&timer, &QTimer::timeout, [&unit, &trayIcon]() {
QVariant newState = unit.property("ActiveState");
QVariant newSubState = unit.property("SubState");
if (newState.toString() == "active" && newSubState.toString() == "exited") {
trayIcon.hide();
QMessageBox messageBox;
messageBox.setIcon(QMessageBox::Information);
messageBox.setText("Background snap installation is complete.");
messageBox.setWindowTitle("Installation Complete");
messageBox.setStandardButtons(QMessageBox::Ok);
messageBox.exec();
QApplication::quit();
}
});
timer.start(5000); // Check every 5 seconds
return app.exec();
}

@ -1,8 +0,0 @@
[Desktop Entry]
Type=Application
Name=Snap Installation Monitor
Exec=/usr/libexec/snap-installation-monitor
Icon=dialog-information
Comment=Monitor snapd seeding at startup
X-LXQt-Need-Tray=true
NoDisplay=true

@ -10,6 +10,6 @@ cursor_theme=breeze_cursors
[Qt]
font="Ubuntu,11,-1,5,50,0,0,0,0,0"
style=Breeze
style=kvantum
doubleClickInterval=400
wheelScrollLines=3

@ -7,8 +7,7 @@ BROWSER=firefox
GTK_CSD=0
GTK_OVERLAY_SCROLLING=0
TERM=qterminal
SAL_USE_VCLPLUGIN=qt5
SAL_VCL_QT5_USE_CAIRO=true
SAL_USE_VCLPLUGIN=qt6
[Mouse]
cursor_size=18

@ -4,6 +4,7 @@ FixedTabWidth=false
HideTabBarWithOnlyOneTab=true
fontFamily=Ubuntu Mono
fontSize=14
colorScheme=Ubuntu
[MainWindow]
size=@Size(800 600)

@ -1,2 +1,2 @@
[Default Applications]
application/pdf=okularApplication_pdf.desktop
application/pdf=qpdfview.desktop

@ -1,2 +1,2 @@
[Added Associations]
application/pdf=okularApplication_pdf.desktop
application/pdf=qpdfview.desktop

Loading…
Cancel
Save