octalmage / mDesktop

mDesktop is a lightweight application that allows the user to utilize multiple virtual desktops.
Other
242 stars 46 forks source link

Defining Program Rules #17

Open Cidxx opened 10 years ago

Cidxx commented 10 years ago

It would be interesting having the possibility to define kind of Program Rules, being able to assign a certain application, every time is launched, to a specific desktop. I think this request is a kind of "migration" of issue 72 from the old Google Code Repo.

Thanks a lot for your great application!

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/4119880-defining-program-rules?utm_campaign=plugin&utm_content=tracker%2F1897034&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1897034&utm_medium=issues&utm_source=github).
octalmage commented 10 years ago

This is a great idea, but as discussed in the old issue it is very difficult to implement. This requires using hooks to detect when windows are opened so I can then move them to their specific desktop.

In my testing this was very buggy (the hooks didn't always fire), but that was years ago. I'm open to trying this again!

octalmage commented 10 years ago

I think I decided how I'm going to handle this.

mDesktop has an API, I'm going to extend it to allow for this to be a plugin! This way mDesktop remains lightweight, and users who want additional functionality can have it.