Bug 442626

Summary: Applications are not session-restored with the command-line arguments they were launched with
Product: [Plasma] plasmashell Reporter: Dominik Kummer <admin>
Component: Session ManagementAssignee: Dominik Kummer <admin>
Status: ASSIGNED ---    
Severity: normal CC: mikel5764, nate, plasma-bugs
Priority: NOR    
Version: 5.27.5   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=240886
Latest Commit: Version Fixed In:

Description Dominik Kummer 2021-09-18 01:59:20 UTC
SUMMARY
Custom .desktop entries created with right-click on Kickoff->Edit Applications... and custom shell parameters (e.g. `falkon --no-remote --wmclass="falkon develop" --profile develop %u`) does not restore with same shell parameters. Which breaks kwin ruleset for several falkon instances after reboot.

STEPS TO REPRODUCE
1. right-click on Kickoff->Edit Applications...
2. copy "Falkon" entry, rename it to "Falkon Develop"
3. extend shell command to `falkon --no-remote --wmclass="falkon develop" --profile develop %u`
4. start Falkon instance
5. save session
6. logout/login

OBSERVED RESULT
Default falkon instance is started without custom parameters

EXPECTED RESULT
Custom falkon instance started with new parameters
Comment 1 Nate Graham 2021-09-21 19:48:27 UTC

*** This bug has been marked as a duplicate of bug 440507 ***
Comment 2 Dominik Kummer 2021-09-21 19:52:39 UTC
Is it really a duplicate? The other bug is shortcut related, right? But this one is about session restoration. Is it related behind the scenes?
Comment 3 Nate Graham 2021-09-22 12:19:09 UTC
Hmm, maybe you're right.

Moving to ksmserver which handles session restoration.