Special window settings for the first window only

Is there a way to set the special window settings to trigger only for the first stance of a window? For one I have Firefox on autostart and I’d like for it to always open on a specific virtual desktop, however only that first instance from autostart, I do not want subsequent windows I happen to open being moved around.

why do you not want to use the built in restore session feature so everything comes back just how you left it when you reboot?

I guess the easiest way to achieve it is to create a firefox desktop app with a given profile. There have been similar discussions about separated firefox windows in a bunch of demands. In the end, creating a firefox -p app is the easiest option.
To give you an example, I quickly created an ssb for firefox youtube.
I’ve set it to open on desktop 3 ( which you can add to your autostart). The default profile is launched in whatever desktop you want/are on.


That being said, I more or less ditched firefox ( for a heap of reasons) and mostly use the, imho, best ( I’ve checked a lot) FF based browser, Floorp. It comes with workspaces. I’m not really reaaly sure, but I believe you can launch separate instances ( workspaces). But you’d need to look it up. I don’t use workspaces myself.
In either case, running FF -p or ssb or some app form works.
Floorp:

I̶ ̶u̶s̶e̶ ̶t̶h̶a̶t̶,̶ ̶i̶t̶ ̶r̶e̶m̶e̶m̶b̶e̶r̶s̶ ̶t̶h̶e̶ ̶t̶a̶b̶s̶ ̶a̶n̶d̶ ̶s̶i̶z̶e̶ ̶a̶l̶r̶i̶g̶h̶t̶,̶ ̶b̶u̶t̶ ̶j̶u̶s̶t̶ ̶o̶p̶e̶n̶s̶ ̶i̶n̶ ̶t̶h̶e̶ ̶w̶o̶r̶k̶s̶p̶a̶c̶e̶ ̶t̶h̶a̶t̶ ̶I̶’̶m̶ ̶c̶u̶r̶r̶e̶n̶t̶l̶y̶ ̶o̶n̶.

Nevermind that, I misunderstood what you said.

Okay, the session restore feature works like 1 out of 20 times, and only for some windows. I am in Wayland, if that makes any difference.

ah, wayland.

there is a long standing issue with session restore under wayland and this is the main reason why i switched back to x11.

they each handle remembering where all the windows are placed differently and wayland leaves it more up to the developer to build that feature into their code iirc, where x11 manages all that for all the open windows.

so in wayland you get a more hit/miss experience were on x11 it’s solid… i expect, over time, more developers will adapt to the wayland way and session restore will become usable again under wayland, but we are not there yet.