File tree Expand file tree Collapse file tree 4 files changed +30
-1
lines changed
Expand file tree Collapse file tree 4 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 1+ [Desktop Entry]
2+ Name =Fedit
3+ Comment =A Simple text editor with python tkinter
4+ Exec =/usr/bin/python3 /usr/share/fedit/fedit.py
5+ Icon =/usr/share/fedit/fedit.png
6+ Terminal =false
7+ Type =Application
8+ Categories =Utility;
9+ Name[en_IN]=Fedit
Original file line number Diff line number Diff line change @@ -124,4 +124,4 @@ def load_config_file():
124124root .mainloop ()
125125
126126## Exited
127- print ('Exiting' )
127+ print ('Exiting' )
Original file line number Diff line number Diff line change 1+ from setuptools import setup
2+ import os
3+ import sys
4+
5+ if (len (sys .argv )>= 1 and sys .argv [1 ] == 'install' ):
6+ os .system ('sudo rm -r /usr/share/fedit && sudo rm /usr/share/applications/fedit.desktop' )
7+ os .system ('sudo mkdir /usr/share/fedit' )
8+ setup (name = 'Fedit' ,
9+ version = '0.0.1.6' ,
10+ description = 'A simple text editor in python with tkinter' ,
11+ author = 'Pythonic456' ,
12+ data_files = [
13+ ('/usr/share/applications' , ['fedit.desktop' ]),
14+ ('/usr/share/fedit/' ,['fedit.py' ]),
15+ ('/usr/share/fedit/' ,['fedit.png' ]),
16+ ('/usr/share/fedit/' ,['tktools.py' ])
17+ ]
18+ )
19+ if (len (sys .argv )>= 1 and sys .argv [1 ] == 'remove' ):
20+ os .system ('sudo rm -r /usr/share/fedit && sudo rm /usr/share/applications/fedit.desktop' )
You can’t perform that action at this time.
0 commit comments