Ubuntu: Add a desktop icon in OpenBox



Question:

I installed OpenBox and Google Chrome using following command:

sudo apt install --no-install-recommends xorg openbox google-chrome  

When I start openbox, an empty black desktop is displayed.

I want to add a google-chrome icon to OpenBox desktop. How can I add an icon to OpenBox desktop?


Solution:1

You need to start nautilus -n process. Desktop icons are managed by file manager, openbox provides only windows. If you want to spawn that command on startup, follow instructions as explained in openbox documentation.

You'll need to have ~/.config/openbox/autostart/ file with the following contents:

Basically you can run:

$ printf "nautilus -n &\n" >> .config/openbox/autostart  

After that you can just copy /usr/share/applications/google-chrome.desktop to your desktop folder, log out and log back in - and you're done.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »