1

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?

Halil
  • 119
  • 1
  • 6
  • Has been a while since I've been a full-time openbox user, but I've polished my answer, everything tests out on my Ubuntu 16.04, so let me know if you have any other questions. Cheers ! – Sergiy Kolodyazhnyy Oct 21 '17 at 18:09
  • A pure Openbox session doesn't use a desktop, AFAIK. The "black desktop" is probably the root window. So what is your starting point? Why did you need to install xorg? Are you actually running some sort of distro with Openbox as the window manager such as Lubuntu? – DK Bose Oct 22 '17 at 04:10

1 Answers1

2

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. 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.

Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497