Skip to content

Commit

Permalink
fix doinst and kdialog for net info
Browse files Browse the repository at this point in the history
Signed-off-by: Anagnostakis Ioannis <elahistos@yahoo.gr>
  • Loading branch information
rizitis committed Feb 9, 2025
1 parent a25a193 commit fc4aa7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions scmd.SlackBuild/doinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ update_config() {
fi
}

update_config "etc/inxifetch/inxifetch.conf" "etc/inxifetch/inxifetch.conf.new"
update_config "etc/captain-slack/cptn-main.ini" "etc/captain-slack/cptn-main.ini.new"
update_config "/etc/inxifetch/inxifetch.conf" "/etc/inxifetch/inxifetch.conf.new"
update_config "/etc/captain-slack/cptn-main.ini" "/etc/captain-slack/cptn-main.ini.new"


if [ -x /usr/bin/update-desktop-database ]; then
Expand Down
6 changes: 3 additions & 3 deletions scmd.SlackBuild/scmd.SlackBuild
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=scmd
SRCNAM=Slackware-Commander
VERSION=6.1.0-RC
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}

Expand Down Expand Up @@ -143,7 +143,7 @@ for d in "$SRC_DIR"/*/; do
chmod +x $PKG_BIN_DIR/*

mkdir -p $PKG_ETC_DIR
cp -R ENV/* $PKK_ETC_DIR/
cp -R ENV/* $PKG_ETC_DIR/

mkdir -p $PKG_DESKTOP_DIR
for desktop in desktops/*; do
Expand Down Expand Up @@ -183,7 +183,7 @@ DOC_DIR="$PKG_DOC_DIR"/"$SUB_PKG"-2.3.3

install -d "$BIN_DIR" "$ETC_DIR" "$DOC_DIR"

install -m 644 "$SUB_PRGNAM"-main.ini "$ETC_DIR"/
install -m 644 "$SUB_PRGNAM"-main.ini "$ETC_DIR"/"$SUB_PRGNAM"-main.ini.new

install -m 755 "$SUB_PRGNAM" "$PKG_BIN_DIR"/

Expand Down
4 changes: 2 additions & 2 deletions src/main2/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class scmd : public QWidget {
buttonLayout->addWidget(createButton("GPU Info", "lspci | grep -i vga | kdialog --textbox - --geometry 700x500 --title 'GPU Info'"));

// Ethernet Interfaces
buttonLayout->addWidget(createButton("Ethernet Interfaces", "ifconfig 2>/dev/null || ip a | kdialog --textbox - --geometry 700x500 --title 'Ethernet Interfaces'"));
buttonLayout->addWidget(createButton("Ethernet Interfaces", "ip a | kdialog --textbox - --geometry 700x500 --title 'Ethernet Interfaces'"));

// Wireless Interfaces
buttonLayout->addWidget(createButton("Wireless Interfaces", "iwconfig 2>/dev/null || nmcli device show | kdialog --textbox - --geometry 700x500 --title 'Wireless Interfaces'"));
buttonLayout->addWidget(createButton("Wireless Interfaces", "nmcli device show | kdialog --textbox - --geometry 700x500 --title 'Wireless Interfaces'"));

// USB Devices
buttonLayout->addWidget(createButton("USB Devices", "lsusb | kdialog --textbox - --geometry 700x500 --title 'USB Devices'"));
Expand Down

0 comments on commit fc4aa7c

Please sign in to comment.