You are not logged in.

#1 2018-04-01 03:41:37

es20490446e
Member
Registered: 2017-12-29
Posts: 46
Website

How to make a Chromium instance with its own icon

Hi guys, how are you doing?

As you probably have noticed most calendaring applications in Linux suck, so I have decided doing something about it.

Basically I want to create an Arch package that puts Google Calendar right into the applications menu. That launches Google calendar right away into Chromium, without the navigation bar, by the following command:

chromium --app=https://calendar.google.com/calendar/r

The question is that I wanted to make it in such way that it had its own icon. That when it's launched, in the task bar, it's associated with its own icon instead of the Chromium one.

I know this is possible because that was the exact behaviour of the Google Calendar app, till Google decided to deprecate apps in Chromium. Specifically the line was:

chromium --app-id=ejjicmeblgpmajnghnpcppodonldlgfn

Any idea about how this could be accomplished? Thanks in advance.

Offline

#2 2018-04-01 03:43:44

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to make a Chromium instance with its own icon


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-04-01 03:59:33

es20490446e
Member
Registered: 2017-12-29
Posts: 46
Website

Re: How to make a Chromium instance with its own icon

@jasonwryan

I'm sorry that page doesn't answer my question. This isn't about making a desktop entry, but more about separating instances of the same application.

When I launch my desktop entry it is managed from the same icon than any other opened Chromium window. I want to prevent that, that the app has its own separate icon in the task bar.

Offline

#4 2018-04-01 04:58:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: How to make a Chromium instance with its own icon

So create a custom entry (and point to your preferred icon): it is the same process.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-04-01 05:06:48

es20490446e
Member
Registered: 2017-12-29
Posts: 46
Website

Re: How to make a Chromium instance with its own icon

Do you mean this?

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Google Calendar
Exec=chromium --app=https://calendar.google.com/calendar/r
Icon=chrome-ejjicmeblgpmajnghnpcppodonldlgfn-Default
StartupWMClass=google-calendar

It creates a separate icon. But when you clic on it the app is launched in a different icon, one of Chromium.

Offline

#6 2018-04-01 05:46:35

es20490446e
Member
Registered: 2017-12-29
Posts: 46
Website

Re: How to make a Chromium instance with its own icon

I figured out a better solution. That Chromium allows to create these shortcuts directly into the application menu.

In fact the functionality is partially implemented, but currently it does create the shortcuts in the desktop only.

Offline

#7 2018-04-01 20:00:13

es20490446e
Member
Registered: 2017-12-29
Posts: 46
Website

Re: How to make a Chromium instance with its own icon

I have discovered how to manually do that. In the desktop file you have to add the line:

X-MultipleArgs=false

Offline

#8 2018-04-01 22:07:04

es20490446e
Member
Registered: 2017-12-29
Posts: 46
Website

Re: How to make a Chromium instance with its own icon

It doesn't always work...

Offline

#9 2018-04-01 22:39:12

dockland
Member
From: Sweden
Registered: 2015-06-06
Posts: 861

Re: How to make a Chromium instance with its own icon

Please edit your last post instead of bumping your thread with new posts.


I possess a device, in my pocket, that is capable of accessing the entirety of information known to man.
I use it to look at funny pictures of cats and to argue with strangers.

Offline

Board footer

Powered by FluxBB