Closed wildeyes closed 10 years ago
I'd suggest to add something like the "cp -t" option that can take the target directory as an argument. Storing a default directory in a configuration file is far too much. Think of dex as a very simple tool like "ls" or "od". There'll never be a configuration file.
Gotcha. Then I suggest to add to the wiki an alias\function that does that for shell, for people to quickly copy when installing le dex. I bet it's a very common, needed functionality. I don't place desktop files anywhere except the autostart folder in config, and I play with the autostart frequently using dex.
I would have provided such function, if I know how to properly write one :) If you can add such a function, that would be great :) Anyway, my shell-fu should be strong enough to handle such a mission and issue a pull request in the coming weeks.
You can create an alias like this: alias da='dex -t ~/.config/autostart -c'
da /usr/bin/skype # will create a DesktopEntry in the autostart directory
Tell Dex I would like all my
*.desktop
files in~/.config/autostart/
so the next time Idex -c $(which xbindkeys)
I wouldn't have to tell dex where the file should go ( I keep forgetting ! )