Popcorn-desktop: Popcorn and Chromium are the same on Ubuntu

Created on 2 Nov 2016  ·  18Comments  ·  Source: popcorn-official/popcorn-desktop

Operating System Version:
Ubuntu 16.10
GNOME 3.22

Popcorn Time Version: 3.10

Download date: Nov 2

Actual Behaviour

When open CHROMIUN and Popcorn, they are the same on the DASHBOARD, both applications has just one ICON => Chromium

Steps to reproduce the behaviour

1 - wget https://get.popcorntime.sh/build/Popcorn-Time-0.3.10-Linux-64.tar.xz -O popcorntime.tar.xz
2 - extract
3 - open popcorntime
4 - open chromiun

Look on the CHROMIUM icon on my Dash Dock Bar, are 2 circles, one for chromium and the another for PopcornTime

screenshot from 2016-11-02 19-56-22

wontfix

Most helpful comment

StartupWMClass is only used to group windows with the same class name. You need to look at changing the class with the exec command if the program supports gtk options.

Try running the executable with --class="Popcorn-Time". Worked for me.

See also:
· https://askubuntu.com/a/809353/545569
· https://github.com/micheleg/dash-to-dock/issues/483
· https://elementaryos.stackexchange.com/a/16088/10290

All 18 comments

Hi,

I have this too.

I use PCT 3.10 and Ubuntu 14.04 with unity desktop

What version of Chromium are you using because I cannot reproduce this issue with Chromium Version 54.0.2840.71 (64-bit).

Version 53.0.2785.143 Built on Ubuntu , running on Ubuntu 16.10 (64-bit)
installed via => apt install chromium

Hi,
Hmm, I was a bit wrong here. For me it's 2 icons both with chromium icon. Maybe it's a different bug :|

capture du 2016-11-03 15 02 29

If it's always helpfull Chromium 53.0.2785.143-0ubuntu0.14.04.1.1142

I think is the same bug.
The diference is because I'm using Gnome 3 + Dash Dock and you are using Unit.
On my screenshot you can see TWO chromiuns indicators

Same problem here. Chromium 55.0.2883.87 Built on Ubuntu , running on Ubuntu 16.04 (64-bit)
bug

still having the same issue with the lastest version. Any tips on workarounds?

@cerberus10:
You can choose to use Chrome instead of Chromium, or another browser. I just managed to solve it that way.

I think this is still and issue in the other builds

El 16 may. 2017 21:51, "simplemachine-zz" notifications@github.com
escribió:

@cerberus10 https://github.com/cerberus10:
You can choose to use Chrome instead of Chromium, or another browser. I
just managed to solve it that way.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/popcorn-official/popcorn-desktop/issues/305#issuecomment-301954447,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIfXUt-L8gjRpLM-LBJj0C_DQqo-uFM4ks5r6kSHgaJpZM4KnzFS
.

Hi, this is still a problem. Ubuntu 17 + Chromium and Popcorn time at the last version, I can't open Chromium unless I do it from the command line. Clicking the Chromium icon always opens "Butter" rendering Chromium unusable.

It certainly has something to do with this file that Popcorntime creates at the /.local/share/applications/ folder. It's called chromium-browser.desktop (wich means is a shortcut to be placed on the desktop).

Here are the contents:

_[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Butter
Icon=chromium-browser.png
Exec=/opt/popcorntime/Popcorn-Time
StartupNotify=false
StartupWMClass=Chromium-browser
OnlyShowIn=Unity;
X-BAMFGenerated=true_

I don't know what some of these entrances mean, but I'm sure it says to run Popcorn-Time every time you type chromium-browser, and it has the chromium icon.

I hope it helped.

Try to remove this _chromium-browser.desktop_ from ~/.local/share/applications and replace it with popcorn-time.desktop:

[Desktop Entry]
Version=1.0
Type=Application
Name=Popcorn Time
Icon=/absolute/path/to/Popcorn-Time.png
Exec=/absolute/path/to/Popcorn-Time
Comment=Time for Popcorn
Categories=Internet;
Terminal=false

BTW - here is file format spec.

I have the exact same issue. Recently installed popcorn time and I have Chromium.
Is it possible to have a more extensive helpme to change both the .desktop files? Preferably without using the terminal.

Thank you in advance

@philipvdp

  1. Open ~/.local/share/applications in your file manager
  2. Rename chronium-browser.desktop into popcorn-time.desktop
  3. Edit this popcorn-time.desktop file and replace the Icon and Exec values by the path to your PT icon and the path of PT binary
  4. Save
  5. Double click this popcorn-time.desktop to be sure it launch PT. If it don't work, go back to step 3.
  6. Check it appear in your applications menu, if not, logout and login to your session or restart

StartupWMClass is only used to group windows with the same class name. You need to look at changing the class with the exec command if the program supports gtk options.

Try running the executable with --class="Popcorn-Time". Worked for me.

See also:
· https://askubuntu.com/a/809353/545569
· https://github.com/micheleg/dash-to-dock/issues/483
· https://elementaryos.stackexchange.com/a/16088/10290

Clean install from this link
https://gist.github.com/flyingluscas/a462388c9452d2d71485a4035d577160

Replace step 4 from here

  1. Creating the application launcher

sudo nano /usr/share/applications/popcorntime.desktop

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=Popcorn Time
Exec=/opt/popcorntime/Popcorn-Time --class="Popcorn-Time"
Icon=/opt/popcorntime/src/app/images/icon.png
Categories=Application;

Clean install from this link
https://gist.github.com/flyingluscas/a462388c9452d2d71485a4035d577160

There's no need to do a clean install. Simply modifying popcorntime.desktop and relaunching should fix the issue.

Sometimes Exec=/opt/popcorntime/Popcorn-Time --class="PopcornTime" might work (notice the missing - from the class name.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kk47042 picture kk47042  ·  3Comments

123Olairy picture 123Olairy  ·  3Comments

bewakertje picture bewakertje  ·  3Comments

benjavalero picture benjavalero  ·  4Comments

dollhaus picture dollhaus  ·  3Comments