Proper placement of icon theme on OS X

Asked by vszakats on 2009-11-13

Hi,

LinuxDC++ icons appear as red cross when run on OS X.

I've tried various combinations to place icons (starting with
sconf install, ~/.local/share/icons/hicolor/, pixmaps in bin dir),
but none worked. I've run ./linuxdcpp from bin dir from Terminal.

What is proper placement of icon files so that the app finds them?

Brgds,
Viktor

Question information

Language:
English Edit question
Status:
Solved
For:
LinuxDC++ Edit question
Assignee:
No assignee Edit question
Solved by:
Steven Sheehy
Solved:
2009-11-14
Last query:
2009-11-14
Last reply:
2009-11-14
Steven Sheehy (steven-sheehy) said : #1

Depends on what version of linuxdcpp you have. Regardless of version, installing linuxdcpp using scons install should definitely place them in the correct location. If you're running from compile directory and you're using latest bzr trunk then you can place them anywhere in the icon theme search path (varies per system). Mine is:

~/.icons
~/.local/share/icons
/usr/share/gnome/icons
/usr/local/share/icons
/usr/share/icons
/usr/share/gnome/pixmaps
/usr/local/share/pixmaps
/usr/share/pixmaps
<prefix>/share/linuxdcpp/icons

Within these paths you have to place them in a certain structure (see icon theme spec) or you can just copy the linuxdcpp hicolor directory to be under the icons folder.

If you're using 1.0.3 or earlier then it depends upon the prefix you specified when compiling. The path would be:
<prefix>/share/linuxdcpp/pixmaps/

vszakats (vszakats) said : #2

I'm using latest bzr (r341) and these commands to build and run it:

$ scons CXXFLAGS=-I/opt/local/include PREFIX=~/linuxdcpp
$ scons install
$ cd ~/linuxdcpp/bin
$ ./linuxdcpp

It installed icons in ~/linuxdcpp/share/icons/ but that doesn't seem
to get picked, with these messages:

---
Loading: Hash database
Loading: Shared Files
Loading: Download Queue
Xlib: extension "RANDR" missing on display "/tmp/launch-c6zg6o/:0".

(linuxdcpp:48629): Gtk-WARNING **: Could not find the icon 'linuxdcpp-favorite-hubs'. The 'hicolor' theme
was not found either, perhaps you need to install it.
You can get a copy from:
 http://icon-theme.freedesktop.org/releases

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-favorite-hubs' for stock: Icon 'linuxdcpp-favorite-hubs' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-public-hubs' for stock: Icon 'linuxdcpp-public-hubs' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-preferences' for stock: Icon 'linuxdcpp-preferences' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-hash' for stock: Icon 'linuxdcpp-hash' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-search' for stock: Icon 'linuxdcpp-search' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-queue' for stock: Icon 'linuxdcpp-queue' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-finished-downloads' for stock: Icon 'linuxdcpp-finished-downloads' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-finished-uploads' for stock: Icon 'linuxdcpp-finished-uploads' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-public-hubs' for stock: Icon 'linuxdcpp-public-hubs' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-download' for stock: Icon 'linuxdcpp-download' not present in theme

(linuxdcpp:48629): Gtk-WARNING **: Error loading theme icon 'linuxdcpp-upload' for stock: Icon 'linuxdcpp-upload' not present in theme
---

I've also tried ~/.icons and ~/.local/share/icons, but they didn't
work for me. System dirs like /usr is not an option for me.

Here's the file list of ~/linuxdcpp:
---
~/linuxdcpp/bin
~/linuxdcpp/share
~/linuxdcpp/bin/linuxdcpp
~/linuxdcpp/share/doc
~/linuxdcpp/share/icons
~/linuxdcpp/share/linuxdcpp
~/linuxdcpp/share/doc/linuxdcpp
~/linuxdcpp/share/doc/linuxdcpp/Changelog.txt
~/linuxdcpp/share/doc/linuxdcpp/Credits.txt
~/linuxdcpp/share/doc/linuxdcpp/License.txt
~/linuxdcpp/share/doc/linuxdcpp/Readme.txt
~/linuxdcpp/share/icons/hicolor
~/linuxdcpp/share/icons/hicolor/16x16
~/linuxdcpp/share/icons/hicolor/20x20
~/linuxdcpp/share/icons/hicolor/24x24
~/linuxdcpp/share/icons/hicolor/48x48
~/linuxdcpp/share/icons/hicolor/96x96
~/linuxdcpp/share/icons/hicolor/scalable
~/linuxdcpp/share/icons/hicolor/16x16/apps
~/linuxdcpp/share/icons/hicolor/16x16/apps/linuxdcpp.png
~/linuxdcpp/share/icons/hicolor/20x20/apps
~/linuxdcpp/share/icons/hicolor/20x20/apps/linuxdcpp.png
~/linuxdcpp/share/icons/hicolor/24x24/apps
~/linuxdcpp/share/icons/hicolor/24x24/apps/linuxdcpp.png
~/linuxdcpp/share/icons/hicolor/48x48/apps
~/linuxdcpp/share/icons/hicolor/48x48/apps/linuxdcpp.png
~/linuxdcpp/share/icons/hicolor/96x96/apps
~/linuxdcpp/share/icons/hicolor/96x96/apps/linuxdcpp.png
~/linuxdcpp/share/icons/hicolor/scalable/apps
~/linuxdcpp/share/icons/hicolor/scalable/apps/linuxdcpp.svg
~/linuxdcpp/share/linuxdcpp/glade
~/linuxdcpp/share/linuxdcpp/icons
~/linuxdcpp/share/linuxdcpp/glade/downloadqueue.glade
~/linuxdcpp/share/linuxdcpp/glade/favoritehubs.glade
~/linuxdcpp/share/linuxdcpp/glade/finishedtransfers.glade
~/linuxdcpp/share/linuxdcpp/glade/hash.glade
~/linuxdcpp/share/linuxdcpp/glade/hub.glade
~/linuxdcpp/share/linuxdcpp/glade/mainwindow.glade
~/linuxdcpp/share/linuxdcpp/glade/privatemessage.glade
~/linuxdcpp/share/linuxdcpp/glade/publichubs.glade
~/linuxdcpp/share/linuxdcpp/glade/search.glade
~/linuxdcpp/share/linuxdcpp/glade/settingsdialog.glade
~/linuxdcpp/share/linuxdcpp/glade/sharebrowser.glade
~/linuxdcpp/share/linuxdcpp/glade/transfers.glade
~/linuxdcpp/share/linuxdcpp/icons/hicolor
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-dc++-fw-op.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-dc++-fw.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-dc++-op.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-dc++.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-download.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-normal-fw-op.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-normal-fw.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-normal-op.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-normal.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/16x16/status/linuxdcpp-upload.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-favorite-hubs.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-finished-downloads.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-finished-uploads.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-hash.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-preferences.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-public-hubs.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-queue.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/22x22/categories/linuxdcpp-search.png
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-favorite-hubs.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-finished-downloads.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-finished-uploads.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-hash.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-preferences.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-public-hubs.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-queue.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/categories/linuxdcpp-search.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-dc++-fw-op.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-dc++-fw.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-dc++-op.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-dc++.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-download.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-normal-fw-op.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-normal-fw.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-normal-op.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-normal.svg
~/linuxdcpp/share/linuxdcpp/icons/hicolor/scalable/status/linuxdcpp-upload.svg
---

Brgds,
Viktor

Best Steven Sheehy (steven-sheehy) said : #3

Sounds like you need to install the hicolor icon theme from freedesktop.org. It is the default icon theme needed for the icon theme specification to work.

vszakats (vszakats) said : #4

Thank you, this solved it.