So, here is the question. If I understand correctly, the OpenShot icon should go in the ~/.icons folder. In a deb, how do I add files to the home directory? Would it have to be in the postinst file? I guess an alternative is to use the "/usr/share/pixmaps" folder, which should be easy to add to the deb. All of the icons I set in gtk are relative to the path of my program, and therefore won't use the icon installed in the system.
It seems like the only thing that needs the system icon is the .desktop file, right? I did a simple test with your modified .desktop file and dropped the openshot_logo.png in the ~/.icons/ folder, and it seemed to work fine. Thanks, -Jonathan On Tue, Aug 25, 2009 at 2:39 PM, TJ <[email protected]> wrote: > >From my initial exploration it looks as if this is governed by the Free > Desktop Icon Theme specification: > > > http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#directory_layout > > "Icons and themes are looked for in a set of directories. By default, > apps should look in $HOME/.icons (for backwards compatibility), in > $XDG_DATA_DIRS/icons and in /usr/share/pixmaps (in that order)." > > There's more to read at the link. > > I think therefore it'll cover all bases to check the environment for > XDG_DATA_DIRS and if it is defined check "XDG_DATA_DIRS/icons/" for the > named icon. If not, use the default "/usr/share/pixmaps/". > > I bet there's some higher level service to call on for this somewhere > but I'm not sure where to look right now - gtk maybe? > > > _______________________________________________ > Mailing list: > https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers> > Post to : [email protected] > Unsubscribe : > https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers> > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~openshot.developers Post to : [email protected] Unsubscribe : https://launchpad.net/~openshot.developers More help : https://help.launchpad.net/ListHelp

