You are not logged in.

#1 2013-11-16 05:50:34

el_zoona
Member
From: Argentina
Registered: 2008-02-01
Posts: 58
Website

Chrome packaged apps: wrong icon and name in any dock but plank

Hi! This isn't a big question, but I've been searching the internets and so for a long time, and so far, no answer was found.

What I want: chrome should use it's own icon and name, and any other packaged app should use theirs'. I don't want to create a .desktop file with black magic parameters since I've been doing that for ages and they break with every update. No dock get this right but plank, and I would like to use a more complete dock. Any ideas? Is it working for you?

* I've tried every aur version, both stable and dev of cairo, avant, dockbarx, docky & plank.

* Images:

Plank: http://i.imgur.com/e5h6AK7.png (Wunderlist and Pixlr Touch Up, separated)

Dockbarx (and any other): http://i.imgur.com/vWPmK0k.png (Wunderlist, Pixlr and Chrome share the same class)

Thanks a lot!


// Send more Chuck Berry

Offline

#2 2013-11-16 11:54:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: Chrome packaged apps: wrong icon and name in any dock but plank

el_zoona wrote:

create a .desktop file ... they break with every update.

What does this mean?  How do they break?  How are you creating them?  Are you editing /usr/share/applications/*.desktop (which would be wrong and would explain your problem) or are you creating ~/.local/share/applications/*.desktop?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-11-21 00:13:04

el_zoona
Member
From: Argentina
Registered: 2008-02-01
Posts: 58
Website

Re: Chrome packaged apps: wrong icon and name in any dock but plank

I'm creating them in ~, and they break because they work fine some time (separated icon and name), and then they start to show the same as chrome.

Thanks!


// Send more Chuck Berry

Offline

#4 2013-11-21 01:39:50

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Chrome packaged apps: wrong icon and name in any dock but plank

They should go in ~/.local/share/applications/ as Trilby said - not in ~/. And as Trilby asked, how do you create them? What happens to them? Do they get overwritten? Do they disappear?

I use a bunch of these because I often change default icons to icons more to my liking and they seem to work fine here. So it is hard to guess what problem you're seeing.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-11-21 03:20:08

el_zoona
Member
From: Argentina
Registered: 2008-02-01
Posts: 58
Website

Re: Chrome packaged apps: wrong icon and name in any dock but plank

Sorry for my bad english! I didn't meand directyle into ~, but in the corresponding folder (~/.local/.../)

I've tried a Superuser solution again and now it seems to work (at least with Chrome Unstable). Separated icon an name, but then, when you open chrome after the packaged app, chrome gets the icon and name of that app.

Solution: http://superuser.com/questions/209771/h … egular-chr

Results: http://imgur.com/YE4ZPrm

Command: google-chrome-unstable --app-id=jklljiahjgoglchglekebfljnmbaig --profile-directory=Default --user-data-dir=/home/elzoona/.config/google-chrome-unstable --class=Pixlr

If I duplicate the user-data-dir, change the name, and create a new .desktop file (pinning app directly from dockbarx doesn't work) it works. But duplicating the user-data-dir for every app isn't a solution. Diferent profile-directory doesn't work either. The gtk flags (class and name)

Command: google-chrome-unstable --app-id=jklljiahjgoglchglekebfljnmbaleig --profile-directory=Default --user-data-dir=/home/elzoona/.config/pixlr --class=Pixlr

Are you using chrome packaged apps along with any launcher? Do they work out of the box for you?

Thanks for the help!

********
Edit:
********

cfr wrote:

They should go in ~/.local/share/applications/ as Trilby said - not in ~/. And as Trilby asked, how do you create them? What happens to them? Do they get overwritten? Do they disappear?

My bad english again, sorry, they get overwritten when Chrome updates!

cfr wrote:

I use a bunch of these because I often change default icons to icons more to my liking and they seem to work fine here. So it is hard to guess what problem you're seeing.

Same here, they work fine (at least until and update), but duplicating folders isn't a nice solution.

Last edited by el_zoona (2013-11-21 03:24:13)


// Send more Chuck Berry

Offline

#6 2013-11-21 03:25:53

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: Chrome packaged apps: wrong icon and name in any dock but plank

OK. Sorry. I have no idea what you are talking about now I've figured out what you are saying. (That is, I now understand what you mean and know I have no clue.) So I don't think I will be of any help.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

Board footer

Powered by FluxBB