最近因为要支持其它平台, 但那个平台的电源管理做的不完全, 电池的状态不能通过 upower
获取到, 只能通过读文件来得到.
开始的时候是通过 patch
的方式来处理这个问题的, 就是每次在编译那个平台的程序时都会先打上这个 patch
.
平常经常会有在终端上使用代理的需求, 然而连接 VPN
又太麻烦, 用完之后还需要关掉, 所以就发现了 proxychains-ng 这个工具, 具体介绍见它官网.
如果在使用 Deepin 2015.2 时遇到此问题: 点击窗口内容无法切换窗口,就是只能通过点击窗口标题才能切换窗口,麻烦执行下下面两个命令,收集下日志。
$ dbus-send --print-reply --dest=com.deepin.wm /com/deepin/wm com.deepin.wm.ToggleDebug
$ watch -n1 "xdotool key XF86LogGrabInfo"
第一条命令会打开窗管的debug模式,第二条命令是查询当前的鼠标有没有被捕获。 执行命令后,麻烦操作下,如点击下窗口内容(不能切换的情况),点击下窗口标题(可以切换的情况),然后把 /var/log/Xorg.0.log 和 /tmp 下的一个以 mutter- 开头的文件一起上传下,谢谢!
- 提供下载所有更新包的接口,见 cl 13403,这个 cl 里的其它改变去掉
- 在 lastore-daemon 中提供一个属性来表示所有更新包是否已下载的状态,然后在定时任务中去更新这个属性
- 在 lastore-session-helper 发送更新通知之前,先去获取 2 中属性的值,如果所有更新包都已下载,则不发送通知
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
地址1:https://www.baidupcs.com/rest/2.0/pcs/stream?method=download&access_token=21.3cf1499a62cb4cf59b671a02273b9a38.2592000.1479710451.3994319072-2172157&path=/apps/zqqian123/%E9%85%B7%E6%AF%94%E9%AD%94%E6%96%B9IWORK10%E6%97%97%E8%88%B0%E6%9C%AC%EF%BC%88I15-TC%EF%BC%89%E5%8F%8C%E7%B3%BB%E7%BB%9F%E5%88%B7%E6%9C%BA%E8%BD%AF%E4%BB%B6%E4%BB%A5%E5%8F%8A%E6%95%99%E7%A8%8B.rar | |
地址2:https://c.pcs.baidu.com/rest/2.0/pcs/file?method=download&access_token=21.f6cb7a24b3fdf06a6419d7f3eca644ff.2592000.1479730806.3994319072-2172157&path=/apps/zqqian123/%E9%85%B7%E6%AF%94%E9%AD%94%E6%96%B9IWORK10%E6%97%97%E8%88%B0%E6%9C%AC%EF%BC%88I15-TC%EF%BC%89%E5%8F%8C%E7%B3%BB%E7%BB%9F%E5%88%B7%E6%9C%BA%E8%BD%AF%E4%BB%B6%E4%BB%A5%E5%8F%8A%E6%95%99%E7%A8%8B.rar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################## | |
# Sample client-side OpenVPN 2.0 config file # | |
# for connecting to multi-client server. # | |
# # | |
# This configuration can be used by multiple # | |
# clients, however each client should have # | |
# its own cert and key files. # | |
# # | |
# On Windows, you might want to rename this # | |
# file so it has a .ovpn extension # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <libudev.h> | |
#define MAX_KBD_DEVICES 10 | |
const char** detect_kbd_devices() | |
{ | |
const char **devnodes = calloc(MAX_KBD_DEVICES, sizeof(char*)); | |
struct udev *udev; | |
struct udev_enumerate *enumerate; | |
struct udev_list_entry *devices, *dev_list_entry; | |
struct udev_device *dev; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/configure.ac b/configure.ac | |
index 8b29119..6400aaf 100644 | |
--- a/configure.ac | |
+++ b/configure.ac | |
@@ -23,7 +23,7 @@ AC_SUBST(lt_major) | |
AC_SUBST(lt_revision) | |
AC_SUBST(lt_age) | |
-all_drivers="upekts upektc upeksonly vcom5s uru4000 fdu2000 aes1610 aes1660 aes2501 aes2550 aes2660 aes3500 aes4000 vfs101 vfs301 vfs5011 upektc_img etes603 vfs0050" | |
+all_drivers="upekts upektc upeksonly vcom5s uru4000 fdu2000 aes1610 aes1660 aes2501 aes2550 aes2660 aes3500 aes4000 vfs101 vfs301 vfs5011 upektc_img etes603 etss801u vfs0050" |