PSA: Nested Desktop Mode

https://ttrpg.network/post/14748750

PSA: Nested Desktop Mode - The TTRPG network

After seeing some folks noticing a comment I made elsewhere in this instance, I thought a full post would be best. For those who don’t know, the Steam Deck has a feature called Nested Desktop, which allows fast access to Desktop mode without needing to leave Game Mode or reboot into and out of modes. To use this, go into desktop mode, open the menu and use the search function to look for “Nested Desktop”. Now right click and add that to Steam. When you boot into Game mode, you’ll see a new item added called Nested Desktop, which you can open to access desktop mode while still in game mode. I found out about this almost a week ago and so far I use it most for referencing my digital game guides or searching NMS portal codes while still gaming. It’s pretty seamless and really opens up some nice options, like modding a game and being able to boot it faster while having Game mode controls available.

i haven’t used desktop mode since that guide was posted in the instance this week.

love it!

Damn, that’s awesome! Thank you for sharing, this is going to be very useful to me.
You don’t have access to your full home folder in *nested desktop mode though right?
Desktop mode, or do you mean nested desktop? Either way, I have not noticed that limitation.

I meant nested desktop mode.

Download a file from a webrowser in nested desktop mode and then check in normal desktop mode where the file is. Can you access/see it? Is it in the spot that webrowser normally downloads too?

I think it is just the thorough and thoughtful way Linux explicitly deals with folder permission structures, opening a nested desktop creates an enclosed workspace within the current context, you aren’t supposed to use it to go everywhere and do anything on the OS I think.

It’s fairly common to share the same home dir throughout multiple desktop environments, which is essentially what nested desktop is – just a way to launch a Plasma desktop inside an existing desktop. This isn’t like a flatpak or another isolation mechanism.

Someone actually made a really good guide on it about a week ago:

sopuli.xyz/post/22041042

Nested Desktop: What it is, and how to set it up - Sopuli

So, I wanted to share some knowledge and awareness about Nested Desktop. What it is, and if you’re interested, how to set it up. What it is: Nested Desktop allows you to access Desktop Mode functionality while you’re still in Gaming Mode / Gamescope, and acts like any other game you’d run from there. Think of it as your “Desktop Mode emulator for Gaming Mode”. It lets you access Desktop Mode files, apps, and functionality just like you were using Desktop Mode natively, WHILE you’re already in another game using Gaming Mode (so for instance, you could pull up Nested Desktop to get easier web browser access to look up something for the game you’re playing). It’s also much faster than rebooting natively into Desktop Mode when you need to use it. I use Nested Desktop all the time! I find it to be a handy tool to have access to. How To Set Up: Native Steam Deck screen (800p) The native app always pulls up in 800p resolution, regardless of your display resolution. If you are on your 800p-screened Deck itself this is perfect; if you’re docked or have a different resolution replacement screen, and want a different resolution, I’ll cover that later. Steps: 1) Reboot into native Desktop Mode. Hopefully this will be the last time you have to do that for awhile! 2) Use your application launcher in the bottom left corner. Navigate: All Applications ~ scroll down to N’s ~ Highlight Nested Desktop ~ RIGHT click ~ choose menu option “Add to Steam.” 3) You’re done and can go back to Gaming Mode! You can now run Nested Desktop right out of the non-Steam section of your library. Note: You do NOT have to set any launch properties or Proton options to run this. When you are done using Nested Desktop, you can close it either with the standard STEAM button menu, or by double clicking the Return to Gaming Mode option on the desktop. How To Set Up: For Other Resolutions This was the part that took me forever to find out how to do searching online. I was VERY frustrated figuring this out, so I wanted to share to give others the resource. And sadly no, you can’t just pick your preferred resolution from the normal launch options on the regular Nested Desktop app. Steps: 1) Reboot into native Desktop Mode. 2) Use your application launcher in the bottom left corner. Use it to navigate to and open a new document in your text document writer (the default is KWrite). Copy all the text between START and END below and paste it into your new document: START #!/bin/sh unset LD_PRELOAD rm -rf /tmp/desktop-mode mkdir -p /tmp/desktop-mode cat > /tmp/desktop-mode/kwin_wayland_wrapper << EOF #!/bin/sh $(which kwin_wayland_wrapper) --no-lockscreen --width 2560 --height 1440 --x11-display $DISPLAY $@ EOF chmod +x /tmp/desktop-mode/kwin_wayland_wrapper kwriteconfig5 --file startkderc --group General --key systemdBoot false PATH=/tmp/desktop-mode:$PATH startplasma-wayland kwriteconfig5 --file startkderc --group General --key systemdBoot --delete END NOTE: The height and width numbers in the code above are the resolution that the Nested Desktop will open in. This example is from my 1440p display, but change these to whatever resolution your display is. 3) Save this document under any name that makes sense to you. This will be what you see in your library. For example, I named mine “Nested Desktop 1440” to distinguish it from the regular Nested Desktop I use when I’m handheld. Also, be sure to save this somewhere that you can easily find it. I recommend the standard Documents folder. 4) Navigate to the file where you saved it. RIGHT click it, choose “Properties” from the menu. Under the Permissions tab, check the “is executable” box, and click OK. 5) Finally, RIGHT click the file again, and pick “Add to Steam.” 6) You can now go back to Gaming Mode, and run this whenever you need. Thanks everyone, I hope you find this useful!