Permalink
Browse files

Fix:Minor

  • Loading branch information...
abilng committed Feb 28, 2012
1 parent 68f29f4 commit 7bcc159f1b89bae5b6dbf9337b69b7844d5b2206
Showing with 47 additions and 26 deletions.
  1. +1 −1 README
  2. +32 −0 gnome-baxc
  3. +6 −6 install.sh
  4. 0 { → src}/Gnome-Baxc.desktop
  5. +2 −2 baxc → src/baxc.py
  6. +1 −10 { → src}/gui.py
  7. +5 −7 { → src}/imagepro.py
  8. 0 { → src}/xmlmsg.py
View
2 README
@@ -47,7 +47,7 @@ GNOME 2:" gconftool -s '/desktop/gnome/background/picture_filename' 'path\to\bac
------------------------------------------------------------------------------------------------------------------------
-Gnome BAXC 1.01 also include graphical user interface.BAXC's GUI uses QT4 (PYQT4).
+Gnome BAXC 2.00 also include graphical user interface.BAXC's GUI uses QT4 (PYQT4).
Qt is license under the terms of the GNU Lesser General Public License (LGPL) version 2.1
PyQt is available under the following licenses.
* GNU General Public License v2
View
@@ -0,0 +1,32 @@
+#! /bin/bash
+#
+####################################################################################
+# BAXC--BAckground Xml Creater
+#-----------------------------------------------------------------------------------
+#
+# Generates xml code for background slide show of gnome.
+#
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License along
+# with this program; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+#Or see <http://www.gnu.org/licenses/>.
+#
+#Authors: Abil N George
+####################################################################################
+
+#BAXC_HOME=src/
+BAXC_HOME=/usr/share/gnome-baxc/
+
+/usr/bin/env python ${BAXC_HOME}/baxc.py "$@"
+
View
@@ -1,12 +1,12 @@
#! /bin/sh
#
#
-install --mode=755 -D baxc /usr/share/gnome-baxc/gnome-baxc
-install --mode=755 -D gui.py /usr/share/gnome-baxc/gui.py
-install --mode=755 -D imagepro.py /usr/share/gnome-baxc/imagepro.py
-install --mode=755 -D xmlmsg.py /usr/share/gnome-baxc/xmlmsg.py
+install --mode=755 -D src/baxc.py /usr/share/gnome-baxc/baxc.py
+install --mode=755 -D src/gui.py /usr/share/gnome-baxc/gui.py
+install --mode=755 -D src/imagepro.py /usr/share/gnome-baxc/imagepro.py
+install --mode=755 -D src/xmlmsg.py /usr/share/gnome-baxc/xmlmsg.py
install --mode=755 -D gnome-baxc.svg /usr/share/icons/hicolor/scalable/apps/gnome-baxc.svg
-install -D Gnome-Baxc.desktop /usr/share/applications/Gnome-Baxc.desktop
-cp -s /usr/share/gnome-baxc/gnome-baxc /usr/bin/gnome-baxc
+install -D src/Gnome-Baxc.desktop /usr/share/applications/Gnome-Baxc.desktop
+install --mode=755 -D gnome-baxc /usr/bin/gnome-baxc
xdg-icon-resource forceupdate --theme hicolor &>/dev/null
update-desktop-database -q
File renamed without changes.
View
@@ -1,5 +1,5 @@
-#!/usr/bin/env python3.2
-#-*-python-3.2-
+#!/usr/bin/env python2.7
+#-*-python-2.7-
####################################################################################
# BAXC--BAckground Xml Creater
#-----------------------------------------------------------------------------------
View
@@ -1,13 +1,4 @@
# -*- coding: utf-8 -*-
-
-# Form implementation generated from reading ui file 'untitled.ui'
-#
-# Created: Sat Dec 10 20:39:18 2011
-# by: PyQt4 UI code generator 4.8.6
-#
-# WARNING! All changes made in this file will be lost!
-
-
import xmlmsg
from PyQt4 import QtCore, QtGui
from PyQt4.QtGui import QFileDialog
@@ -50,7 +41,7 @@ def setupUi(self,path):
self.pushButton_13 = QtGui.QPushButton(self.splitter_2)
self.pushButton_13.setText(QtGui.QApplication.translate("MainWindow", "Load images", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_15 = QtGui.QPushButton(self.splitter_2)
- self.pushButton_15.setText(QtGui.QApplication.translate("MainWindow", "Create XML", None, QtGui.QApplication.UnicodeUTF8))
+ self.pushButton_15.setText(QtGui.QApplication.translate("MainWindow", "Set Background", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton_14 = QtGui.QPushButton(self.splitter_2)
self.pushButton_14.setText(QtGui.QApplication.translate("MainWindow", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
self.gridLayout_8.addWidget(self.splitter_2, 2, 1, 1, 1)
@@ -18,13 +18,13 @@ def load(outfile):
def close(outfile):
if image.count==0:
os.remove(outfile)
- print ('No jpg image on that dir(or u said \'not to add\')')
+# print ('No jpg image on that dir(or u said \'not to add\')')
else:
load(outfile)
- print ('\n added'+str(image.count)+'image(s) \noutput file:'+outfile+'\n')
- print ('load(ed) file by \n')
- print ('GNOME 3:\" GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri \'file://'+outfile+'\' \"\n')
- print ('GNOME 2:\" gconftool -s \'/desktop/gnome/background/picture_filename\' \''+outfile+'\' -t string \"\n ')
+# print ('\n added'+str(image.count)+'image(s) \noutput file:'+outfile+'\n')
+# print ('load(ed) file by \n')
+# print ('GNOME 3:\" GSETTINGS_BACKEND=dconf gsettings set org.gnome.desktop.background picture-uri \'file://'+outfile+'\' \"\n')
+# print ('GNOME 2:\" gconftool -s \'/desktop/gnome/background/picture_filename\' \''+outfile+'\' -t string \"\n ')
@@ -70,5 +70,3 @@ def askadd(i,action,path,ofile,x):
elif ask_ok('Add '+i+' ?:'):
add(i)
-
-
File renamed without changes.

0 comments on commit 7bcc159

Please sign in to comment.