Add processes' command line arguments when saving legacy commands
Submitted by Markus
Assigned to Xfce Bug Triage
Description
Please, make the session manager aware of the processes' command line arguments
This would be useful for applications that support multiple processes or multiple profiles.
Example 1: multiple firefox profiles
firefox --no-remote -P default
firefox --no-remote -P something_else
results in firefox displaying two profile chooser dialogs after logout and login
Example 2: multiple meld sessions
meld dir1 dir2
meld dir3 (dir3 has a .git subdir)
results in two empty meld windows after logout and login
Of course, adding the command line args to the saved sessions will not solve all problems with applications losing their exact state, but it will solve many of them in a supposedly easy way. For some applicatons, will also need the user's assitance, e.g. it requires to create multiple firefox starters, including the command line args for profile selection (or alternatively starting firefox from a terminal). But I think this is an acceptable requirement.
IMHO, for some applications (at least when it comes to multiple processes and profiles), it is just impossible to require them save and restore their full state on their own and then get along without any parameter on restart. The problem is, without the parameter you'll never know which one was which one.
Version: 4.8.3