nlpsuge / gnome-shell-extension-another-window-session-manager

A Gnome shell extension to close open windows gracefully and save them as a session. The previous session can be restored at startup. Most importantly, it supports both X11 and Wayland!
https://extensions.gnome.org/extension/4709/another-window-session-manager/
GNU General Public License v3.0
150 stars 6 forks source link

Passing arguments to cmd in session config file. #66

Open atmughrabi opened 1 year ago

atmughrabi commented 1 year ago

Can we pass arguments to our session command, for example?

"cmd": [ "/usr/bin/tilix --session saved_session.json", "--gapplication-service" ],

This seems to have no effect.

Thank you!

nlpsuge commented 1 year ago

This seems to have no effect.

{
    "cmd": [
        "/opt/microsoft/msedge/msedge"
    ],
    "desktop_file_id": "microsoft-edge.desktop",
    "desktop_file_id_full_path": "/usr/share/applications/microsoft-edge.desktop"
}

For the above session config, AWSM will use desktop_file_id instead of cmd. Unless desktop_file_id is empty, which indicates the app is window-backed and it does not have a .desktop file, AWSM will execute cmd to run the app.

You session config should have desktop_file_id, so AWSM won't execute cmd.