16
0

1 Commits

Author SHA256 Message Date
3623820643 Merge pull request 'leap-16.0' (#3) from lkocman/opensuse-welcome-launcher:leap-16.0 into leap-16.0
Reviewed-on: #3
Reviewed-by: Nathan Cutler <smithfarm@noreply.src.opensuse.org>
2025-09-08 15:58:18 +02:00
4 changed files with 13 additions and 27 deletions

View File

@@ -1,18 +1,3 @@
-------------------------------------------------------------------
Mon Oct 6 16:04:22 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Make opensuse-welcome-launcher support a --unconditional
parameter and launch it using this parameter when called via the
desktop file from the launcher. Fixes the issue that the icon
shown in the launcher did not actually start anything.
-------------------------------------------------------------------
Thu Oct 2 13:28:22 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>
- Be less hacky about the fallback, but rather explicitly assign
opensuse-welcome to KDE for now and switch GNOME to gnome-tour.
- Require gnome-tour when gnome-session is installed.
-------------------------------------------------------------------
Tue Aug 19 07:46:04 UTC 2025 - Dominique Leuenberger <dimstar@opensuse.org>

View File

@@ -13,7 +13,7 @@ if [[ -e "$HOME/.config/autostart/${LEGACY_XDG_FILE}" && \
fi
# Show only once per version
if [ "$1" != "--unconditional" -a -f ${HOME}/.local/share/opensuse-welcome/launched ]; then
if [ -f ${HOME}/.local/share/opensuse-welcome/launched ]; then
if [ "$(cat ${HOME}/.local/share/opensuse-welcome/launched)" = "${OSWL_VERSION_TAG}" ]; then
# We have already shown the laucher at this version - skipping
exit 0
@@ -38,7 +38,7 @@ welcome_binary=""
# Prefer Session specific greeter
if [[ "$de" == *plasma* ]]; then
welcome_binary=$(command -v opensuse-welcome)
welcome_binary=$(command -v plasma-welcome)
elif [[ "$de" == *gnome* ]]; then
welcome_binary=$(command -v gnome-tour)
fi
@@ -48,6 +48,11 @@ if [ -z "$welcome_binary" ]; then
welcome_binary=$(command -v opensuse-welcome)
fi
# XXX: hack for the initial integration
# keep legacy behavior and only trigger opensuse-welcome
# rest would be the next step
welcome_binary=$(command -v opensuse-welcome)
if [ ! -z "$welcome_binary" ]; then
$welcome_binary
fi

View File

@@ -1,7 +1,7 @@
#
# spec file for package opensuse-welcome-launcher
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,14 +25,13 @@ Group: System/X11/Utilities
URL: https://github.com/openSUSE/openSUSE-welcome
Source0: opensuse-welcome-launcher.sh
# Original filename was org.opensuse.opensuse_welcome.desktop
Source1: org.opensuse.opensuse_welcome_launcher.desktop.in
Source1: org.opensuse.opensuse_welcome_launcher.desktop
Source3: org.opensuse.opensuse_welcome_launcher.svg
Source4: org.opensuse.opensuse_welcome_launcher-symbolic.svg
Recommends: opensuse-welcome >= 0.1.10
Requires: (gnome-tour if gnome-session)
BuildRequires: hicolor-icon-theme
BuildRequires: hicolor-icon-theme-branding-openSUSE
BuildArch: noarch
BuildArch: noarch
%description
A simple wrapper to spawn relevant welcome tool on given desktop
@@ -54,10 +53,8 @@ mkdir -p %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps
install -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/opensuse-welcome-launcher
# Install desktop entries
install -d -m 0755 %{buildroot}%{_distconfdir}/xdg/autostart
sed "s|@PARAMS@||g" %{SOURCE1} > %{buildroot}%{_distconfdir}/xdg/autostart/org.opensuse.opensuse_welcome_launcher.desktop
install -d -m 0755 %{buildroot}%{_datadir}/applications
sed "s|@PARAMS@| --unconditional|g" %{SOURCE1} > %{buildroot}%{_datadir}/applications/org.opensuse.opensuse_welcome_launcher.desktop
install -m 0644 %{SOURCE1} %{buildroot}%{_distconfdir}/xdg/autostart/org.opensuse.opensuse_welcome_launcher.desktop
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/org.opensuse.opensuse_welcome_launcher.desktop
# Install icons
install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/org.opensuse.opensuse_welcome_launcher.svg
@@ -70,5 +67,4 @@ install -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/symbolic/apps/o
%dir %{_datadir}/opensuse-welcome-launcher
%{_datadir}/icons/hicolor/scalable/apps/org.opensuse.opensuse_welcome_launcher.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.opensuse.opensuse_welcome_launcher-symbolic.svg
%changelog

View File

@@ -2,7 +2,7 @@
[Desktop Entry]
Type=Application
Name=Welcome launcher
Exec=/usr/bin/opensuse-welcome-launcher@PARAMS@
Exec=/usr/bin/opensuse-welcome-launcher
Icon=org.opensuse.opensuse_welcome_launcher
Comment=The openSUSE Welcome launcher utility.
Categories=Qt;System;Documentation