Δημοσιεύτηκε: 10 Νοέμ 2016, 08:30
από Tassos10
Δε ξέρω τι παίζει, πραγματικά με έχει μπερδέψει και μου έχει σπάσει και λίγο τα νεύρα ( πρώτη φορά που το παθαίνω αυτό ).

Σε άλλες εφαρμογές βλέπω πως γενικά και αυτές έτσι έχουν τα εικονίδια, π.χ. :
owncloud
Κώδικας: Επιλογή όλων
/usr/share/icons/hicolor/22x22/apps/owncloud.png
/usr/share/icons/hicolor/32x32/apps/owncloud.png
/usr/share/icons/hicolor/48x48/apps/owncloud.png
/usr/share/icons/hicolor/64x64/apps/owncloud.png
/usr/share/icons/hicolor/128x128/apps/owncloud.png
/usr/share/icons/hicolor/256x256/apps/owncloud.png
/usr/share/icons/hicolor/512x512/apps/owncloud.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_ok.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_ok.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_ok.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_ok.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_ok.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_ok.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_ok.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_sync.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_warn.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_sync.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_warn.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_sync.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_warn.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_sync.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_warn.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_sync.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_warn.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_sync.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_warn.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_sync.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_warn.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_error.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_error.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_error.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_error.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_error.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_error.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_error.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_ok_shared.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_ok_shared.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_ok_shared.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_ok_shared.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_ok_shared.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_ok_shared.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_ok_shared.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_sync_shared.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_warn_shared.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_sync_shared.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_warn_shared.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_sync_shared.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_warn_shared.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_sync_shared.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_warn_shared.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_sync_shared.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_warn_shared.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_sync_shared.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_warn_shared.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_sync_shared.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_warn_shared.png
/usr/share/icons/hicolor/16x16/apps/goa-account-owncloud.png
/usr/share/icons/hicolor/16x16/apps/ownCloud_error_shared.png
/usr/share/icons/hicolor/22x22/apps/goa-account-owncloud.png
/usr/share/icons/hicolor/24x24/apps/goa-account-owncloud.png
/usr/share/icons/hicolor/32x32/apps/goa-account-owncloud.png
/usr/share/icons/hicolor/32x32/apps/ownCloud_error_shared.png
/usr/share/icons/hicolor/48x48/apps/goa-account-owncloud.png
/usr/share/icons/hicolor/48x48/apps/ownCloud_error_shared.png
/usr/share/icons/hicolor/64x64/apps/ownCloud_error_shared.png
/usr/share/icons/hicolor/72x72/apps/ownCloud_error_shared.png
/usr/share/icons/hicolor/128x128/apps/ownCloud_error_shared.png
/usr/share/icons/hicolor/256x256/apps/ownCloud_error_shared.png


chromium
Κώδικας: Επιλογή όλων
/usr/share/pixmaps/chromium.png
/usr/share/pixmaps/chromium.xpm

/usr/share/applications/chromium.desktop

/usr/share/icons/hicolor/22x22/apps/chromium.png
/usr/share/icons/hicolor/24x24/apps/chromium.png
/usr/share/icons/hicolor/32x32/apps/chromium.xpm
/usr/share/icons/hicolor/48x48/apps/chromium.png
/usr/share/icons/hicolor/64x64/apps/chromium.png
/usr/share/icons/hicolor/128x128/apps/chromium.png
/usr/share/icons/hicolor/256x256/apps/chromium.png


cheese
Κώδικας: Επιλογή όλων
/usr/share/help/ca/cheese/figures/cheese.png
/usr/share/help/C/cheese/figures/cheese.png
/usr/share/help/cs/cheese/figures/cheese.png
/usr/share/help/de/cheese/figures/cheese.png
/usr/share/help/el/cheese/figures/cheese.png
/usr/share/help/es/cheese/figures/cheese.png
/usr/share/help/fi/cheese/figures/cheese.png
/usr/share/help/fr/cheese/figures/cheese.png
/usr/share/help/gl/cheese/figures/cheese.png
/usr/share/help/hu/cheese/figures/cheese.png
/usr/share/help/id/cheese/figures/cheese.png
/usr/share/help/pt_BR/cheese/figures/cheese.png
/usr/share/help/ru/cheese/figures/cheese.png
/usr/share/help/sl/cheese/figures/cheese.png
/usr/share/help/zh_CN/cheese/figures/cheese.png


/usr/share/icons/hicolor/16x16/apps/cheese.png
/usr/share/icons/hicolor/22x22/apps/cheese.png
/usr/share/icons/hicolor/24x24/apps/cheese.png
/usr/share/icons/hicolor/32x32/apps/cheese.png
/usr/share/icons/hicolor/48x48/apps/cheese.png
/usr/share/icons/hicolor/256x256/apps/cheese.png

/usr/share/icons/HighContrast/16x16/apps/cheese.png
/usr/share/icons/HighContrast/22x22/apps/cheese.png
/usr/share/icons/HighContrast/24x24/apps/cheese.png
/usr/share/icons/HighContrast/32x32/apps/cheese.png
/usr/share/icons/HighContrast/48x48/apps/cheese.png
/usr/share/icons/HighContrast/256x256/apps/cheese.png



Και για να πάμε σε ένα desktop file από εφαρμογή τρίτου, π.χ. το owncloud έχει αυτό εδώ :
Κώδικας: Επιλογή όλων
Desktop Entry]
Categories=Utility;X-SuSE-SyncUtility;
Type=Application
Exec=owncloud
Name=ownCloud desktop sync client
Comment=ownCloud desktop synchronization client
GenericName=Folder Sync
Icon=owncloud
Keywords=ownCloud;syncing;file;sharing;
X-GNOME-Autostart-Delay=3

GenericName[el]=Συγχρονισμός φακέλου
Icon[el]=owncloud

Comment[en_GB]=ownCloud desktop synchronisation client
GenericName[en_GB]=Folder Sync
Name[en_GB]=ownCloud desktop sync client
Icon[en_GB]=owncloud


Μήπως έχω κάνει κάτι λάθος με την εγκατάσταση του desktop file ;
Τι είναι πιο σωστό να τρέξεις :
Κώδικας: Επιλογή όλων
desktop-file-install sublime_text.desktop

ή να το μεταφέρω απλά στο :
Κώδικας: Επιλογή όλων
/usr/share/applications/

;;

Επίσης επειδή δεν είχα κάνει συντόμευση, ( είπα για κάτσε μην φταίει αυτό - αν και δε νομίζω - ), έκανα μία :

και πήγα μετά και διόρθωσα το /usr/share/applications/sublime_text.desktop και το έκανα έτσι :
Κώδικας: Επιλογή όλων
[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

X-Desktop-File-Install-Version=0.22

[Desktop Action Window]
Name=New Window
Exec=sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=sublime_text --command new_file
OnlyShowIn=Unity;


Α! Τέλος, να αναφέρω πως είμαι σε Debian 8 με Gnome 3.14.1 ( αν και επίσης δεν πρέπει να παίζει ρόλο )

Ενημέρωση : Τελικά έπειτα από τα παραπάνω και αφού έκανα και μια επανεκκίνηση, πλέον δείχνει και το εικονίδιο!! :D
Δε ξέρω τι ακριβώς να έφταιγε. Μάλλον ήθελε και την συντόμευση.

Σε ευχαριστώ πολύ φίλε για τον χρόνο και την βοήθεια σου. :)