We have moved to a new Sailfish OS Forum. Please start new discussions there.
11

X-Nemo-Single-Instance=no is not respected [released]

asked 2020-01-25 20:29:35 +0300

rinigus gravatar image

updated 2020-01-26 11:12:54 +0300

According to the docs (https://harbour.jolla.com/faq , https://harbour.jolla.com/faq#4.5.0), we should be able to disable single-instance launching of the app. This does not work on SFOS 3.2.1.x and looks like the issue started earlier. Please restore the expected behavior.

Why needed in my case: I am wrapping Flatpak apps using the same application (flatpak-runner). With the current state, I can run only single Flatpak app.

Edit: As it seems to be not reproduced by all, I am adding an example and config.

Sailfish version: 3.2.1.20

There are no patches installed. When testing, please make sure you don't have corresponding patch installed: https://coderus.openrepos.net/pm2/project/sailfishos-launcher-multi-instances-patch

Example: I have applications Flatpak Runner and Spectral. All applications are started via Lipstick app grid. When starting Flatpak Runner first, I get the same instance if I start Spectral later. Similar situation is if I start Spectral first and the runner later.

Corresponding desktop files:

Flatpak Runner, installed in /usr/share/applications/flatpak-runner.desktop:

[Desktop Entry]
Type=Application
X-Nemo-Single-Instance=no
X-Nemo-Application-Type=no-invoker
Icon=flatpak-runner
Exec=flatpak-runner
Name=Flatpak

Example application desktop file (.local/share/applications/flatpak-runner-autogen-org.eu.encom.spectral.desktop):

Name = Spectral
GenericName = Matrix Client
Comment = IM client for the Matrix protocol
Exec = flatpak-runner org.eu.encom.spectral
Terminal = false
Icon = /home/nemo/.local/share/flatpak/exports/share/icons/hicolor/512x512/apps/org.eu.encom.spectral.png
Type = Application
Categories = Network;InstantMessaging;
Name[en_US] = Spectral
X-Flatpak = org.eu.encom.spectral
X-Nemo-Single-Instance = no
X-Nemo-Application-Type = no-invoker
edit retag flag offensive reopen delete

The question has been closed for the following reason "released in a software update" by coderus
close date 2020-05-15 15:40:11.201699

Comments

1

This certainly used to work for me, i'll have to check whether it still works or not.

EDIT: it appears to work still

r0kk3rz ( 2020-01-26 02:17:26 +0300 )edit
1

@r0kk3rz: Please check whether you have any patches installed. In particular, sailfishos-launcher-multi-instances-patch. I have added examples above, maybe you can recognize whats wrong with them.

rinigus ( 2020-01-26 10:41:49 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2020-05-15 15:39:53 +0300

coderus gravatar image

Fixed in 3.3 (https://together.jolla.com/question/193960/problem-with-exec-and-single-instance-in-desktop-files-on-sailfish-os-3/?answer=226116#post-id-226116)

edit flag offensive delete publish link more

Question tools

Follow
5 followers

Stats

Asked: 2020-01-25 20:29:35 +0300

Seen: 648 times

Last updated: May 15 '20