[kdesrc-build] [Bug 458943] kdesrc-run ignores options
https://bugs.kde.org/show_bug.cgi?id=458943 --- Comment #6 from Andrew Shark --- Thanks for sharing. I have several folders: `~/kde5` and `~/kde6`. I have added `~/bin/kdesrc-run` with the following ```bash #!/bin/bash source /home/username/.config/kdesrc_kde_version # Contains VERSIONKDE=6 echo "Using kde version $VERSIONKDE" cd /home/username/kde"$VERSIONKDE" export QT_LOGGING_RULES="somecategory*=true;..."; export QT_MESSAGE_PATTERN="...%{message}"; ./kdesrc-run $@ ``` and similarly for the kdesrc-build. I can then easily switch between builds (for kde5 and kde6), while still be able to invoke kdesrc-build/run directly, without the need to go to corresponding folder or specifying the kdesrc-buildrc path. TIL that there is an Arch package for kdesrc-build. Mentioned that in wiki. -- You are receiving this mail because: You are watching all bug changes.
[kdesrc-build] [Bug 458943] kdesrc-run ignores options
https://bugs.kde.org/show_bug.cgi?id=458943 --- Comment #5 from Juraj --- Hello, I found what is / was wrong. The past me created an alias in .zshrc to make things easier for him and than forgot about it. > ## Run projects built with kdesrc-build > function kdesrc-run > { > source "$HOME/kde/build/$1/prefix.sh" && "$HOME/kde/usr/bin/$@" > } This is the cause of the problem, my forgotten configuration. -- You are receiving this mail because: You are watching all bug changes.
[kdesrc-build] [Bug 458943] kdesrc-run ignores options
https://bugs.kde.org/show_bug.cgi?id=458943 --- Comment #4 from Juraj --- Thank you for checking again. OK, I will try to find it or switch to bash -- You are receiving this mail because: You are watching all bug changes.
[kdesrc-build] [Bug 458943] kdesrc-run ignores options
https://bugs.kde.org/show_bug.cgi?id=458943 --- Comment #3 from Andrew Shark --- No, working fine for me. I am also using zsh on Arch by the way. ``` ➜ ~ echo $SHELL /usr/bin/zsh ➜ kde6 ./kdesrc-run --help Usage: kdesrc-run [options] [arguments] Options: -e, --exec Specify program of the module. Default to module name. -f, --fork Launch the program in a new session. -q, --quiet Do not print run information. -h, --help Print usage information and exit. --list-installedPrint installed modules and exit. ``` > When it is called from BASH it runs just fine. Looks like you have a problem in your zsh. -- You are receiving this mail because: You are watching all bug changes.
[kdesrc-build] [Bug 458943] kdesrc-run ignores options
https://bugs.kde.org/show_bug.cgi?id=458943 --- Comment #2 from Juraj --- Thank you for looking into this. > Cannot reproduce. I did not specify that I am running this from ZSH shell. When it is called from BASH it runs just fine. It looks weird to me. > Note, that kate has a special code, that if forks even when you do not use > the `-f` option. It can bug with just "kdesrc-run --help"; nothing else is needed, kate is innocent. -- You are receiving this mail because: You are watching all bug changes.
[kdesrc-build] [Bug 458943] kdesrc-run ignores options
https://bugs.kde.org/show_bug.cgi?id=458943 Andrew Shark changed: What|Removed |Added CC||ash...@linuxcomp.ru Resolution|--- |WORKSFORME Status|REPORTED|RESOLVED --- Comment #1 from Andrew Shark --- Cannot reproduce. `kdesrc-run --help` shows usage. `kdesrc-run -f kate -l 5 file1.txt` opens the file1.txt in kate (in the same instance, if that was already opened) at line 5. Note, that kate has a special code, that if forks even when you do not use the `-f` option. SOFTWARE/OS VERSIONS kdesrc-build 22.07 (v22.07-246-gceaed4b) [not a package from Arch repository] -- You are receiving this mail because: You are watching all bug changes.