为XAMPP增加启动图标在Ubuntu12.04上(转载)

来源:互联网 发布:Java验证角谷猜想 编辑:程序博客网 时间:2024/05/16 17:43

Add menu entry for XAMPP in Ubuntu 12.04

You will need to install python-glade2 for the XAMPP control panel to work:

sudo apt-get install python-glade2

Then create a file called XAMPP-Control-Panel.desktop in /usr/share/applications/ and put the following in it:

[Desktop Entry]Version=1.0Encoding=UTF-8Name=XAMPP Control PanelGenericName=Control PanelComment=XAMPP Control PanelExec=gksudo "/opt/lampp/share/xampp-control-panel/xampp-control-panel"Icon=/opt/lampp/htdocs/favicon.icoStartupNotify=trueStartupWMClass="xampp-control-panel.py"Terminal=falseType=ApplicationCategories=Developer;

Alternatively do the following:

wget http://www.samclarke.com/wp-content/uploads/2012/04/XAMPP-Control-Panel.desktopsudo mv XAMPP-Control-Panel.desktop /usr/share/applications/XAMPP-Control-Panel.desktop

By default (in Ubuntu 12.04) the control panel will not be themed as it needs to run as root. To set the root users theme to your current theme, simply do:

sudo ln -s ~/.themes /root/.themessudo ln -s ~/.icons /root/.iconssudo ln -s ~/.fonts /root/.fonts
Posted inPHP | TaggedLinux, Ubuntu, XAMPP | 0 Comments