Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
dev:session-management [2009/07/19 14:17] – add more stuff 67.188.6.70 | dev:session-management [2009/07/19 14:24] – apparently you can't have "code" markup in a heading kelnos |
---|
* This is somewhat abusing the XDG autostart spec. We'd end up either setting ''Hidden=true''/''NoDisplay=true'' to keep anyone else from seeing it, or (more likely) using ''OnlyShowIn=XFCE;'' to achieve the same result. But still, it's a little nasty. | * This is somewhat abusing the XDG autostart spec. We'd end up either setting ''Hidden=true''/''NoDisplay=true'' to keep anyone else from seeing it, or (more likely) using ''OnlyShowIn=XFCE;'' to achieve the same result. But still, it's a little nasty. |
* Third-party tools might wipe out our session-management-specific keys upon editing them, if they're not written in a sane way. This is a minor consideration, I think. | * Third-party tools might wipe out our session-management-specific keys upon editing them, if they're not written in a sane way. This is a minor consideration, I think. |
* It's more difficult to clear the session, both manually and programmatically. Instead of just deleting out a file or directory, you have to check each file to see if it's a plain-vanilla XDG autostart file, or if it's part of a saved session. This also raises the question of what a "session removal" really is: is it just removing apps restored by the session manager, or does it also mean clearing out all XDG autostart files, even those created by the user or auto-created by some random app? | * It's more difficult to clear the session, both manually and programmatically. Instead of just deleting a file or directory, you have to check each file to see if it's a plain-vanilla XDG autostart file, or if it's part of a saved session. This also raises the question of what a "session removal" really is: is it just removing apps restored by the session manager, or does it also mean clearing out all XDG autostart files, even those created by the user or auto-created by some random app? |
* Using the XDG autostart dir makes having more than one saved session difficult (well, not too difficult: you just have an extra key in the file with the session name; but of course this makes the previous point more complicated, and makes the point about third-party tools fail completely, since they'll likely show app apps from all sessions). However, I've often thought having multiple sessions is a rarely-used feature that just bloats xfce4-session, complicates the code, and is confusing to end-users so I'd consider removing it. | * Using the XDG autostart dir makes having more than one saved session difficult (well, not too difficult: you just have an extra key in the file with the session name; but of course this makes the previous point more complicated, and makes the point about third-party tools fail completely, since they'll likely show all apps from all sessions). However, I've often thought having multiple sessions is a rarely-used feature that just bloats xfce4-session, complicates the code, and is confusing to end-users so I'd consider removing it. |
| |
I'm currently leaning toward storing these in the XDG autostart directory. | I'm currently leaning toward storing these in the XDG autostart directory. |
ClientId=abcdefg-0123456789\\ | ClientId=abcdefg-0123456789\\ |
Priority=40\\ | Priority=40\\ |
RestartCommand=xfdesktop --sm-client-id abcdefg-0123456789 | RestartCommand=xfdesktop --sm-client-id abcdefg-0123456789\\ |
CurrentDirectory=/home/brian\\ | CurrentDirectory=/home/brian\\ |
RestartStyle=RestartImmediately'' | RestartStyle=RestartImmediately'' |
==== Other Issues ==== | ==== Other Issues ==== |
| |
=== Value of the ''Name'' Key === | === Value of the Name Key === |
| |
The ''Name'' key in the desktop file would provide a user-readable name for the application. This is useful in a session editor (which ends up being the autostart editor). For autostart/session files installed by the application, this is already taken care of us, and the names are even probably localized for us. | The ''Name'' key in the desktop file would provide a user-readable name for the application. This is useful in a session editor (which ends up being the autostart editor). For autostart/session files installed by the application, this is already taken care of us, and the names are even probably localized for us. |