Giter Club home page Giter Club logo

yakuake-session's People

Contributors

acidbourbon avatar alexivkin avatar ant1ucem avatar guraltsev avatar jacobtey avatar jesustorresdev avatar nickmoeck avatar vwxyzjn avatar zardoz89 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yakuake-session's Issues

yakuake-session fails (again) with fish shell

This bug (#16) is happening yet :

Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
~  source '/tmp/yakuake-session-KyDy1hmH65'
/tmp/yakuake-session-KyDy1hmH65 (line 5): Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
cd /home/luis && true
^
from sourcing file /tmp/yakuake-session-KyDy1hmH65
called on standard input

source: Error while reading file '/tmp/yakuake-session-KyDy1hmH65'

cat /tmp/yakuake-session-KyDy1hmH65

clear
rm -f '/tmp/yakuake-session-KyDy1hmH65' 2>/dev/null
true
if [ -z "$FISH_VERSION" ]; then
  cd /home/luis && true
else
  cd /home/luis; and true
fi

More info :
Commit 5f83934
Fish-> fish --version
fish, version 2.7.1
kUbuntu 18.04.1

Set tab title

Is it possible to set the title (shown in the tab bar) of a created tab?

user sessions

Hello,
when yakuake is started with my user, regular-user.

i switch my session to root

sudo su

after that i run:

yakuake-session -t "Test title"

Two instances of yakuake are started.

regular-user   23421  1.3  0.4 991648 74264 ?        Sl   10:25   0:31 yakuake
root     27520  3.6  0.2 512936 43900 pts/29   Sl   11:03   0:00 yakuake

Second instance is started by root user. I expected that one instance run with 2 tabs

Add multilingual support

I'm spanish, can you add multilingual names in ServiceMenus?

Just add in konsolehere.desktop:

...
Name=Open Terminal Here
Name[es]=Abrir Terminal aquí
Name[es_ES]=Abrir Terminal aquí
...

In yakuakehere.desktop

...
Name=Open Terminal Here
Name[es]=Abrir Yakuake aquí
Name[es_ES]=Abrir Yakuake aquí
...

With that we'll see "Abrir Yakuake aquí" in any spanish desktop, in english in all rest.

Is Bash assumed as the default shell?

I use the Fish shell and the output I get from any yakuake-session call is the following:

 . '/tmp/yakuake-session-Z3JdLxrNNX'
[14:13:30]-[~]                                                                                                                                                                                              
[hp6-clima-10.ictp.it]->   . '/tmp/yakuake-session-Z3JdLxrNNX'
Unsupported use of '&&'. In fish, please use 'COMMAND; and COMMAND'.
/tmp/yakuake-session-Z3JdLxrNNX (line 2): true && cd /afs/ictp.it/home/a/afantini && exec ssh_marconi 
                                                ^
from sourcing file /tmp/yakuake-session-Z3JdLxrNNX
        called on line 151 of file /usr/share/fish/config.fish

in function '.'
        called on standard input

source: Error while reading file '/tmp/yakuake-session-Z3JdLxrNNX'

This does not happen if I set Bash as the default shell to start in the Yakuake profile.

Can't use sudo commands

Whenever I try to run a command with sudo, the command doesn't run and times out before I can enter my password sudo: no password was provided. I don't have the same problem when I use konsole -e

yakuake-session -w /tmp doesn't work

yakuake-session -w /tmp doesn't work

That's the problem. Unfortunatelly I'm not good with bash to repair it. I'm using kUbuntu 12.10 at the moment.

-e only works in the simplest of scenarios

The handling of the -e option is currently rather deficient.

  • it does not support built-in bash commands, so you cannot use source foo fooArg as the argument to -e
  • it doesn't stop interpreting options after -e nor does it support --, so it's impossible to pass a command that will itself take options; in particular it is impossible to pass bash -c -i -- source foo fooArg as the command
  • quoting the whole command doesn't work either

Plasma 5.8.2 - yakuake-session doesn't focus a new opened window

Running yakuake-session from konsole or by launching directly from dolphin (Shift+F4) does not shows the yakuake window, although it was opened in the background.
The error message is:
$ yakuake-session
Cannot find '.Get' in object /yakuake/MainWindow_1 at org.kde.yakuake
[2]+ Done yakuake

Tested on openSUSE: Leap 42.2 with KDE Plasma 5.8.2

Not working in 3.0.4

The latest version of yakuake refuses to execute runCommand over DBUS citing security issues, and suggests recompiling itself. Any way to solve it without having to recompile yakuake?

execute command in existing session?

Hi,

Thanks for the really nice kit!

I would like to be able to send commands and set wd into an existing yakuake session. Is this possible or could be made possible? Whatever I have tried does open a new session.

Thanks.

Working directory can't be canged

I'm trying to open Yakuake tab with desired working directory.
I'm running
yakuake-session -w /
however, new tab is always opened in home directory.

Improve README.md readability

This is just a suggestion to make your README more beautiful using Markdown Syntax.

yakuake-session - A script to create new yakuake sessions from command-line.  
Copyright 2010-2013 Jesús Torres <[email protected]>

## What is yakuake-session?

yakuake-session is a Bash script that allows to create new sessions in Yakuake
terminal emulator from command line. I made it mainly to get a better
integration of Yakuake in KDE desktop environment. For example, thanks to it
Yakuake can replace Konsole in "Open terminal here" action in Dolphin or we
can setup a menu similar to Konsole Profiles widget but using Yakuake instead
of Konsole.

## Installation

Clone this repository

```
git clone https://github.com/aplatanado/yakuake-session.git
```

The yakuake-session script should to be copied to `~/bin`, `/usr/bin` or some other directory in `$PATH` variable, if we want to avoid indicating the
path of the script when invoked.

```
sudo cp yakuake-session /usr/bin
```

## Usage

To invoke yakuake-session:

```
$ yakuake-session
```

Without arguments, yakuake-session creates a new session in the currently
running Yakuake terminal emulator. 

The option `-e` allows to indicate a command to execute in the new session.

```
$ yakuake-session -e ls
```

The argument `-t` sets the title for the new tab.

```
$ yakuake-session -t "Title"
```

The session working directory is changed to the directory where yakuake-session
was called, before execute the command. If we want to launch the command from
user's home directory then we would use the option `-h`.

```
$ yakuake-session -h -e ls
```

If the command requires some arguments, they are taken from non-option
arguments passed to yakuake-session. That means that if some arguments for the
command begin with `-`, they must passed to yakuake-session after `--`.

```
$ yakuake-session -h -e ssh -- -X [email protected]
```

Another useful option is `--workdir`. It allows to change the working directory
before execute the command.

```
$ yakuake-session --workdir /tmp -e ls
```

yakuake-session has many other options that were shown in help.

```
$ yakuake-session --help

Usage: yakuake-session [options] [args]

Options:
  --help                    Show help about options.
  -h, --homedir             Set the working directory of the new tab to the user's home.
  -w, --workdir <dir>       Set the working directory of the new tab to 'dir'
  --hold, --noclose         Do not close the session automatically when the command ends.
  -p <property=value>       Change the value of a profile property (only for KDE 4).
  -e <cmd>                  Command to execute.
  -q                        Do not open yakuake window.
  -t <title>                Set the title of the new tab

Arguments:
  args                      Arguments passed to command.
```

## Action in Dolphin

Dolphin provides the action "Open terminal here" that opens a Konsole terminal
emulator in the specified folder. This behavior can be changed to use Yakuake
instead of Konsole with: 

```
cp ServiceMenus/konsolehere.desktop ~/.kde/share/kde4/services/ServiceMenus/
```

If we do not want to change the behavior of "Open terminal here", then cp `ServiceMenus/yakuakehere.desktop` to add the new action "Open yakuake here" to Dolphin.

```
cp ServiceMenus/yakuakehere.desktop ~/.kde/share/kde4/services/ServiceMenus/ 
```

## Quick Access Menu

Konsole Profiles is a Plasma widget that allows to open a new terminal window,
configured according to a select profile, and automatically execute a command
in it. We can get something similar but for Yakuake using the QuickAccess
widget. We only have to make a directory and setup a QuickAccess widget
instance to use it as origin (I also like to disable the browsing). Then we
add some "Link to Application" to that directory, such that each one use
yakuake-session to create a new Yakuake session and to execute the command
that we want.

The file `examples/[email protected]` contains an example that launch 
a ssh client in a new Yakuake session.


-- Jesús Torres <[email protected]>

yakuake-session - A script to create new yakuake sessions from command-line.
Copyright 2010-2013 Jesús Torres [email protected]

What is yakuake-session?

yakuake-session is a Bash script that allows to create new sessions in Yakuake terminal emulator from command line. I made it mainly to get a better integration of Yakuake in KDE desktop environment. For example, thanks to it
Yakuake can replace Konsole in "Open terminal here" action in Dolphin or we can setup a menu similar to Konsole Profiles widget but using Yakuake instead of Konsole.

Installation

Clone this repository

git clone https://github.com/aplatanado/yakuake-session.git

The yakuake-session script should to be copied to ~/bin, /usr/bin or some other directory in $PATH variable, if we want to avoid indicating the path of the script when invoked.

sudo cp yakuake-session /usr/bin

Usage

To invoke yakuake-session:

$ yakuake-session

Without arguments, yakuake-session creates a new session in the currently running Yakuake terminal emulator.

The option -e allows to indicate a command to execute in the new session.

$ yakuake-session -e ls

The argument -t sets the title for the new tab.

$ yakuake-session -t "Title"

The session working directory is changed to the directory where yakuake-session was called, before execute the command. If we want to launch the command from user's home directory then we would use the option -h.

$ yakuake-session -h -e ls

If the command requires some arguments, they are taken from non-option arguments passed to yakuake-session. That means that if some arguments for the command begin with -, they must passed to yakuake-session after --.

$ yakuake-session -h -e ssh -- -X [email protected]

Another useful option is --workdir. It allows to change the working directory before execute the command.

$ yakuake-session --workdir /tmp -e ls

yakuake-session has many other options that were shown in help.

$ yakuake-session --help

Usage: yakuake-session [options] [args]

Options:
  --help                    Show help about options.
  -h, --homedir             Set the working directory of the new tab to the user's home.
  -w, --workdir <dir>       Set the working directory of the new tab to 'dir'
  --hold, --noclose         Do not close the session automatically when the command ends.
  -p <property=value>       Change the value of a profile property (only for KDE 4).
  -e <cmd>                  Command to execute.
  -q                        Do not open yakuake window.
  -t <title>                Set the title of the new tab

Arguments:
  args                      Arguments passed to command.

Action in Dolphin

Dolphin provides the action "Open terminal here" that opens a Konsole terminal emulator in the specified folder. This behavior can be changed to use Yakuake instead of Konsole with:

cp ServiceMenus/konsolehere.desktop ~/.kde/share/kde4/services/ServiceMenus/

If we do not want to change the behavior of "Open terminal here", then cp ServiceMenus/yakuakehere.desktop to add the new action "Open yakuake here" to Dolphin.

cp ServiceMenus/yakuakehere.desktop ~/.kde/share/kde4/services/ServiceMenus/ 

Quick Access Menu

Konsole Profiles is a Plasma widget that allows to open a new terminal window, configured according to a select profile, and automatically execute a command in it. We can get something similar but for Yakuake using the QuickAccess widget. We only have to make a directory and setup a QuickAccess widget instance to use it as origin (I also like to disable the browsing). Then we add some "Link to Application" to that directory, such that each one use yakuake-session to create a new Yakuake session and to execute the command that we want.

The file examples/[email protected] contains an example that launch a ssh client in a new Yakuake session.

-- Jesús Torres [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.