[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-07 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=462709

--- Comment #7 from Nicolas Fella  ---
> It appears that the TerminalOptions= is also now deprecated,
> yet Terminal=true/false is still there.  Do you know what is supposed to be
> used as the replacement?  It appears the solution is to completely bypass
> the terminal option and specify the Terminal in Exec= with the "-e" option
> but that seems sort of hackish IMO.

I don't know of any replacement, but I kind of see why it was deprecated. You
can't know which terminal will actually be used, so you can't know which
options are available/supported.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-06 Thread Gerald Cox
https://bugs.kde.org/show_bug.cgi?id=462709

Gerald Cox  changed:

   What|Removed |Added

 Resolution|NOT A BUG   |FIXED

--- Comment #6 from Gerald Cox  ---
(In reply to Nicolas Fella from comment #5)
> X-DBUS-ServiceName and X-DBUS-StartupType are only relevant in the context
> of KToolInvocation/KInit, which are deprecated/obsolete. They don't do what
> you expect them to do.
> 
> If you want your app to have single-window behavior you'll need to implement
> that yourself, e.g. by using a lock file on disk that the app checks during
> startup

OK, Nicolas, thank you very much for your quick reply.  I'll do the lock file
approach.  It appears that the TerminalOptions= is also now deprecated, yet
Terminal=true/false is still there.  Do you know what is supposed to be used as
the replacement?  It appears the solution is to completely bypass the terminal
option and specify the Terminal in Exec= with the "-e" option but that seems
sort of hackish IMO.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-06 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=462709

Nicolas Fella  changed:

   What|Removed |Added

 Resolution|--- |NOT A BUG
 Status|REPORTED|RESOLVED

--- Comment #5 from Nicolas Fella  ---
X-DBUS-ServiceName and X-DBUS-StartupType are only relevant in the context of
KToolInvocation/KInit, which are deprecated/obsolete. They don't do what you
expect them to do.

If you want your app to have single-window behavior you'll need to implement
that yourself, e.g. by using a lock file on disk that the app checks during
startup

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-06 Thread Gerald Cox
https://bugs.kde.org/show_bug.cgi?id=462709

Gerald Cox  changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |REPORTED

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-06 Thread Gerald Cox
https://bugs.kde.org/show_bug.cgi?id=462709

--- Comment #4 from Gerald Cox  ---
(In reply to Nate Graham from comment #2)
> What desktop file where? What's the problem?
Please see my reply to Nicolas Fella.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-06 Thread Gerald Cox
https://bugs.kde.org/show_bug.cgi?id=462709

--- Comment #3 from Gerald Cox  ---
(In reply to Nicolas Fella from comment #1)
> Can you please give some context on what you are trying to achieve?

I'm creating a front-end script to automate ykman processing, it runs konsole
in the background.  I only want 1 instance of the script to run at a time.  My
understanding from the doc previously mentioned, using Unique in the desktop
file will accomplish this.  

Here is the desktop file I've created:
[Desktop Entry]
Comment[en_US]=
Comment=
Exec=/usr/bin/ykocli ykobkg
GenericName[en_US]=
GenericName=YkoCLI
Icon=/usr/share/pixmaps/ykocli.png
MimeType=
Name[en_US]=YkoCLI
Name=YkoCLI
Path=
StartupNotify=true
Terminal=true
TerminalOptions= --background-mode --profile ykocli
Type=Application
Categories=Utility;
X-DBUS-ServiceName=org.bitbucket.gbcox.ykocli
X-DBUS-StartupType=Unique
X-KDE-SubstituteUID=false
X-KDE-Username=
~

However when I start using this desktop file, multiple instances are created.  
Maybe I'm missing something, but if you look at the reddit question I posted,
another person tested this under both Wayland and X11 and reported they
couldn't get it to work either.

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-06 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=462709

Nate Graham  changed:

   What|Removed |Added

 Resolution|--- |WAITINGFORINFO
 Status|REPORTED|NEEDSINFO
 CC||n...@kde.org

--- Comment #2 from Nate Graham  ---
What desktop file where? What's the problem?

-- 
You are receiving this mail because:
You are watching all bug changes.

[frameworks-plasma] [Bug 462709] Desktop ServiceName, StartupType Don't appear to work

2022-12-06 Thread Nicolas Fella
https://bugs.kde.org/show_bug.cgi?id=462709

Nicolas Fella  changed:

   What|Removed |Added

 CC||nicolas.fe...@gmx.de

--- Comment #1 from Nicolas Fella  ---
Can you please give some context on what you are trying to achieve?

-- 
You are receiving this mail because:
You are watching all bug changes.