Results 1 to 8 of 8

Thread: How to change google-chrome icon?

  1. #1
    Join Date
    Aug 2012
    Beans
    4

    Question How to change google-chrome icon?

    Hey I wanted to use chromium version 24 and by chance I have found this ppa https://launchpad.net/~a-v-shkop/+archive/chromium-dev

    I have installed it and was trying to change the icon of google-chrome. I found that it is installed in /opt/google/chrome directory and there are some png files that vary in size, replacing that with new png icon I wanted to use didn't work. It had no icon instead of having the new icon.

    There isn't a binary file that has the chrome icon either, google-chrome is a bash script and the binary it executes doesn't have an icon that I can change by doing properties. And as I looked at askubuntu.com /usr/share/applications don't have google-chrome in it, so I cannot change the icon from there either...

    Does anybody know how it can be changed?

  2. #2
    Join Date
    Dec 2007
    Beans
    12,521

    Re: How to change google-chrome icon?

    Open a terminal and look in /usr/share/applications for a file called google-chrome.desktop. Then use sudo nano to edit that file: search for the line that has "Icon=google-chrome". Replace "google-chrome" with the full path to the icon you want.

  3. #3
    Join Date
    Jun 2007
    Beans
    17,337

    Re: How to change google-chrome icon?

    I'm taking you want to change the icon for google-chrome, not chromium from that ppa?

    If so, -
    Code:
    gksudo gedit /usr/share/applications/google-chrome.desktop
    Edit the Icon=google-chrome line to whatever you want. I'd full path it unless the icon desired is in a commonly used dir. (like /usr/share/pixmaps or /usr/share/app-install/icons, ect. in which case you could just use the icon name

    ex. in screen, used a .png in my Pictures folder, now google-chrome is a green-apple
    Attached Images Attached Images

  4. #4
    Join Date
    Aug 2012
    Beans
    4

    Re: How to change google-chrome icon?

    Weirdly this package i installed from ppa i mentioned doesn't install google-chrome.desktop to usual /usr/share/applications/ folder (unlike chromium, I can see the desktop file for chromium there)... this ppa installs google-chrome to /opt/google/chrome folder. Inside I have google-chrome.desktop file which has the following with my edits:

    [Desktop Entry]
    Version=1.0
    Name=Google Chrome
    # Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
    # From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.
    GenericName=Web Browser
    GenericName[ar]=متصفح الشبكة
    GenericName[bg]=Уеб браузър
    GenericName[ca]=Navegador web
    GenericName[cs]=WWW prohlížeč
    GenericName[da]=Browser
    GenericName[de]=Web-Browser
    GenericName[el]=Περιηγητής ιστού
    GenericName[en_GB]=Web Browser
    GenericName[es]=Navegador web
    GenericName[et]=Veebibrauser
    GenericName[fi]=WWW-selain
    GenericName[fr]=Navigateur Web
    GenericName[gu]=વેબ બ્રાઉઝર
    GenericName[he]=דפדפן אינטרנט
    GenericName[hi]=वेब ब्राउज़र
    GenericName[hu]=Webböngésző
    GenericName[it]=Browser Web
    GenericName[ja]=ウェブブラウザ
    GenericName[kn]=ಜಾಲ ವೀಕ್ಷಕ
    GenericName[ko]=웹 브라우저
    GenericName[lt]=Žiniatinklio naršyklė
    GenericName[lv]=Tīmekļa pārlūks
    GenericName[ml]=വെബ് ബ്രൌസര്*
    GenericName[mr]=वेब ब्राऊजर
    GenericName[nb]=Nettleser
    GenericName[nl]=Webbrowser
    GenericName[pl]=Przeglądarka WWW
    GenericName[pt]=Navegador Web
    GenericName[pt_BR]=Navegador da Internet
    GenericName[ro]=Navigator de Internet
    GenericName[ru]=Веб-браузер
    GenericName[sl]=Spletni brskalnik
    GenericName[sv]=Webbläsare
    GenericName[ta]=இணைய உலாவி
    GenericName[th]=เว็บเบราว์เซอร์
    GenericName[tr]=Web Tarayıcı
    GenericName[uk]=Навігатор Тенет
    GenericName[zh_CN]=网页浏览器
    GenericName[zh_HK]=網頁瀏覽器
    GenericName[zh_TW]=網頁瀏覽器
    # Not translated in KDE, from Epiphany 2.26.1-0ubuntu1.
    GenericName[bn]=ওয়েব ব্রাউজার
    GenericName[fil]=Web Browser
    GenericName[hr]=Web preglednik
    GenericName[id]=Browser Web
    GenericName[or]=ଓ୍ବେବ ବ୍ରାଉଜର
    GenericName[sk]=WWW prehliadač
    GenericName[sr]=Интернет прегледник
    GenericName[te]=మహాతల అన్వేషి
    GenericName[vi]=Bộ duyệt Web
    # Gnome and KDE 3 uses Comment.
    Comment=Access the Internet
    Comment[ar]=الدخول إلى الإنترنت
    Comment[bg]=Достъп до интернет
    Comment[bn]=ইন্টারনেটটি অ্যাক্সেস করুন
    Comment[ca]=Accedeix a Internet
    Comment[cs]=Přístup k internetu
    Comment[da]=Få adgang til internettet
    Comment[de]=Internetzugriff
    Comment[el]=Πρόσβαση στο Διαδίκτυο
    Comment[en_GB]=Access the Internet
    Comment[es]=Accede a Internet.
    Comment[et]=Pääs Internetti
    Comment[fi]=Käytä internetiä
    Comment[fil]=I-access ang Internet
    Comment[fr]=Accéder à Internet
    Comment[gu]=ઇંટરનેટ ઍક્સેસ કરો
    Comment[he]=גישה אל האינטרנט
    Comment[hi]=इंटरनेट तक पहुंच स्थापित करें
    Comment[hr]=Pristup Internetu
    Comment[hu]=Internetelérés
    Comment[id]=Akses Internet
    Comment[it]=Accesso a Internet
    Comment[ja]=インターネットにアクセス
    Comment[kn]=ಇಂಟರ್ನೆಟ್ ಅನ್ನು ಪ್ರವೇಶಿಸಿ
    Comment[ko]=인터넷 연결
    Comment[lt]=Interneto prieiga
    Comment[lv]=Piekļūt internetam
    Comment[ml]=ഇന്റര്**നെറ്റ് ആക്*സസ് ചെയ്യുക
    Comment[mr]=इंटरनेटमध्ये प्रवेश करा
    Comment[nb]=Gå til Internett
    Comment[nl]=Verbinding maken met internet
    Comment[or]=ଇଣ୍ଟର୍ନେଟ୍ ପ୍ରବେଶ କରନ୍ତୁ
    Comment[pl]=Skorzystaj z internetu
    Comment[pt]=Aceder à Internet
    Comment[pt_BR]=Acessar a internet
    Comment[ro]=Accesaţi Internetul
    Comment[ru]=Доступ в Интернет
    Comment[sk]=Prístup do siete Internet
    Comment[sl]=Dostop do interneta
    Comment[sr]=Приступите Интернету
    Comment[sv]=Gå ut på Internet
    Comment[ta]=இணையத்தை அணுகுதல்
    Comment[te]=ఇంటర్నెట్*ను ఆక్సెస్ చెయ్యండి
    Comment[th]=เข้าถึงอินเทอร์เน็ต
    Comment[tr]=İnternet'e erişin
    Comment[uk]=Доступ до Інтернету
    Comment[vi]=Truy cập Internet
    Comment[zh_CN]=访问互联网
    Comment[zh_HK]=連線到網際網路
    Comment[zh_TW]=連線到網際網路
    Exec=/opt/google/chrome/google-chrome %U
    Terminal=false
    Icon=/home/logan/Pictures/icons/google_black_256.png
    Type=Application
    Categories=Network;WebBrowser;
    MimeType=text/html;text/xml;application/xhtml_xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
    X-Ayatana-Desktop-Shortcuts=NewWindow;NewIncognito

    [NewWindow Shortcut Group]
    Name=New Window
    Name[am]=አዲስ መስኮት
    Name[ar]=نافذة جديدة
    Name[bg]=Нов прозорец
    Name[bn]=নতুন উইন্ডো
    Name[ca]=Finestra nova
    Name[cs]=Nové okno
    Name[da]=Nyt vindue
    Name[de]=Neues Fenster
    Name[el]=Νέο Παράθυρο
    Name[en_GB]=New Window
    Name[es]=Nueva ventana
    Name[et]=Uus aken
    Name[fa]=پنجره جدید
    Name[fi]=Uusi ikkuna
    Name[fil]=New Window
    Name[fr]=Nouvelle fenêtre
    Name[gu]=નવી વિંડો
    Name[hi]=नई विंडो
    Name[hr]=Novi prozor
    Name[hu]=Új ablak
    Name[id]=Jendela Baru
    Name[it]=Nuova finestra
    Name[iw]=חלון חדש
    Name[ja]=新規ウインドウ
    Name[kn]=ಹೊಸ ವಿಂಡೊ
    Name[ko]=새 창
    Name[lt]=Naujas langas
    Name[lv]=Jauns logs
    Name[ml]=പുതിയ വിന്*ഡോ
    Name[mr]=नवीन विंडो
    Name[nl]=Nieuw venster
    Name[no]=Nytt vindu
    Name[pl]=Nowe okno
    Name[pt]=Nova janela
    Name[pt_BR]=Nova janela
    Name[ro]=Fereastră nouă
    Name[ru]=Новое окно
    Name[sk]=Nové okno
    Name[sl]=Novo okno
    Name[sr]=Нови прозор
    Name[sv]=Nytt fönster
    Name[sw]=Dirisha Jipya
    Name[ta]=புதிய சாளரம்
    Name[te]=క్రొత్త విండో
    Name[th]=หน้าต่างใหม่
    Name[tr]=Yeni Pencere
    Name[uk]=Нове вікно
    Name[vi]=Cửa sổ Mới
    Name[zh_CN]=新建窗口
    Name[zh_TW]=開新視窗
    Exec=/opt/google/chrome/google-chrome
    TargetEnvironment=Unity

    [NewIncognito Shortcut Group]
    Name=New Incognito Window
    Name[ar]=نافذة جديدة للتصفح المتخفي
    Name[bg]=Нов прозорец „инкогнито“
    Name[bn]=নতুন ছদ্মবেশী উইন্ডো
    Name[ca]=Finestra d'incògnit nova
    Name[cs]=Nové anonymní okno
    Name[da]=Nyt inkognitovindue
    Name[de]=Neues Inkognito-Fenster
    Name[el]=Νέο παράθυρο για ανώνυμη περιήγηση
    Name[en_GB]=New Incognito window
    Name[es]=Nueva ventana de incógnito
    Name[et]=Uus inkognito aken
    Name[fa]=پنجره جدید حالت ناشناس
    Name[fi]=Uusi incognito-ikkuna
    Name[fil]=Bagong Incognito window
    Name[fr]=Nouvelle fenêtre de navigation privée
    Name[gu]=નવી છુપી વિંડો
    Name[hi]=नई गुप्त विंडो
    Name[hr]=Novi anoniman prozor
    Name[hu]=Új Inkognitóablak
    Name[id]=Jendela Penyamaran baru
    Name[it]=Nuova finestra di navigazione in incognito
    Name[iw]=חלון חדש לגלישה בסתר
    Name[ja]=新しいシークレット ウィンドウ
    Name[kn]=ಹೊಸ ಅಜ್ಞಾತ ವಿಂಡೋ
    Name[ko]=새 시크릿 창
    Name[lt]=Naujas inkognito langas
    Name[lv]=Jauns inkognito režīma logs
    Name[ml]=പുതിയ വേഷ പ്രച്ഛന്ന വിന്*ഡോ
    Name[mr]=नवीन गुप्त विंडो
    Name[nl]=Nieuw incognitovenster
    Name[no]=Nytt inkognitovindu
    Name[pl]=Nowe okno incognito
    Name[pt]=Nova janela de navegação anónima
    Name[pt_BR]=Nova janela anônima
    Name[ro]=Fereastră nouă incognito
    Name[ru]=Новое окно в режиме инкогнито
    Name[sk]=Nové okno inkognito
    Name[sl]=Novo okno brez beleženja zgodovine
    Name[sr]=Нови прозор за прегледање без архивирања
    Name[sv]=Nytt inkognitofönster
    Name[ta]=புதிய மறைநிலைச் சாளரம்
    Name[te]=క్రొత్త అజ్ఞాత విండో
    Name[th]=หน้าต่างใหม่ที่ไม่ระบุตัวตน
    Name[tr]=Yeni Gizli pencere
    Name[uk]=Нове вікно в режимі анонімного перегляду
    Name[vi]=Cửa sổ ẩn danh mới
    Name[zh_CN]=新建隐身窗口
    Name[zh_TW]=新增無痕式視窗
    Exec=/opt/google/chrome/google-chrome --incognito
    TargetEnvironment=Unity
    what if i copied this to /usr/share/applications folder, would I get two google chromes in my unity dashboard?

  5. #5
    Join Date
    Aug 2012
    Beans
    4

    Re: How to change google-chrome icon?

    btw the main reason i use this ppa is because it has v24 of chrome. If there's a better way of installing later versions of chrome I'm open to suggestions I saw that apt-get install chromium is v23

  6. #6
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: How to change google-chrome icon?

    replacing that with new png icon I wanted to use didn't work. It had no icon instead of having the new icon.
    This has happen to me in the past when I replaced an icon with one that was a larger size.

  7. #7
    Join Date
    Aug 2012
    Beans
    4

    Re: How to change google-chrome icon?

    +1 ibjsb4

    Was the default size 48x48?

  8. #8
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: How to change google-chrome icon?

    Quote Originally Posted by weaponxi View Post
    +1 ibjsb4

    Was the default size 48x48?
    Sorry, don't have it installed so I don't know.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •