You are not logged in.

#1 2008-01-30 20:32:21

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Associate Icon with Custom Script

How can I associate an custom icon to a very small bash script I wrote?
Basically I would like it to show an icon in thunar/nautilus. The bash script calls a wine program and adds $1 after it so it can load the path of the file it needs to open.

Thanks


Website - Blog - arch-home
Arch User since March 2005

Offline

#2 2008-01-30 22:27:05

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Associate Icon with Custom Script

Create a desktop file with the executable pointing to your script. Save it in ~.local/share/applications.

I hope it works anyway.

Last edited by skottish (2008-01-30 22:28:36)

Offline

#3 2008-01-31 00:55:08

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: Associate Icon with Custom Script

The file was I already created I added the icon line, but yet a still get a blank file as an icon. Any other suggestions?


Website - Blog - arch-home
Arch User since March 2005

Offline

#4 2008-01-31 01:35:30

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Associate Icon with Custom Script

Look at /usr/share/applications/*.desktop

Offline

Board footer

Powered by FluxBB