Google Chrome has an option to launch a web page as a windowed 'Chrome app', which, when used with Gnome Desktop, will create a special .desktop file which can be used to run Chrome in a stand-alone mode with its own icon displayed in the dash/dock and window switcher.
The problem with this mode is that Chrome tries to impersonate the GTK theme resulting in a pretty ugly window title. It also takes up unnecessary space displaying the address bar and other controls at the top of the window. This is especially true when using an insecure connection, which is typical for accessing locally-hosted applications.
An alternative is to launch Chrome with a --app=http://example.com
option, which results in a much nicer experience. A comparison of the appearance of the two modes is at the end of this question.
I can create a .desktop file to launch Chrome with the --app
option and an icon I specify, but this results in the new window being grouped with other Chrome instances, which all share the same generic Chrome icon entry in the dash/dock and window switcher.
Is there an option, either in Chrome or Gnome, to force the window that results from the .desktop file to behave as a completely separate application?
Google Chrome app:
Google Chrome with --app
option:
I found the solution here:
https://blog.aldomann.com/jupyterlab-desktop-on-linux/
Create the jupyter-lab.desktop:
Then write the code below (Replace
<user>
by your username) and save it:Restart Gnome section (Press Alt+F2 and inside of the dialog write 'r')
Create a new .desktop file to Google Chrome:
Then if not exist a line with
StartupWMClass=google-chrome
add this line otherwise replace it by the code below:Get an icon to Jupyter. For example:
https://blog.aldomann.com/assets/img/jupyter-lab.svg
and save it at
~/.local/share/icons
.Using applicationize to create chrome apps.
Drop your extension in chrome://extensions
An example of a .desktop file:
Don't forget to adjust
--user-data-dir=
and extension id.