@Alad
I have just uploaded a new version of tkpacman with a Makefile based on your proposal. I have removed the execute permission for main.tcl, but I did not manage to remove it for askpass.tcl.
The latter is called indirectly by "sudo --askpass" by storing "/usr/share/tkpacman/askpass/askpass.tcl" in the environment variable "SUDO_ASKPASS".If I put "tclsh /usr/share/tkpacman/askpass/askpass.tcl" in "SUDO_ASKPASS" "sudo --askpass" fails.
Search Criteria
Package Details: tkpacman 1.9.1-2
Package Actions
Git Clone URL: | https://aur.archlinux.org/tkpacman.git (read-only, click to copy) |
---|---|
Package Base: | tkpacman |
Description: | A lightweight GUI for pacman built with Tcl/Tk |
Upstream URL: | https://sourceforge.net/projects/tkpacman |
Keywords: | GUI pacman system |
Licenses: | GPL |
Submitter: | herremaw |
Maintainer: | None |
Last Packager: | herremaw |
Votes: | 54 |
Popularity: | 0.015339 |
First Submitted: | 2013-08-25 14:25 (UTC) |
Last Updated: | 2021-02-08 16:01 (UTC) |
Dependencies (10)
- tcl (tcl-fossilAUR, tcl84AUR)
- tk (tk-fossilAUR)
- kdesu (kdesu-gitAUR) (optional) – if you want to use kdesu instead of su or sudo
- konsole (konsole-gitAUR) (optional) – alternative terminal emulator
- mate-terminal (optional) – alternative terminal emulator
- qterminal (qterminal-gitAUR) (optional) – alternative terminal emulator
- sudo (fake-sudoAUR, polkit-fakesudoAUR, sudo-gitAUR, doas-sudo-shimAUR, doas-sudo-shim-minimalAUR, sudo-hgAUR, sudo-selinuxAUR, fudo-gitAUR) (optional) – if you want to use sudo instead of su
- vte3 (vte3-notificationAUR, vte3-gitAUR) (optional) – alternative terminal emulator
- xfce4-terminal (xfce4-terminal-gitAUR, xfce4-terminal-develAUR) (optional) – alternative terminal emulator
- xterm (xterm-alacritty-symlinkAUR, kitty-xterm-symlinksAUR, xterm-gitAUR, xterm-alacritty-smooth-cursor-symlinkAUR) (optional) – alternative terminal emulator
Required by (0)
Sources (1)
herremaw commented on 2017-10-22 14:49 (UTC)
herremaw commented on 2017-10-15 06:13 (UTC) (edited on 2017-10-15 06:52 (UTC) by herremaw)
@Alad
Thank you. I will have a look at it.
At the moment tkPacman needs "askpass.tcl" to be executable, but that can be avoided. However, I am not sure that I understand the reason for your quote of file-hierarchy(7). Do you mean that the tcl-sources should be in /usr/lib/tkpacman rather than in /usr/share/tkpacman?
Alad commented on 2017-10-12 22:08 (UTC) (edited on 2017-10-12 22:18 (UTC) by Alad)
https://paste.xinu.at/OmIIk/
Usage: make DESTDIR="$pkgdir" PREFIX='/usr' install
On that regard, how necessary is it to have main.tcl and askpass.tcl as executables in /usr/share? (assuming they need to be executable and not run by tclsh) Compare file-hierarchy(7):
/usr/lib
Static, private vendor data that is compatible with all
architectures (though not necessarily architecture-independent).
Note that this includes internal executables or other binaries
that are not regularly invoked from a shell. Such binaries may be
for any architecture supported by the system. Do not place public
libraries in this directory, use $libdir (see below), instead.
herremaw commented on 2017-10-07 14:31 (UTC)
@Alad
No problem. No need to hurry.
Alad commented on 2017-10-07 13:52 (UTC)
herremaw, sorry for the late reply; I'm a bit busy at the moment. I'll write you back on the Makefile as soon as I have the time.
herremaw commented on 2017-10-07 12:50 (UTC)
@Alad
Maybe I misunderstood your comment of 2017-09-28 20:38 on tkPacman.
I thought that you meant that you already had a Makefile for tkPacman. Maybe that was a misunderstanding. Or is there another problem why there is no follow up on this comment?
Feel free to contact me. I am willing to cooperate.
herremaw commented on 2017-09-29 04:51 (UTC)
@Alad
Yes, that is interesting. I have tried a few times to understand how to set up a make file, but I never had enough perseverance.
Could you send it to me?
Alad commented on 2017-09-28 20:38 (UTC)
Would you accept a Makefile for this project?
herremaw commented on 2017-06-18 14:13 (UTC) (edited on 2017-06-18 19:49 (UTC) by herremaw)
Using "konsole" with tkpacman requires a modification of the "terminal" option of tkpacman.
1. Menu Tools → Options;
2. For option "terminal", select the value with "konsole" from the drop down list;
3. Press the "<->" button beside the "terminal" option to edit it;
4. Replace "--caption %t" with "-p tabtitle=%t" such that the value becomes "konsole --nofork -p tabtitle=%t -e %c"
Pinned Comments
herremaw commented on 2020-12-14 08:45 (UTC)
If you want to use tkPacman with Konsole as virtual terminal, you will have to change the tkPacman option "terminal" from
konsole -nofork -p tabtitle=%t -e %c
to
konsole --title %t -e %c
If I have to update tkPacman for some reason, I will also correct the command template for Konsole.