All of lore.kernel.org
 help / color / mirror / Atom feed
* program icon
@ 2011-12-11  8:17 Krzysztof
  2011-12-11  8:57 ` Javier Martinez Canillas
  0 siblings, 1 reply; 6+ messages in thread
From: Krzysztof @ 2011-12-11  8:17 UTC (permalink / raw)
  To: linux-c-programming

How to set the program icon to be showed e.g. on GUI desktop?

-- 
Regards
Krzysztof J.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: program icon
  2011-12-11  8:17 program icon Krzysztof
@ 2011-12-11  8:57 ` Javier Martinez Canillas
  2011-12-11 10:19   ` Jesse Ruffin
  2011-12-11 18:30   ` Krzysztof
  0 siblings, 2 replies; 6+ messages in thread
From: Javier Martinez Canillas @ 2011-12-11  8:57 UTC (permalink / raw)
  To: Krzysztof; +Cc: linux-c-programming

On Sun, Dec 11, 2011 at 9:17 AM, Krzysztof <kj@limes.com.pl> wrote:
> How to set the program icon to be showed e.g. on GUI desktop?
>
> --
> Regards
> Krzysztof J.
>
>

Not sure if I understand your question, but if what you want is to
have an application launcher with an icon in your desktop. You have to
create an .desktop file an copy it to ~/Desktop/. For example
app.desktop could be:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=/usr/local/myapp/bin/myapp
Name=MyApp
Icon=//usr/local/myapp/img.png

Hope it helps,

-- 
Javier Martínez Canillas
(+34) 682 39 81 69
Barcelona, Spain
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: program icon
  2011-12-11  8:57 ` Javier Martinez Canillas
@ 2011-12-11 10:19   ` Jesse Ruffin
  2011-12-11 18:30   ` Krzysztof
  1 sibling, 0 replies; 6+ messages in thread
From: Jesse Ruffin @ 2011-12-11 10:19 UTC (permalink / raw)
  To: Javier Martinez Canillas; +Cc: Krzysztof, linux-c-programming

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The standard for desktop entries, including associated icons:

http://standards.freedesktop.org/desktop-entry-spec/latest/

On 12/11/2011 03:57, Javier Martinez Canillas wrote:
> On Sun, Dec 11, 2011 at 9:17 AM, Krzysztof <kj@limes.com.pl>
> wrote:
>> How to set the program icon to be showed e.g. on GUI desktop?
>> 
>> -- Regards Krzysztof J.
>> 
>> 
> 
> Not sure if I understand your question, but if what you want is to 
> have an application launcher with an icon in your desktop. You have
> to create an .desktop file an copy it to ~/Desktop/. For example 
> app.desktop could be:
> 
> #!/usr/bin/env xdg-open
> 
> [Desktop Entry] Version=1.0 Type=Application Terminal=false 
> Exec=/usr/local/myapp/bin/myapp Name=MyApp 
> Icon=//usr/local/myapp/img.png
> 
> Hope it helps,
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQIcBAEBAgAGBQJO5IO4AAoJEO7eCtQ2Ge2pHSkP+gMEBhUUnfX5JBwWC7biUwC4
DrTLlcEu+bB6HUivkDUp04XEICbv43C/bQlx5QwW05T7Gvdg+Zdw1QSwLwRZ+J/A
t9voEnlx+hOdMm+rTWNiudB0j584oIgb4oo2zHXH7enrWW5SYOyEPBRu1fTpwA73
SZiEj1grlRsu3TrgxNNNK3NfhVBo++/+hijDoVUjOIaPVDXsYtWDEu2VYRHYHuEv
zzomQCF0Kt7jiE71Qnb+BcXTFxHOfUZqipj46WdW+j34SRZo1kE2iOhnF+Uu39wL
OI0uRdqWl+LJSysEXdOgSCKaEQ/DH/UCG4BcpnK2koLPBCdzyGrZ+/thrcBCE9ei
+ziUvP8QqrGLP5dIWlDonfKmHnUTLkGahEWeG5PyMnt804oZhP3HqdkWAFjvWoJh
iNllY3rvtwaC63ttBPV5bOxJrW0fEYWKd3e+Q7ikn0tfmu9bJjCCmZ0OMXWxakoL
c70YvVs2zUMF0d4Ps4CvXts30+P4zK3trzkmJ6//dG/sBZz3oX8hCQAk5QgvcDqk
RZ2LNXCvmaI3Gq1gbO6xlDrZsvMFP5/E3FsiNyTcfxO1c+0SvGs9bojDtq0/XiyO
XizZV3RR9gTons45Skc99ySCb2TKRUyoS4iqQdCamY4KXPYvx4rSleNCDvK1nWWv
7oLGoS8OYR2An/FrkRDf
=5FLk
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: program icon
  2011-12-11  8:57 ` Javier Martinez Canillas
  2011-12-11 10:19   ` Jesse Ruffin
@ 2011-12-11 18:30   ` Krzysztof
  2011-12-11 18:33     ` Aniruddha Bhattacharyya
  1 sibling, 1 reply; 6+ messages in thread
From: Krzysztof @ 2011-12-11 18:30 UTC (permalink / raw)
  To: linux-c-programming

On 12/11/2011 09:57 AM, Javier Martinez Canillas wrote:
> On Sun, Dec 11, 2011 at 9:17 AM, Krzysztof<kj@limes.com.pl>  wrote:
>> How to set the program icon to be showed e.g. on GUI desktop?
>>
>> --
>> Regards
>> Krzysztof J.
>>
>>
> Not sure if I understand your question,
Is it possible to set it at compilation/linking stage?

-- 
Regards
Krzysztof J.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: program icon
  2011-12-11 18:30   ` Krzysztof
@ 2011-12-11 18:33     ` Aniruddha Bhattacharyya
  2011-12-11 20:30       ` Krzysztof
  0 siblings, 1 reply; 6+ messages in thread
From: Aniruddha Bhattacharyya @ 2011-12-11 18:33 UTC (permalink / raw)
  To: Krzysztof; +Cc: linux-c-programming

So you want it like windows linker?
(embedding as a resource icon)

On Mon, Dec 12, 2011 at 12:00 AM, Krzysztof <kj@limes.com.pl> wrote:
>
> On 12/11/2011 09:57 AM, Javier Martinez Canillas wrote:
>>
>> On Sun, Dec 11, 2011 at 9:17 AM, Krzysztof<kj@limes.com.pl>  wrote:
>>>
>>> How to set the program icon to be showed e.g. on GUI desktop?
>>>
>>> --
>>> Regards
>>> Krzysztof J.
>>>
>>>
>> Not sure if I understand your question,
>
> Is it possible to set it at compilation/linking stage?
>
> --
> Regards
> Krzysztof J.
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: program icon
  2011-12-11 18:33     ` Aniruddha Bhattacharyya
@ 2011-12-11 20:30       ` Krzysztof
  0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof @ 2011-12-11 20:30 UTC (permalink / raw)
  To: linux-c-programming

On 12/11/2011 07:33 PM, Aniruddha Bhattacharyya wrote:
> So you want it like windows linker?
> (embedding as a resource icon)
>
>
That's exactly what I asked - embedded resource.

-- 
Regards
Krzysztof J.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-12-11 20:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-11  8:17 program icon Krzysztof
2011-12-11  8:57 ` Javier Martinez Canillas
2011-12-11 10:19   ` Jesse Ruffin
2011-12-11 18:30   ` Krzysztof
2011-12-11 18:33     ` Aniruddha Bhattacharyya
2011-12-11 20:30       ` Krzysztof

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.