![]() |
Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
Hi to all
I asked this question on TJC, but no answer yet... Maybe here someone can help me.. After last update I have some problem with my apps (scripts). Maybe someone can help me to fix it... 1. CAN'T get notification... if I'll run this command for example: Code:
python /usr/share/openrepos-wazebton/notifer1.py Code:
[root@Jolla ~]# python /usr/share/openrepos-wazebton/notifer1.py Code:
#!/usr/bin/python 2. Strange way to open script via fingerterm. When I press on the .desktop file, it should open fingerterm and start my script inside. All worked perfectly before update, but now it work in different way, see picture: https://together.jolla.com/upfiles/1...1378426686.jpg 1. Start window 2. Open fingerterm window with my script BUT #2 CAN'T came to foreground automatically, like it was before update. It just stay in this mode like you can see on the image. If you will press on the #2 it came to foreground, and when you close this window it also will close the #1 window. Maybe problem came from python/dbus problem from the first question ? Python that I have installed: Code:
[root@Jolla ~]# rpm -qa *python* Code:
[root@Jolla ~]# rpm -qa *dbus* Thanks |
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
I don't have a Jolla but reading the output I would guess that you need a python-dbus package for it to work.
|
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
Yes, thanks... Answered on TJC, I needed to install dbus-python package :)
But about the second question, now I noticed it can came to foreground, but it take like 8 sec :( Do you know how to speed up it ? Like it was before sys update, it was open almost immediately... |
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
Python using own libs wrappers for system functions, so you need python-{something} packages to work.
|
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
show desktop for your script
|
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
For example:
Code:
[Desktop Entry] Code:
#include <stdio.h> Code:
[Desktop Entry] Code:
#include <stdio.h> |
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
try adding X-Nemo-Application-Type=no-invoker in desktop file
|
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
or try in reverse way:
desktop file starting script1 in fingerterm script1 executing root helper binary binary executing script2 with root privileges it should work better |
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
Thanks Coderus.
X-Nemo-Application-Type=no-invoker didn't change nothing, it still take too much time to open fingerterm in foreground. I will try the second option later and will report. Thanks |
Re: Python, dbus, fingerterm, opening app/script after last update (1.1.1.27)
Quote:
It really speed up opening of fingerterm, but it also opened another terminal window withh all processes... But I found how to do this: 1. removed from binary "fingerterm -e" before path to script. 2. added "fingerterm -e" in the .desktop file before path to binary. Now all work quickly like before sys update :) Strange changes in this sys update... Thanks |
All times are GMT. The time now is 18:06. |
vBulletin® Version 3.8.8