You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
481 B
16 lines
481 B
#!/bin/zsh |
|
DESKTOP_BROWSING=1 |
|
|
|
# Check if |
|
KONQUEROR_INSTANCE=$(qdbus | grep -m1 konqueror) |
|
|
|
if (( $? == 0 )); then; |
|
# trim whitespaces |
|
KONQ_TRIMMED_INSTANCE=$(echo $KONQUEROR_INSTANCE | xargs echo) |
|
# echo $KONQ_TRIMMED_INSTANCE has been found |
|
qdbus $KONQ_TRIMMED_INSTANCE /konqueror/MainWindow_1 org.kde.Konqueror.MainWindow.newTab $1 False; |
|
else; |
|
echo no previous instance found; opening new one |
|
konqueror $1; |
|
fi; |
|
qdbus org.kde.KWin /KWin org.kde.KWin.setCurrentDesktop 1
|
|
|