Comments (18)
- How do you invoke it?
- did you compare the zenity behavior?
- what kind of shell (bash, dash, zsh, ...) invokes it?
"--progress --auto-close" is supposed to automatically close once you reach 100% and "--progress --auto-kill" is supposed to cancel the parenting script when canceled.
Both work as expected here.
from qarma.
Hi,
I work now on a lxqt, and I have a tool written in bash who calls zenity
for a progress bar.
zenity is qt-based, and I wish to change it by qampa to change from Gtk to
qt4 (ot 5).
To verify that your tool worked as zenity, I took some examples on the Net.
On some, it's the case, but I ecnountered a problem withe the progress bar.
If I take the 1st example here :
https://help.gnome.org/users/zenity/stable/progress.html.en
it works well with zenity. But if I add at the begin :
alias zenity=qampa
I see the progress, but it never ends. And if I click on Cancel, the
following instructions are not executed. So, two probs.
I will try with --auto-close, thanks.
Greetings,
Patrice (aka Esclapion, Manjaro support team)
2014-07-23 20:53 GMT+02:00 luebking [email protected]:
- How do you invoke it?
- did you compare the zenity behavior?
- what kind of shell (bash, dash, zsh, ...) invokes it?
"--progress --auto-close" is supposed to automatically close once you
reach 100% and "--progress --auto-kill" is supposed to cancel the parenting
script when canceled.
Both work as expected here.—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
Thanks for the link.
I tested it with qarma and zenity (3.12.1)
Zenity does not close the dialog automatically, but has an additional "ok" button and activates it when reaching 100%
-> This needs to be added to qarma.
Both will (as can be expected) continue the script when cancelled (add "echo foobar" to the end to check) but neither qarma nor zenity exit with "-1" (but exit code "1") when cancelled, so the error dialog isn't spawned in either case.
What does /bin/sh link for you? (bash? dash? zsh? ...)
from qarma.
What does /bin/sh link for you? (bash? dash? zsh? ...)
bash. It's the default in Arch and in Arch-based distros. But I knw there
is a trend for zsh. All our scripts are written for bash.
2014-07-24 15:22 GMT+02:00 luebking [email protected]:
Thanks for the link.
I tested it with qarma and zenity (3.12.1)Zenity does not close the dialog automatically, but has an additional
"ok" button and activates it when reaching 100%
-> This needs to be added to qarma.Both will (as can be expected) continue the script when cancelled (add
"echo foobar" to the end to check) but neither qarma nor zenity exit with
"-1" (but exit code "1") when cancelled, so the error dialog isn't spawned
in either case.What does /bin/sh link for you? (bash? dash? zsh? ...)
—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
Please see commit 60ca43e
Another thing I noticed is that Qt automatically closes QProgressDialog when you set a value > 0, but neither issues accepted nor rejected, ie. the qarma process just continues.
Maybe this is related to your problem? (resolved as well)
from qarma.
Thanks, nice job, solved for this. :-) But a title is missing here :
qarma --progress --width 650 --auto-close --title "${M[11]}"" $NomIso"
I send you the program (to run as root), it's intended to copy an ISO on an
USB Key. I only replaced all zenity with karma.
If you have also zeniy, you will see the difference. I think it's only a
little thing, but ?
2014-07-24 15:56 GMT+02:00 luebking [email protected]:
Please see commit 60ca43e
60ca43eAnother thing I noticed is that Qt automatically closes QProgressDialog
when you set a value > 0, but neither issues accepted nor rejected, ie. the
qarma process just continues.
Maybe this is related to your problem? (resolved as well)—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
In case you attached something to the mail, i'm not sure whether the github issue tracker (you're mailing to that, not me) can handle attachments.
The title should be shown in the window decoration provided by the window manager.
Zenity does not add any other label, but meanwhile uses client side decorations.
You could attach a screenshot stressing what you miss, but need to visit the link at the bottom of this mail.
from qarma.
What I did, but probably an error :-( I have pastebin that here :
at the end, with :
qarma --progress --width 650 --auto-close --title "${M[11]}"" $NomIso"
The title must be : "copy of the ISO name.iso" and I have nothing. A window
with the title qarma, a progressbar, nothing else.
It works, but... I can change the script, if necessary, but I dont
understand what happens.
2014-07-24 23:07 GMT+02:00 luebking [email protected]:
In case you attached something to the mail, i'm not sure whether the
github issue tracker (you're mailing to that, not me) can handle
attachments.The title should be shown in the window decoration provided by the window
manager.
Zenity does not add any other label, but meanwhile uses client side
decorations.You could attach a screenshot stressing what you miss, but need to visit
the link at the bottom of this mail.—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
Do you get an expected title for
qarma --progress --width 650 --auto-close --title "Foo Bar"
from qarma.
I changed the line for :
done) | qarma --progress --width 650 --auto-close --title "Essai"
and nope. I don't see "Essai".
2014-07-24 23:30 GMT+02:00 luebking [email protected]:
Do you get an expected title for
qarma --progress --width 650 --auto-close --title "Foo Bar"—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
Ah. Qt5 - no problem with Qt4
I assume the QApplication parser of Qt5 sucks the title parameter away.
from qarma.
I'm now under xfce for the moment. But my goal is a lxqt ported recently in
qt5.
2014-07-25 0:22 GMT+02:00 luebking [email protected]:
Ah. Qt5 - no problem with Qt4
I assume the QApplication parser of Qt5 sucks the title parameter away.
—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
Yes, I was just mentioning. The goal is to have this work in either case ;-)
from qarma.
afaik, Qt5 has less things than Qt4. The devs of lxqt complained about that.
2014-07-25 0:33 GMT+02:00 luebking [email protected]:
Yes, I was just mentioning. The goal is to have this work in either case
;-)—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
That's not the problem here.
Qt5 interprets the switch and removes it from the arguement list. Then sets it on the first shown QWindow.
For some reason, this does not work with QDialog.
I either need to figure why or extract the switch from the vanilla argument list.
from qarma.
See commit 827c59d
Current master also fixes two issues on custom labels (if you care)
from qarma.
I'm closing this as the original issue is confirmed to be resolved. The --title in Qt5 should now work as well.
Please do not hesitate to open a new item as soon as you spot another issue.
Many thanks for testing and reporting.
from qarma.
Works, thanks a lot. FYI :
https://forum.manjaro.org/index.php?topic=15425.msg142735#msg142735
Regards
2014-07-26 11:36 GMT+02:00 luebking [email protected]:
I'm closing this as the original issue is confirmed to be resolved. The
--title in Qt5 should now work as well.
Please do not hesitate to open a new item as soon as you spot another
issue.Many thanks for testing and reporting.
—
Reply to this email directly or view it on GitHub
#1 (comment).
from qarma.
Related Issues (20)
- Recommended by LXQt
- --attach doesnt accept the following entry HOT 5
- Cross-platform binaries HOT 3
- Exit code on escape HOT 1
- Yes/No buttons for question
- Retain the View mode in --file-selection HOT 13
- --text-info --autosave option? HOT 2
- --file-selection --save has stopped working HOT 19
- --question always returns No
- '\n' does not create new lines as it does in zenity HOT 4
- New release?
- qarma --list isn't working for me HOT 1
- Project orientation HOT 9
- `qarma` is not a drop-in replacement for `zenity`; e.g. the option `--mid-search` is not honoured. HOT 4
- No dialog titles in latest build HOT 9
- qt6: qarma build is failing HOT 20
- QRegExp "remains"
- Qarma::notify() hides overloaded virtual function QApplication::notify(QObject*, *QEvent*) HOT 2
- --help-list should show positional arguments
- Progress dialog hangs infinitely , no --auto-close HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qarma.