Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

To be is to program.


devel / comp.lang.python / pyinstaller: icon not visable on desktop?

SubjectAuthor
* pyinstaller: icon not visable on desktop?Ulli Horlacher
+- Re: pyinstaller: icon not visable on desktop?nospam 2021
`* Re: pyinstaller: icon not visable on desktop?Calvin Spealman
 `- Re: pyinstaller: icon not visable on desktop?Ulli Horlacher

1
pyinstaller: icon not visable on desktop?

<snjjqj$m1m$1@news2.informatik.uni-stuttgart.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16183&group=comp.lang.python#16183

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!news.uni-stuttgart.de!.POSTED!not-for-mail
From: frams...@rus.uni-stuttgart.de (Ulli Horlacher)
Newsgroups: comp.lang.python
Subject: pyinstaller: icon not visable on desktop?
Date: Tue, 23 Nov 2021 20:44:03 +0000 (UTC)
Organization: University of Stuttgart, FRG
Lines: 20
Message-ID: <snjjqj$m1m$1@news2.informatik.uni-stuttgart.de>
X-Trace: news2.informatik.uni-stuttgart.de 1637700243 22582 129.69.1.129 (23 Nov 2021 20:44:03 GMT)
X-Complaints-To: news@news.uni-stuttgart.de
NNTP-Posting-Date: Tue, 23 Nov 2021 20:44:03 +0000 (UTC)
User-Agent: tin/2.4.5-20200522 ("Millburn") (Linux/5.4.0-90-generic (x86_64))
 by: Ulli Horlacher - Tue, 23 Nov 2021 20:44 UTC

When I compile a python program with pyinstaller, I get an executable:

pyinstaller --onefile --icon fex.ico fextasy.py

But the executables icon is only visable within the windows file browser,
not on the desktop:

https://fex.flupp.org/fop/V2ioMZcl/X-20211123213712.png

There is only the default pyinstaller icon.

Why?

--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/

Re: pyinstaller: icon not visable on desktop?

<j06c49Fp9iU1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16186&group=comp.lang.python#16186

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nospam_2...@efbe.prima.de
Newsgroups: comp.lang.python
Subject: Re: pyinstaller: icon not visable on desktop?
Date: Wed, 24 Nov 2021 09:40:41 +0100
Lines: 25
Message-ID: <j06c49Fp9iU1@mid.individual.net>
References: <snjjqj$m1m$1@news2.informatik.uni-stuttgart.de>
Reply-To: fbeythien@gmx.de
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 8KTfNYhsD5EIgBBW6aM0jwVB4X10GBpFD6UQxa3YCMGg2AU8Q=
Cancel-Lock: sha1:EgYApN2LDJTcuxLGpFmJIJatBTs=
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.14.0
In-Reply-To: <snjjqj$m1m$1@news2.informatik.uni-stuttgart.de>
Content-Language: de-DE
 by: nospam_2...@efbe.prima.de - Wed, 24 Nov 2021 08:40 UTC

Am 23.11.21 um 21:44 schrieb Ulli Horlacher:
> When I compile a python program with pyinstaller, I get an executable:
>
> pyinstaller --onefile --icon fex.ico fextasy.py
>
> But the executables icon is only visable within the windows file browser,
> not on the desktop:
>
> https://fex.flupp.org/fop/V2ioMZcl/X-20211123213712.png
>

I had to postprocess the exe with resourcehacker freeware:
http://angusj.com/resourcehacker/

"C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" -open
skydiaA.exe -save skydia.exe -action addskip -res Mainicon.ico -mask
ICONGROUP,MAINICON,

creates skydia.exe with the "wish icon".
skydiaA.exe has the default icon.

HTH
Frank

Re: pyinstaller: icon not visable on desktop?

<mailman.1.1637765527.9869.python-list@python.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16187&group=comp.lang.python#16187

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!not-for-mail
From: cspea...@redhat.com (Calvin Spealman)
Newsgroups: comp.lang.python
Subject: Re: pyinstaller: icon not visable on desktop?
Date: Wed, 24 Nov 2021 09:51:44 -0500
Lines: 41
Message-ID: <mailman.1.1637765527.9869.python-list@python.org>
References: <snjjqj$m1m$1@news2.informatik.uni-stuttgart.de>
<CACo5Rz5xoTuCtaXu=0ezYhqh_7B7VO9m=PVCP5U8HisowEs9-A@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Trace: news.uni-berlin.de hB0bQQMlAM8cbjEJaZBFlAbyzAnlG0DEMH7eGJzJHY0w==
Return-Path: <cspealma@redhat.com>
X-Original-To: python-list@python.org
Delivered-To: python-list@mail.python.org
Authentication-Results: mail.python.org; dkim=pass
reason="1024-bit key; unprotected key"
header.d=redhat.com header.i=@redhat.com header.b=CEXPykCT;
dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.021
X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'engineer': 0.02;
'browser,': 0.09; 'cc:addr:python-list': 0.09; 'subject:not':
0.09; 'url-ip:67.199.248.12/32': 0.09; 'url-ip:67.199.248.13/32':
0.09; 'url:de': 0.09; 'url:mailman': 0.15; 'cc:name:python': 0.16;
'exe': 0.16; 'executables': 0.16; 'icons': 0.16; 'pyinstaller':
0.16; 'subject:icon': 0.16; 'url-ip:129/8': 0.16; 'url:latest':
0.16; 'wrote:': 0.16; 'python': 0.16; 'probably': 0.17; 'tue,':
0.19; 'cc:addr:python.org': 0.20; 'version': 0.23; 'url-
ip:188.166.95.178/32': 0.25; 'url-ip:188.166.95/24': 0.25;
'url:listinfo': 0.25; 'cc:2**0': 0.25; 'url-ip:188.166/16': 0.25;
'bit': 0.27; 'default': 0.31; 'url-ip:188/8': 0.31; 'program':
0.31; 'message-id:@mail.gmail.com': 0.32; 'but': 0.32; 'there':
0.33; 'server': 0.33; 'windows': 0.34; 'header:In-Reply-To:1':
0.34; 'received:google.com': 0.34; 'received:209.85': 0.37;
'file': 0.38; 'could': 0.38; 'received:209': 0.39;
'received:mimecast.com': 0.40; 'url-ip:67.199.248/24': 0.64; 'url-
ip:67.199/16': 0.64; 'url:png': 0.66; 'tel:': 0.68; 'url-ip:67/8':
0.69; 'within': 0.69; '2021': 0.71; 'und': 0.76; 'url-ip:209/8':
0.76; 'quality': 0.80; 'received:170': 0.81; 'handled.': 0.84;
'received:209.85.161': 0.84; 'url-ip:176/8': 0.84; 'e-mail:':
0.88; 'url:logo': 0.91; 'url:sig': 0.91
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1637765525;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
in-reply-to:in-reply-to:references:references;
bh=9dt7DiJA2+/A4V0eGPW2fT5+YDlcN4jX9X9uneiysos=;
b=CEXPykCTYe6Upl8CYwF0jE6LwjHsdry5i3clpQCa5RLdv9pgXxZPq2DIJ5ZtGk71q1qNfD
hnCrg5UGfGJZUl9xS8P+1XZnvgdrCqwTntLimnsFbxmsm3KuhcYbrtojNUa65ZYNOdIEJU
SQFbClLCi1Y48ManaId09PQvCgzjRZE=
X-MC-Unique: j0IAJ_5wPtCHAnhCLVitfQ-1
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=9dt7DiJA2+/A4V0eGPW2fT5+YDlcN4jX9X9uneiysos=;
b=el9q3S1hG2U6uX5bMsneu5s1sfDuRyABxy5mbkU3FM/XtmRvNZROD7nX9weEn5ikeb
fIeMsrcXihCYdX0n5INMLArdZB4zkI1hmhXzDnAT9qnb2UMjxuxmMxza3XKAv3lqTg3R
lCMwjMNHg59r2UXPsaL+3+wrwMNIoBvu0NJo0LSgqRZ41oCX664tV/o6cfVlVnvVdCWD
zGXrjmhrfcrbJddUs5DFi/3eB+F1DYzNkWNCoiwvcsHqeSQ4rHtayr0FewR0GhKnQTF5
v6tvYS6vbl/QupJk5BCZB2YbyOgrSu4Xb/ahJxX0RPrAmt3vUlcaTiclzNAsaGbTPSlW
X/sA==
X-Gm-Message-State: AOAM531bQzn2a9Bf36M6s0Hfa728KHqkse/bJ9q5886fwoJp2mhD009b
SsGvjj+bDLs5o5iBcrkf42d9BptjUXD6kLA4aHvPl5rK2oKTinZL6mrjnnuxfcbyIvuVLLDilnD
CohtD3wzmIjNbW9LYhn25ghZEyLlxjT1N
X-Received: by 2002:a05:6830:442a:: with SMTP id
q42mr13956081otv.385.1637765518552;
Wed, 24 Nov 2021 06:51:58 -0800 (PST)
X-Google-Smtp-Source: ABdhPJyq078/jLHeLPQM/Xj4n5fZgfYb5tcUg9cdglV3VPSxCkW7m1jMkzXzV4wIzL1bqDksUh+GZ7fTnRRIFRFOZe0=
X-Received: by 2002:a05:6830:442a:: with SMTP id
q42mr13956056otv.385.1637765518335;
Wed, 24 Nov 2021 06:51:58 -0800 (PST)
In-Reply-To: <snjjqj$m1m$1@news2.informatik.uni-stuttgart.de>
Authentication-Results: relay.mimecast.com;
auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=cspealma@redhat.com
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Content-Filtered-By: Mailman/MimeDel 2.1.37
X-BeenThere: python-list@python.org
X-Mailman-Version: 2.1.37
Precedence: list
List-Id: General discussion list for the Python programming language
<python-list.python.org>
List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>,
<mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive: <https://mail.python.org/pipermail/python-list/>
List-Post: <mailto:python-list@python.org>
List-Help: <mailto:python-list-request@python.org?subject=help>
List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>,
<mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID: <CACo5Rz5xoTuCtaXu=0ezYhqh_7B7VO9m=PVCP5U8HisowEs9-A@mail.gmail.com>
X-Mailman-Original-References: <snjjqj$m1m$1@news2.informatik.uni-stuttgart.de>
 by: Calvin Spealman - Wed, 24 Nov 2021 14:51 UTC

What version of Windows is this on? That's probably going to be a useful
bit of information, because there could be differences there to how EXE
icons are handled.

On Tue, Nov 23, 2021 at 4:18 PM Ulli Horlacher <
framstag@rus.uni-stuttgart.de> wrote:

> When I compile a python program with pyinstaller, I get an executable:
>
> pyinstaller --onefile --icon fex.ico fextasy.py
>
> But the executables icon is only visable within the windows file browser,
> not on the desktop:
>
> https://fex.flupp.org/fop/V2ioMZcl/X-20211123213712.png
>
> There is only the default pyinstaller icon.
>
> Why?
>
>
> --
> Ullrich Horlacher Server und Virtualisierung
> Rechenzentrum TIK
> Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de
> Allmandring 30a Tel: ++49-711-68565868
> 70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>

--

CALVIN SPEALMAN

SENIOR QUALITY ENGINEER

calvin.spealman@redhat.com M: +1.336.210.5107
[image: https://red.ht/sig] <https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>

Re: pyinstaller: icon not visable on desktop?

<snm344$ahp$1@news2.informatik.uni-stuttgart.de>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=16189&group=comp.lang.python#16189

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!npeer.as286.net!npeer-ng0.as286.net!news.uni-stuttgart.de!.POSTED!not-for-mail
From: frams...@rus.uni-stuttgart.de (Ulli Horlacher)
Newsgroups: comp.lang.python
Subject: Re: pyinstaller: icon not visable on desktop?
Date: Wed, 24 Nov 2021 19:17:25 +0000 (UTC)
Organization: University of Stuttgart, FRG
Lines: 26
Message-ID: <snm344$ahp$1@news2.informatik.uni-stuttgart.de>
References: <snjjqj$m1m$1@news2.informatik.uni-stuttgart.de> <CACo5Rz5xoTuCtaXu=0ezYhqh_7B7VO9m=PVCP5U8HisowEs9-A@mail.gmail.com> <mailman.1.1637765527.9869.python-list@python.org>
X-Trace: news2.informatik.uni-stuttgart.de 1637781445 10809 129.69.1.129 (24 Nov 2021 19:17:25 GMT)
X-Complaints-To: news@news.uni-stuttgart.de
NNTP-Posting-Date: Wed, 24 Nov 2021 19:17:25 +0000 (UTC)
User-Agent: tin/2.4.5-20200522 ("Millburn") (Linux/5.4.0-90-generic (x86_64))
X-Received-Bytes: 1820
 by: Ulli Horlacher - Wed, 24 Nov 2021 19:17 UTC

Calvin Spealman <cspealma@redhat.com> wrote:
> What version of Windows is this on? That's probably going to be a useful
> bit of information, because there could be differences there to how EXE
> icons are handled.
>
> On Tue, Nov 23, 2021 at 4:18 PM Ulli Horlacher <
> framstag@rus.uni-stuttgart.de> wrote:
>
> > When I compile a python program with pyinstaller, I get an executable:
> >
> > pyinstaller --onefile --icon fex.ico fextasy.py
> >
> > But the executables icon is only visable within the windows file browser,
> > not on the desktop:
> >
> > https://fex.flupp.org/fop/V2ioMZcl/X-20211123213712.png

Python says: Windows 10.0.19041

--
Ullrich Horlacher Server und Virtualisierung
Rechenzentrum TIK
Universitaet Stuttgart E-Mail: horlacher@tik.uni-stuttgart.de
Allmandring 30a Tel: ++49-711-68565868
70569 Stuttgart (Germany) WWW: http://www.tik.uni-stuttgart.de/

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor