Example #1
0
        public void OnEditPHPIni(object o, EventArgs a)
        {
            string path = PHPCommands.getPHPIniPath();

            if (path != "")
            {
                string command = "gksudo";
                string args    = "gedit " + path;
                PHPCommands.executeCommand(command, args);
            }
        }
Example #2
0
        static void OnOpenDirClick(object o, EventArgs a)
        {
            GConf.Client client  = new GConf.Client();
            string       command = "nautilus";
            string       args    = (string)client.Get(LampManager.SettingsPanel.GCONF_APP_PATH + "/web_directory");

            if (args == "")
            {
                args = "/var/www/";
            }
            PHPCommands.executeCommand(command, args);
        }
Example #3
0
        static void OnLocalhostClick(object o, EventArgs a)
        {
            GConf.Client client  = new GConf.Client();
            string       args    = "http://localhost/";
            string       command = (string)client.Get(LampManager.SettingsPanel.GCONF_APP_PATH + "/browser");

            if (command == "")
            {
                command = args;
                args    = "";
            }
            PHPCommands.executeCommand(command, args);
        }