<Solved>Preserve "Visible on all workspaces" option after reboot

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
firubat
Level 1
Level 1
Posts: 23
Joined: Tue May 10, 2022 3:10 am

<Solved>Preserve "Visible on all workspaces" option after reboot

Post by firubat »

When I'm working on multiple workspaces, I like that some apps (e.g. WhatsApp client) are visible on all workspaces. I'd like to have this preserved after rebooting the system, so I don't have to enable it every time. Is there a way to do this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mikeflan
Level 17
Level 17
Posts: 7155
Joined: Sun Apr 26, 2020 9:28 am
Location: Houston, TX

Re: Preserve "Visible on all workspaces" option after reboot

Post by mikeflan »

I would like this too. xed does this automatically for me. I am told other programs do this also, but xed is the only one I know of.

In the meantime, I just set this up and it is going to save me a bit of time after a restart:
https://elementaryos.stackexchange.com/ ... workspaces

Here is a very old feature request. We may not get this capability for quite some time:
https://github.com/linuxmint/Cinnamon/issues/1052
firubat
Level 1
Level 1
Posts: 23
Joined: Tue May 10, 2022 3:10 am

Re: Preserve "Visible on all workspaces" option after reboot

Post by firubat »

OK I managed to find a solution! The program wmctrl enables window actions, in particular making a window "sticky" i.e. visible on all workspaces. So I simply add the right command to the launcher of the desired program, and it works! The command to make a window sticky is

Code: Select all

wmctrl -r <WINDOWTITLE> -b add,sticky
To edit the launcher, right click the Menu icon and select "configure". At the "Layout and Content" tab click "Open the menu editor". Find your desired app, and double click to open its Launcher Properties. There, replace <COMMAND> with the following:

Code: Select all

sh -c "<COMMAND> ; wmctrl -r <WINDOWTITLE> -b add,sticky"
(check in advance what is the title of the window the app opens). Click OK and that's it!

To be clear - this does't literally "preserve the last choice", but that is in fact what I wanted - to have certain apps always launch on all workspaces.
Locked

Return to “Cinnamon”