Comments (2)
For convenience, here is the patch autokey.xdg.patch
that was in the Google Code issue:
diff -Naur a/src/lib/common.py b/src/lib/common.py
--- a/src/lib/common.py 2013-11-29 11:11:49.984403976 -0600
+++ b/src/lib/common.py 2013-11-29 11:12:05.587848645 -0600
@@ -16,9 +16,9 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import os.path, dbus.service
+import os, dbus.service
-CONFIG_DIR = os.path.expanduser("~/.config/autokey")
+CONFIG_DIR = os.environ.get('XDG_CONFIG_HOME', os.path.expanduser('~/.config')) + "/autokey"
LOCK_FILE = CONFIG_DIR + "/autokey.pid"
LOG_FILE = CONFIG_DIR + "/autokey.log"
MAX_LOG_SIZE = 5 * 1024 * 1024 # 5 megabytes
diff -Naur a/src/lib/configmanager.py b/src/lib/configmanager.py
--- a/src/lib/configmanager.py 2013-11-29 11:14:09.502066124 -0600
+++ b/src/lib/configmanager.py 2013-11-29 11:18:11.717820312 -0600
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-import os, os.path, shutil, logging, pickle, glob, threading, subprocess
+import os, shutil, logging, pickle, glob, threading, subprocess
import iomediator, interface, common, monitor
try:
@@ -26,7 +26,7 @@
_logger = logging.getLogger("config-manager")
-CONFIG_DIR = os.path.expanduser("~/.config/autokey")
+CONFIG_DIR = os.environ.get('XDG_CONFIG_HOME', os.path.expanduser('~/.config')) + "/autokey"
CONFIG_FILE = os.path.join(CONFIG_DIR, "autokey.json")
CONFIG_DEFAULT_FOLDER = os.path.join(CONFIG_DIR, "data")
CONFIG_FILE_BACKUP = CONFIG_FILE + '~'
from autokey-python2.
Thanks a lot. However, we do not currently have a developer to apply it.
You may want to check out autokey-py3. It's newer and does have a developer.
from autokey-python2.
Related Issues (20)
- Window Filter to exclude gnome terminal HOT 3
- Autokey writes intensively to log file, how to disable it? HOT 7
- NP_ENTER key missing & "<enter>" converted XK_KP_Enter HOT 1
- PayPal Donations link does not work HOT 1
- TXT file: line break instead of paragraph break HOT 3
- Request - Would like to have option for a custom default folder HOT 1
- autokey vs autokey-py3 HOT 2
- Fatal error starting AutoKey HOT 1
- Feature request: TextExpander Compatibility HOT 1
- Czech characters HOT 1
- Numpad Numbers HOT 1
- CAPSLOCK as a modifier HOT 3
- Is there a way to quick set the abbreviation? HOT 2
- simple date insertion fails HOT 1
- using <script> in a phrase freezes autokey and parts of the desktop HOT 1
- How to bring the dialog.list_menu window to the front HOT 1
- Why can't my phrases work? (My script does) HOT 1
- Pressing AutoKey phrase key combination reveals and freezes dock in Kubuntu 20.04 (KDE Plasma Desktop) HOT 2
- Cheat engine HOT 2
- Syahaja3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autokey-python2.