eiskaltdcpp / freedcpp

Successor of https://code.google.com/archive/p/freedcpp/
Other
3 stars 0 forks source link

Feature request: show shellscript output #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Firstly, thank you for the great work made in order to make linuxdcpp more
usable.

In Eiskaltdc there is a feature /sh, which allows user to print shellscript
output to main chat. I dislike eiskalt, but the feature is great.

Maybe there could be such a feature in FreeDC++?

Original issue reported on code.google.com by ahmad200...@gmail.com on 28 Oct 2009 at 4:36

GoogleCodeExporter commented 8 years ago
Sorry, I'd selected wrong issue type.

Original comment by ahmad200...@gmail.com on 28 Oct 2009 at 4:37

GoogleCodeExporter commented 8 years ago
You can use patched version of FreeDCpp
http://narod.ru/disk/14475831000/Leliksan_24.10.09_to_r22.patch.html. Apply this
patch to r22 and you can use /exec to execute shell commands

Original comment by lelik...@gmail.com on 30 Oct 2009 at 1:24

GoogleCodeExporter commented 8 years ago
Okay, thank you!

Original comment by ahmad200...@gmail.com on 30 Oct 2009 at 3:05

GoogleCodeExporter commented 8 years ago
open file src linux\hub.cc
search line
else if (command == _("back"))
past
//rhythmbox
       else if (command == _("rhythmbox") || command == _("rh")){
                 FILE *fp;
                 char line[130];
                 fp = popen("rhythmbox-client --print-playing","r");
                 fgets(line,sizeof line,fp); 
                 pclose(fp); 
                 hub->addStatusMessage_gui(_(line));
        }  

       //audacious
       else if (command == _("audacious") || command == _("aud")){
                 FILE *fp;
                 char line[130];
                 fp = popen("audtool --current-song","r");
                 fgets(line,sizeof line,fp); 
                 pclose(fp); 
                 hub->addStatusMessage_gui(_(line));
        }  

                //amarok
       else if (command == _("amarok") || command == _("amar")){
                 FILE *fp;
                 char line[130];
                 fp = popen("dcop amarok player nowPlaying","r");
                 fgets(line,sizeof line,fp); 
                 pclose(fp); 
                 hub->addStatusMessage_gui(_(line));
        }  

                //kaffeine
       else if (command == _("kaffeine") || command == _("kaff")){
                 FILE *fp;
                 char line[130];
                 fp = popen("dcop kaffeine KaffeineIface getFileName","r");
                 fgets(line,sizeof line,fp); 
                 pclose(fp); 
                 hub->addStatusMessage_gui(_(line));
        }        
compile rezult do command Playing Now 

Original comment by peh...@gmail.com on 18 Jan 2010 at 8:16

GoogleCodeExporter commented 8 years ago
See Issue 17: Shell Output.

Original comment by troll.freedcpp@gmail.com on 21 Jan 2010 at 8:09