Logo Search packages:      
Sourcecode: dfm version File versions  Download package

icontopipe.c

/**************************************************************
  (C) 1998 by Achim Kaiser

  You may distribute under the terms of the GNU General Public
  License as specified in the COPYING file.
**************************************************************/

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "icontopipe.h"
#include "global.h"
#include "shell.h"
#include "iwc.h"
#include "extension.h"
#include <X11/xpm.h>
#include "pixmap.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <X11/Xproto.h>
#include <X11/Xatom.h>

void IconToPipe(char *file)
{
  char *icon=NULL,*start=NULL,*pos=NULL;
  char *filename;
  filename=CutHomeDir(file);
  if (filename[0]=='.' && filename[1]=='/')
    filename[0]='~';
  GetFileInfoFromDesktop(filename,&pos,&icon,&start);
  if (icon==NULL) {
    GetExtensionParameter(filename,&icon,&start);  
  }
  printf("%s\n",icon);
  _exit(0);
}

Generated by  Doxygen 1.6.0   Back to index