Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't find Telegram #335

Closed
vayan opened this issue Mar 24, 2017 · 9 comments
Closed

Doesn't find Telegram #335

vayan opened this issue Mar 24, 2017 · 9 comments
Labels

Comments

@vayan
Copy link
Contributor

vayan commented Mar 24, 2017

Specifications

  • Hardcode-Tray version : 3.6.6
  • Distribution : Ubuntu 16.10
  • Application name : Telegram
  • Application version : 1.0.14

I'm not sure what I'm doing wrong but hardcode-tray doesn't seems to find my Telegram install.

I have :
~App/Telegram with Telegram and Updater and ~/.local/share/TelegramDesktop with tdata and everything.

I tried using --only telegram --path foobar but nothing worked, always "No apps to fix!"

@bilelmoussaoui
Copy link
Owner

What do you use for the --path ? At worst add your installation path under /opt/Hardcode-Tray/telegram.json

@vayan
Copy link
Contributor Author

vayan commented Mar 27, 2017

I used hardcode-tray --only telegram --path /home/me/.local/share/TelegramDesktop.

but removing the last folder Telegram in https://github.com/bil-elmoussaoui/Hardcode-Tray/blob/master/database/telegram.json#L5 did the trick, not sure if this is something special with my Telegram install.

@bilelmoussaoui
Copy link
Owner

Ah maybe the binary of telegram was not found on the same location as mine :) please create a PR to fix it by adding a new line with the location of your binary file 👍
Thanks!

vayan added a commit to vayan/Hardcode-Tray that referenced this issue Mar 27, 2017
vayan added a commit to vayan/Hardcode-Tray that referenced this issue Mar 28, 2017
With the official tarball we can extract the binaries anywhere, so we need to
rely on something else than the binaries path to detect a Telegram install.

Fix bilelmoussaoui#335
bilelmoussaoui pushed a commit that referenced this issue Mar 28, 2017
With the official tarball we can extract the binaries anywhere, so we need to
rely on something else than the binaries path to detect a Telegram install.

Fix #335
@tpaniaki
Copy link

tpaniaki commented Nov 20, 2017

Same issue after installing as flatpack. Set the location right /home/USER/.var/app/org.telegram.desktop/data/TelegramDesktop/ but I got "app not found". I'm on Mint 18.2.

@bilelmoussaoui
Copy link
Owner

Can you modify the /usr/share/hardcode-tray/database/telegram.json and add that path to icons_path and try again? + Which icon theme are you using? If you can paste the output you got in terminal that would be great

@tpaniaki
Copy link

tpaniaki commented Nov 20, 2017

OK I tried some modifications on the .json but nothing works. Strangely the ticons folder in the flatpack version (from flathub) only have 3 icons, which looks weird.

Theme is Mint-X-Grey.

$ sudo hardcode-tray --only telegram --path /home/USER/.var/app/org.telegram.desktop/data/TelegramDesktop
Welcome to Hardcode-Tray!
Desktop Environment: Other
Scaling Factor: 1
Icon Size: 22
Icon Theme: Mint-X-Grey
Conversion Tool: RSVGConvert
To Do: Telegram
1 - Apply
2 - Revert
3 - Clear Backup Cache
Please choose: 1
Applying now..

No apps to fix!

Done, Thank you for using the Hardcode-Tray fixer!

@bilelmoussaoui
Copy link
Owner

Well, that theme just doesn't support hardcode-tray...please read the readme carefully next time ;) we don't ship any icon at all! we use the icons shipped by the theme used by default ;)
try using --theme Numix or Papirus to fix those icons or add the icons by yourself to your current theme

@tpaniaki
Copy link

tpaniaki commented Nov 20, 2017

OK sorry. I think there's still no fix for tray icons with HiDPi.

@bilelmoussaoui
Copy link
Owner

What do you mean by that? you can use a theme icon to just replace the tray icons, without even using it ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants