I created a desktop application with pyinstaller. When I double-click on the icon, Ubuntu says:

Can't open the file
Failed to find default application for content type 'application.x-executable'

I *can* run it by right-clicking and choosing "Run as a program".

How can I get double-clicking to launch it?

(Yes, I already set it to be executable from the command line.)

#python #pyinstaller #ubuntu

Fine this should do *sigh*

Why was this so annyoing to make ... ?
So many copy errors, unresponsive progressbar and bla.
Bleh.
(And why can neither #Powershell not #cmd handle it well ? Even with Encoding enabled...)

https://codeberg.org/alceawisteria/AdbTools/src/branch/main/copytool

Added aprecompiled binary via #pyinstaller.
(Untested. I have no idea if it works...)

I can only tell if everything copied fine tomorrow, as the copy process is not super slow, but there are too many files...)
https://infosec.exchange/@alcea/115792254837781148
#CodeAlcea

I created an actual "release" today, for my Xiaolong Dictionary language learning tool [1].

I wonder however, why the GNU/Linux built is bigger. Maybe 'cause I ran another command making the executable. Makefile target:

pyinstaller --clean --onefile --noconsole --add-data "$(TCL_LIBRARY):tcl8.6" --add-data "$(TK_LIBRARY):tk8.6" "$(MODULE)")

While on Windows I have no idea how to do that.

[1]: https://codeberg.org/ZelphirKaltstahl/xiaolong-dictionary/releases

#python #tkinter #matplotlib #pillow #pyinstaller #executable

xiaolong-dictionary

Xiaolong Dictionary — A GUI application to help you learn vocabulary of (probably) any language. It is written in Python using tkinter, and runs on GNU/Linux, Windows, and probably also MacOS.

Codeberg.org
社内向けPythonツールの配布方法まとめ - Qiita

はじめに Pythonでちょっとした社内向けツールを作って、「使ってもらいながら改良したい!」と思ったこと、ありませんか? プロトタイプを配布してフィードバックをいただくことは、開発サイクルを加速させるうえでとても有効です。 しかし、いざ渡そうとすると色々な課題が出てきま...

Qiita
PythonスクリプトをGUI化→exe化し、GitHubでリリースするまでの備忘録 - Qiita

はじめに 本記事では、以下の流れを実際に行った手順としてまとめます。 PythonスクリプトをGUI化する PyInstallerを使ってexe化する ビルドを自動化する(.bat) GitHubに(できるだけ)綺麗なリポジトリを作る GitHub Releaseで配布...

Qiita

If you have #Python installed and want to verify what's going on with #PyInstaller being flagged as malicious, here's all you need to do.

Create a file with the following content; maybe name it "hello.py":

print ("Hello world!")

Then compile it with PyInstaller, doesn't matter if you use the onefile argument or not:

pyinstaller --onefile hello.py

If Defender doesn't nuke it on sight, find your .exe in the dist folder and upload it to virustotal(.)com. It'll pop hot for a trojan.

#Security

Иконки прямо в коде: как мы избавились от assets, портируя приложение на Linux и macOS

Привет, Хабр! Мы в ChameleonLab разрабатываем тулкит для стеганографии, который уже работает на Windows и macOS . Сейчас мы портируем его на Linux, и, как это часто бывает, именно на этом этапе классические проблемы с ресурсами (иконками, картинками) проявили себя во всей красе. После релиза пользователи увидели наше решение и стали спрашивать, как оно устроено и почему приложение не тащит за собой папку с картинками. Раз уж сообществу это интересно, мы решили дать развёрнутый ответ. Расскажем, как встроили все иконки прямо в код с помощью SVG, и как внутренние итерации и поиски идеального решения привели нас к финальному варианту.

https://habr.com/ru/articles/940180/

#python #PyQt #PySide #Qt #SVG #векторная_графика #ui #PyInstaller #hidpi #кроссплатформенная_разработка

Иконки прямо в коде: как мы избавились от assets, портируя приложение на Linux и macOS

Привет, Хабр! Мы в ChameleonLab разрабатываем тулкит для стеганографии, который уже работает на Windows и macOS . Сейчас мы портируем его на Linux, и, как это часто бывает, именно на этом этапе...

Хабр

VPN-клиент для Windows своими руками: L2TP, PPTP, маршруты и Telegram-уведомления

Рабочая задача: развернуть VPN на MikroTik с поддержкой L2TP и PPTP, авторизация — через Radius. В роли серверов — стандартные для нас RouterOS CCR1016-12G. Параллельно возникло требование: подобрать клиент под Windows, чтобы можно было просто передать пользователям исполняемый файл, и они могли подключиться — без инструкций, .bat-файлов и шаманства.

https://habr.com/ru/articles/928242/

#vpnclient #mikrotik #python3 #pyinstaller #gui #l2tp #pptp #powershell

VPN-клиент для Windows своими руками: L2TP, PPTP, маршруты и Telegram-уведомления

История из практики Рабочая задача: развернуть VPN на MikroTik с поддержкой L2TP и PPTP, авторизация — через Radius. В роли серверов — стандартные для нас RouterOS CCR1016-12G. Параллельно возникло...

Хабр

Figured out how to create a Linux, MacOS (ARM) and Windows executable in a GitHub action for our PyGame mini game: https://github.com/jhutar/CatWars/blob/f2e61c4fcfd942d3e6e73ad2e9551fd61bc9ee25/.github/workflows/on-tag.yaml

Uploaded to https://jhutar.itch.io/catwars if you would be able to try if Windows and MacOS "builds" work - thank you 🙂

#pygame #gamedev #pyinstaller

CatWars/.github/workflows/on-tag.yaml at f2e61c4fcfd942d3e6e73ad2e9551fd61bc9ee25 · jhutar/CatWars

Defend peaceful cat vilage from hordes of evil enemies. - jhutar/CatWars

GitHub
Hackers explotan PyInstaller para implementar un Infostealer indetectable para macOS

Expertos en ciberseguridad descubren cómo hackers usan PyInstaller para implementar un Infostealer indetectable para macOS

mecambioaMac