I usually work with different virtual desktops, I open different files with kate on different virtual desktops, but with wayland I don’t find how to open the files on each desktop, in fact, I can’t open a file on each desktop, every files are open with the same kate on a desktop.
No problem with x11 session, I open the file I need on a virtual desktop, and son on with the other files on the other virtual desktops.
Try to pen a file on a virtual desktop with kate with wayland, next try to open an other file on a second virtual desktop with kate, the second file will be open on the first desktop with kate, and so on, not practice
Only solution found, right click on the second open document tab and select “detach document”
Thanks for your answer.
Edit 1) In my case, when I open files with Kate on different virtual desktops, Wayland groups all the Kate windows into a single instance. Therefore, when I open another file, it is grouped with the existing instance of Kate instead of creating a new separate instance on another virtual desktop.
[nx-74205:/dev/pts/2][/home/aragorn]
[aragorn] > kate --help
Usage: kate [options] [urls...]
Kate - Advanced Text Editor
Options:
-h, --help Displays help on commandline options.
--help-all Displays help including Qt specific options.
-v, --version Displays version information.
--author Show author information.
--license Show license information.
--desktopfile <file name> The base file name of the desktop entry for this
application.
-s, --start <session> Start Kate with a given session.
--startanon Start Kate with a new anonymous session, implies
'-n'.
-n, --new Force start of a new kate instance (is ignored if
start is used and another kate instance already has
the given session opened), forced if no parameters
and no URLs are given at all.
-b, --block If using an already running kate instance, block
until it exits, if URLs given to open.
-p, --pid <pid> Only try to reuse kate instance with this pid (is
ignored if start is used and another kate instance
already has the given session opened).
-e, --encoding <encoding> Set encoding for the file to open.
-l, --line <line> Navigate to this line.
-c, --column <column> Navigate to this column.
-i, --stdin Read the contents of stdin.
--tempfile The files/URLs opened by the application will be
deleted after use
Arguments:
urls Documents to open.
[nx-74205:/dev/pts/2][/home/aragorn]
[aragorn] >
If you don’t actually need kate’s session management, you can try using kwrite instead. It uses the same underlying editor — i.e. ktexteditor — so you do still get all of the same editing abilities as you get with kate.
In addition to that, you could create dedicated launchers — i.e. .desktop files — for launching an application on a virtual desktop of your choice by way of kstart5.
[nx-74205:/dev/pts/1][/home/aragorn]
[aragorn] > kstart5 --help
Usage: kstart5 [options]
Utility to launch applications with special window properties
such as iconified, maximized, a certain virtual desktop, a special decoration
and so on.
Options:
-h, --help Displays help on commandline options.
--help-all Displays help including Qt specific options.
-v, --version Displays version information.
--author Show author information.
--license Show license information.
--desktopfile <file name> The base file name of the desktop entry for this
application.
--!+command Command to execute
--service <desktopfile> Alternative to <command>: desktop file path to
start. D-Bus service will be printed to stdout.
Deprecated: use --application
--application <desktopfile> Alternative to <command>: desktop file to start.
--url <url> Optional URL to pass <desktopfile>, when using
--service
--window <regexp> A regular expression matching the window title
--windowclass <class> A string matching the window class (WM_CLASS
property)
The window class can be found out by running
'xprop | grep WM_CLASS' and clicking on a window
(use either both parts separated by a space or
only the right part).
NOTE: If you specify neither window title nor
window class,
then the very first window to appear will be
taken;
omitting both options is NOT recommended.
--desktop <number> Desktop on which to make the window appear
--currentdesktop Make the window appear on the desktop that was
active
when starting the application
--alldesktops Make the window appear on all desktops
--iconify Iconify the window
--maximize Maximize the window
--maximize-vertically Maximize the window vertically
--maximize-horizontally Maximize the window horizontally
--fullscreen Show window fullscreen
--type <type> The window type: Normal, Desktop, Dock, Toolbar,
Menu, Dialog, TopMenu or Override
--activate Jump to the window even if it is started on a
different virtual desktop
--ontop, --keepabove Try to keep the window above other windows
--onbottom, --keepbelow Try to keep the window below other windows
--skiptaskbar The window does not get an entry in the taskbar
--skippager The window does not get an entry on the pager
[nx-74205:/dev/pts/1][/home/aragorn]
[aragorn] >
But I thought that was exactly what you were trying to avoid? In your opening post, you stated that you wanted to open the editor with different files on different virtual desktops. What you are saying now is that you want to have different files in tabs on the same virtual desktop.