How to add icons in PyQt5 app in flatpak? - pyqt5

I have small PyQt5 app: https://github.com/taunoe/tauno-serial-plotter
I got all the functionality to work on flatpak but icons are a problem. Tried different things, but i have no clue how to make them showup.
(base) taunoerik#pop-os:~/Documents/MyGitHub/tauno-serial-plotter$ flatpak run
org.flatpak.Tauno-serial-plotter /app/bin/python3
Gtk-Message: 15:15:29.163: Failed to load module "appmenu-gtk-module"
Gtk-Message: 15:15:29.199: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:15:29.199: Failed to load module "canberra-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
qt.svg: Cannot open file '/home/taunoerik/img/tauno-plotter.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/tauno-plotter.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/arrow_down.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/arrow_down.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/arrow_down.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/arrow_down.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/plus.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/plus.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/minus.svg', because: No such file or directory
qt.svg: Cannot open file '/home/taunoerik/img/minus.svg', because: No such file or directory

File names should be absolute. Like:
filename = os.path.join(os.path.dirname(__file__), 'icons/file.svg')
Note relative like this: filename = './icons/file.svg'

Related

Heroku deploy fails because it can not find config module

This is the error I get in my Heroku logs: Error: Cannot find module './config/keys'
This is where that line in my index.js file comes from:
const keys = require('./config/keys');
My config folder is in the root directory and I have a keys.js folder in there, so I'm not sure what this error is telling me I am doing wrong, because the file is definitely there.
You say you "have a keys.js folder in there". But if you're calling require('./config/keys') there should be a file named keys.js. If there is a folder named config/keys that contains one or more js files, you should require each file in that folder that you need using require('./config/keys/filename.js');

How to copy artifacts folder to ftp folder in TFS?

I'm trying to publish artifacts and it's other folders files as well.I've read all the docs file provide by microsoft from here and used them but none of them worked for me.
I' tried File patterns as
** =>which copied all root files to ftp
**\* => which copied all sub folders file to ftp's root directory.
What I've wanted is copy folder to folder in ftp aswell.
-artifacts ftp
--a.dll --a.dll
--subfolder --subfolder
---subfolder_1.dll ---subfolder_1.dll
what's happening is
ftp
--a.dll
--subfolder_1.dll
It's copying all sub directories file to root directory of ftp.
I've use curl and ftp both giving me same result.
How can i achieve folder to folder copy in TFS 2017.
It's not related File patterns, to upload the entire folder content recursively, simply specify **.
All you have to do is checking the Preserve file paths in Advanced option.
If selected, the relative local directory structure is recreated under
the remote directory where files are uploaded. Otherwise, files are
uploaded directly to the remote directory without creating additional
subdirectories.
For example, suppose your source folder is: /home/user/source/ and
contains the file: foo/bar/foobar.txt, and your remote directory
is: /uploads/. If selected, the file is uploaded to:
/uploads/foo/bar/foobar.txt. Otherwise, to: /uploads/foobar.txt.

iWatcher-Prefix.pch.pch: No such file or directory

I have this warning :
while processing /Users/myName/Desktop/myApp/AppRight.framework/AppRight(GrNativeCrashEvent.o):
warning: /Users/gryphonet/workspace/ios/iWatcher/Build/Intermediates/PrecompiledHeaders/iWatcher-Prefix-clslxlldlvbjdmgkugmxtoospkbr/iWatcher-Prefix.pch.pch: No such file or directory
I try this solution but its not work
Why isn't ProjectName-Prefix.pch created automatically in Xcode 6?
And I try to add iWatcher-Prefix.pch.pch file
but still have this warning.

Force PhpStorm to recognize a project file

I have an annoying scenario in PhpStorm;
When I open a file by invoking the PhpStorm launcher with a relative file path as the only argument (phpstorm src/ZumbaController.php) the application will launch, but as the file is saved a prompt appears;
open a file from the terminal
dreaded confirm write-file dialog
Opening the file by the full, absolute path does not help. Having the current working directory of the shell be the real path of the project does not help either (opening from the real project directory). Is there a way to instruct PhpStorm that this file belongs to the currently-open project?
(I considered posting on superuser, but this is more of a programers-only problem)

Can't install yiidebugtb extension in Yii application

I have downloaded the yiidebugtb extension and put it in the protected/extensions directory, so the path to the XWebDebugRouter.php file is protected/extensions/yiidebugtb/XWebDebugRouter.php. Then I updated the main.php config file so that I added this line 'application.extensions.yiidebugtb.*', in the 'import' section, so this extension is loaded automatically.
However, when I try to access the main page of my application I am getting this error
include(XWebDebugRouter.php): failed to open stream: No such file or directory
in YiiBase.php(421). Anyone could help? Thanks.
The directory
protected/extensions/yiidebugtb
had incorrect access rights. It only had rwx------, after chmod to rwxr-xr-x it is alright.