Xfce Forum

Sub domains
 

You are not logged in.

#1 2025-09-07 13:21:43

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 142.0

Specify Workspace For Program Autostart

In the Settings>Settings Manager>Session and Startup>Application Autostart the user can add a program and then tell it to start up on login.  However, how does the user tell it which workspace to open it into?

Thanks.

Offline

#2 2025-09-07 13:55:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,309
LinuxFirefox 142.0

Re: Specify Workspace For Program Autostart

No, that feature doesn't exist within Xfce. You'll need to use a tool like devilspie (or devlispie2) to get this functionality.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2025-09-07 14:24:47

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 142.0

Re: Specify Workspace For Program Autostart

Thank you.  I have installed Devilspie2 and now I just have to figure out how to use.

Offline

#4 2025-09-09 19:55:15

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 142.0

Re: Specify Workspace For Program Autostart

I'm getting the hang of it my looking at many web sites and watching a fairly good video.  I will clarify and get back here regarding what I find.

Offline

#5 2025-09-09 21:53:45

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,309
LinuxFirefox 142.0

Re: Specify Workspace For Program Autostart

Also do a search on the word 'devilspie' and my username on these forums - I've answered quite a few questions about devilspie. Perhaps something in there might be helpful. For example, this worked with the original devilspie - I've never really used devilspie2, but I understand it now uses lua scripts.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2025-09-09 22:17:42

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 142.0

Re: Specify Workspace For Program Autostart

As far as I've been able to figure out, the original devilspie is no longer available or supported, and the web page is gone.

Offline

#7 2025-09-09 22:41:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,309
LinuxFirefox 142.0

Re: Specify Workspace For Program Autostart

I guess it depends on the distro you are using - its still in the Arch repositories. But devilspie2 is its successor.

With devilspie2, it looks like the command script to move firefox to workspace 2 on start would be:

-- Make firefox always start on workspace 2.
if (get_application_name()=="firefox") then
   set_window_workspace(2);
end

Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2025-09-14 15:27:02

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 142.0

Re: Specify Workspace For Program Autostart

Turns out that Andreas Rönnquist (gusnan), is no longer the maintainer of Devilspie2.  One must use the mailing list at devilspie2-discuss@nongnu.org, or the various web pages on the subject (such as https://github.com/dsalt/devilspie2).

Offline

#9 2025-09-23 20:40:19

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 143.0

Re: Specify Workspace For Program Autostart

I've figured out most of this, and it is working fairly well for me.  How do I post the document of information I created on this subject so that others will know?

Offline

#10 2025-09-23 21:44:18

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,309
LinuxFirefox 143.0

Re: Specify Workspace For Program Autostart

Feel free to post the contents of the document here. Or you can post it elsewhere and leave the link here.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#11 2025-10-08 18:37:40

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 143.0

Re: Specify Workspace For Program Autostart

When I run devilspie2 -d with my debug.lua script file containing the items:
debug_print("Window Name: "..get_window_name());
debug_print("Application name: "..get_application_name())
it will run in the terminal and list all the currently running programs by window and application name, and then just stay resident.

If I end the script with the command:
os.exit()
it will terminate with the following displayed info:
Running devilspie2 in debug mode.

Using scripts from folder: /home/jolly/.config/devilspie2
------------
List of Lua files handling "window_open" events in folder:
/home/jolly/.config/devilspie2/debug.lua
List of Lua files handling "window_close" events in folder:
List of Lua files handling "window_focus" events in folder:
List of Lua files handling "window_blur" events in folder:
------------
Window Name: debug.lua (~/.config/devilspie2) - gedit
Application name: gedit

Why does it not list the rest of the info as before?

Thanks.

Offline

#12 2025-10-08 21:37:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,309
LinuxFirefox 143.0

Re: Specify Workspace For Program Autostart

If you end the script with os.exit() then the debugging will stop.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#13 2025-10-09 14:26:39

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 143.0

Re: Specify Workspace For Program Autostart

My experience with script files tells me that the scripts are handled from top to bottom, or line 1 thru to the last line.  But that does not seem to happen in the Lua script, or at least as Devilspie2 handles it.  Note the last results above; it just stops the script without doing any of the preceding steps whenever the os.exit() is used.

Offline

#14 2025-10-09 21:58:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 12,309
LinuxFirefox 143.0

Re: Specify Workspace For Program Autostart

Personally, I just use the original devilspie - it was easier to understand.


Mark solved threads as [SOLVED] to make it easier for others to find solutions.
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#15 2025-10-09 23:15:47

KitchM
Member
Registered: 2009-08-15
Posts: 393
LinuxFirefox 143.0

Re: Specify Workspace For Program Autostart

Its funny you should mention that.  I just had looked into the new one to see what programming language it might be using and then to see if the old one was still available.  I guess it is.  Looks like good C code, too.  I may have to dredge up instructions for it and see if it can be downloaded and run.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 618.99 KiB (Peak: 636.27 KiB) ]