Startup: How do I launch app in designated window

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Startup: How do I launch app in designated window

Post by winemaker9 »

Mint 18.1 Cinnamon
Ok, I know how to use the startup app, but can't seem to find a way to designate a specific window unless I go back in years. :roll:
In other words, I want Thunderbird in Win1, chromium in Win 2, etc.
Thanks
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.
TooMuchTime

Re: Startuup: How do I launch app in designated window

Post by TooMuchTime »

Question: When you say "window" do you mean "workspace?"
User avatar
austin.texas
Level 20
Level 20
Posts: 12003
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Startuup: How do I launch app in designated window

Post by austin.texas »

Or, do you mean the Window List tabs on the Panel? Meaning, you want one program to always open first when you log in?
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Linux Linx 2018
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startup: How do I launch app in designated workspace

Post by winemaker9 »

woops...yes, I mean WORKSPACE...sorry. I'll check back later. :oops:
Steve
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Startup: How do I launch app in designated workspace

Post by Flemur »

Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Startuup: How do I launch app in designated window

Post by Cosmo. »

Install gdevilspie.
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startuup: How do I launch app in designated window

Post by winemaker9 »

Ok, I'm running Cinnamon and have installed gdevilpie. The daemon is active so I know I have that correct, but after fooling around for an hour, I'm no closer, so it's easier to just ask.

On boot, I want

Thunderbird to open in Workspace 1
Chromium to open in Workspace 2


Here's the Chromium rule I had set up...
Screenshot from 2017-02-02 15-54-33.png
Screenshot from 2017-02-02 15-55-45.png
Screenshot from 2017-02-02 15-56-02.png
last but not least here's the generated rule that appears under the RAW tab.

Code: Select all

( if 
( begin 
( matches ( application_name ) "chromium" )
) 
( begin 
( set_workspace 2 )
( println "match" )
)
)
Last question, do I need to put them in the "Startup Applications" app as well?
Thanks....
Steve
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Startuup: How do I launch app in designated window

Post by Cosmo. »

The crucial part is the correct application name. You can find the correct name easily, if you use the get button at the bottom. The application in question must run to get shown in the list.

Another thing: Chrome and Chromium are 2 different programs. You wrote about chromium, but the title of the rule says Chrome. So what do you really mean?
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startup: How do I launch app in designated window

Post by winemaker9 »

Chromium is the browser ....I'd tried using the GET, but still neither one launched (Chromium or Thunderbird), The top line is only what I name it, not the actual program name.... But if we're talking about that....
Screenshot from 2017-02-02 16-51-41.png
so this is the normal link from the desktop...I'd assume that "thunderbird" would be the correct entry rather than the "Thunderbird Mail" name, or maybe it wants the actually command line of "thunderbird %u" When I used the 'GET", it placed something similar to "INBOX myaddress@mail.com" Thunderbird.... so it's still not working.

Just to be sure....The program is NOT running as administrator, or should it be when launching...running out of ideas.....
Steve
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Startup: How do I launch app in designated window

Post by Cosmo. »

No, do not run as administrator.

If I hit the Get button and select the TB window, gdevilspie fills me in: Thunderbird.

New settings in GDevilspie need the daemon to get stopped and restartet afterwards. Did you do this?
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startup: How do I launch app in designated window

Post by winemaker9 »

No...hadn't done that.
in the meantime while trying to figure this out, I ran into this page
https://www.howtoforge.com/tutorial/ubu ... le-scripts

Now the problem here is there is no GUI and I'm not into writing scripts, so I may just have to go back and try your suggestion... I'm not even sure what to name a script so I kinda look at that as a dead end unless I had more info. I may try again later tonite...and reload the old version again.

So if I reload the old version, I'd set up the filters, then reboot which should start the daemon and hopefully all will work. I'll get back after trying that.
Thanks.
(and no, I didn't have it running as admin)...
Steve
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Startup: How do I launch app in designated window

Post by Cosmo. »

winemaker9 wrote:No...hadn't done that.
Than do it. It is a matter of just 2 clicks, 1 off, 1 on.
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startup: How do I launch app in designated window

Post by winemaker9 »

Just tried setting it with GET with the daemon off, then back on, reboot, but still no go...it's not populating at all.
I had the workspaces set to 0 and 1 assuming it was counting in the computer world even it does display as 1 & 2, but regardless, I'd previously tried 1 & 2 ...
So...nogo yet.
Steve
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Startup: How do I launch app in designated window

Post by Cosmo. »

Do you say, that after clicking the GET button, selecting a window and selecting in the rule editor the section for application_name there is no field filled with any content?

Create a fresh new user account and check, if you get the same behavior there.
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startup: How do I launch app in designated window

Post by winemaker9 »

Ok...still nothing in a new account. I get the feeling I must be missing something, so here's exactly what I have.

Firefox is running in window 1
Starting with the deamon off, I create a filter matching it to Firefox using the GET
Screenshot from 2017-02-03 13-44-40.png
Action is to set to workspace 1 (which I believe is actually screen 2)
Screenshot from 2017-02-03 13-45-44.png
Back to the main screen, I'll START the daemon and reboot
Screenshot from 2017-02-03 13-46-20.png
system reboots and nothing happens, that is firefox does not launch in any window automatically. (when I check after it failed, the last screen does say that the daemon is running.......Did I miss something or what...

Thanks....
Steve
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Startup: How do I launch app in designated window

Post by Cosmo. »

winemaker9 wrote:Firefox is running in window 1
Please learn. that windows and workspaces are 2 different things. Don't mix those terms, otherwise we will end in a confusion without end.

For the rest: The last picture shows, that the daemon is not running. So it cannot work. There is the green Start button.
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startup: How do I launch app in designated window

Post by winemaker9 »

Please learn. that windows and workspaces are 2 different things. Don't mix those terms, otherwise we will end in a confusion without end.

For the rest: The last picture shows, that the daemon is not running. So it cannot work. There is the green Start button.
Sorry....I keep regressing into calling things windows, but I'm really only talking about workspaces in this thread.
Ok, You're right, the daemon isn't running in the image but at the top of that image I'd written

Back to the main screen, I'll START the daemon and reboot

Following capturing that image, I then clicked the checkbox to "Start devilspie daemon automatically at logon", clicked the Start and rebooted which still didn't do anything after the reboot (and I'd confirmed that the daemon was running".)
Steve
Cosmo.
Level 24
Level 24
Posts: 22968
Joined: Sat Dec 06, 2014 7:34 am

Re: Startup: How do I launch app in designated window

Post by Cosmo. »

Try to use set_viewport instead of set_workspace. Or try, if disabling all desktop effects helps.
User avatar
winemaker9
Level 1
Level 1
Posts: 39
Joined: Mon Oct 26, 2009 11:18 am

Re: Startup: How do I launch app in designated window

Post by winemaker9 »

Grr...tried running as you said with 'set viewpoint' as well as both at the same time, but nothing worked. I'm already running a vanilla desktop so all I had left to turn off was the weather and that didn't help either. I think it's about time to call it quits unless anyone has any other idea. There is the command line devilspie_2, but as I'd previously said, I'm not into writing scripts. I've seen a bunch of comments that gdevilspie that we're running if broken, so maybe that is the difference. It worked for you, but we both know that there are almost an infinite number of little things that can be different.
Thanks for the help...it was an interesting exercise....
S
Steve
Locked

Return to “Software & Applications”