关于kate的问题

各种窗口管理器和美化相关
回复
头像
bcsflilong
帖子: 382
注册时间: 2010-07-24 15:18
系统: Arch Linux x86_x86_6
来自: 吉林省长春市
联系:

关于kate的问题

#1

帖子 bcsflilong » 2014-09-03 23:50

之前还没有遇到过
问题是这样的

我在终端sudo 打开 kate 后 kde相关的程序 就不能再打开了

sudo kate 时 输出

代码: 全选

tone@ubuntu:~$ sudo kate 1
Password: 
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Bus::open: Connect ibus failed! 
IBusInputContext::createInputContext: no connection to ibus-daemon


之后 在点击任何kde 自带的软件图标就都不可以了 会提示
抓图10.png
抓图10.png (20.84 KiB) 查看 13966 次
或者
抓图11.png
抓图11.png (17.85 KiB) 查看 13966 次
但是个别的kde 程序 是还可以打开的


例如Snapshot


另外注销后 就又好了


一旦执行sudo kate 就又不可以了 :em20
life's a struggle
头像
bcsflilong
帖子: 382
注册时间: 2010-07-24 15:18
系统: Arch Linux x86_x86_6
来自: 吉林省长春市
联系:

Re: 关于kate的问题

#2

帖子 bcsflilong » 2014-09-03 23:54

另外 我又拿 amarok 实验了一下

效果一样


我干就凡是sudo 打开的软件 只要读取了或者写了 /var/tmp/ 下的那几个文件夹 就或出现 问题

代码: 全选

Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
life's a struggle
头像
bcsflilong
帖子: 382
注册时间: 2010-07-24 15:18
系统: Arch Linux x86_x86_6
来自: 吉林省长春市
联系:

Re: 关于kate的问题

#3

帖子 bcsflilong » 2014-09-03 23:55

本来好好的 解惑今天需要gtk 的一点东西

我就
sudo apt-get install libgtk2.0-dev


后来卸载了 问题还是没有解决


求大神 解决
life's a struggle
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 关于kate的问题

#4

帖子 poloshiao » 2014-09-04 8:59

sudo kate 1
Password:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Bus::open: Connect ibus failed!
IBusInputContext::createInputContext: no connection to ibus-daemon
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
這兩個錯誤訊息都是說
不是 root 權限 # 見 3.
加 sudo 反而出現 錯誤訊息
不要加 sudo 看看
sudo kate 时 输出
https://help.ubuntu.com/community/RootS ... hical_sudo
1. kdesudo kate 文字檔案 # 見 4-2
2. 如果你是 kubuntu 14.04 需要先安裝 kdesudo (來自 universe)

補充

在 kubuntu 非 root 使用者登入
3. 要打開的文件檔案 使用者自己有權限時 (例如 家目錄內的檔案)
3-1. 文字指令 文件檔案 vim ~/myfile.txt
3-2. 圖形指令 文件檔案 kate ~/myfile.txt
4. 要打開的文件檔案 使用者自己沒有權限時 (例如 家目錄外的檔案) 需要 root 權限
4-1. sudo 文字指令 文件檔案 例如 sudo vim /etc/myfile.txt
4-2. kdesudo 圖形指令 文件檔案 kdesudo kate /etc/myfile.txt
头像
bcsflilong
帖子: 382
注册时间: 2010-07-24 15:18
系统: Arch Linux x86_x86_6
来自: 吉林省长春市
联系:

Re: 关于kate的问题

#5

帖子 bcsflilong » 2014-09-04 23:02

poloshiao 写了:
sudo kate 1
Password:
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
kdeinit4: Shutting down running client.
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
kbuildsycoca4 running...
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Bus::open: Connect ibus failed!
IBusInputContext::createInputContext: no connection to ibus-daemon
Error: "/var/tmp/kdecache-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/ksocket-tone" is owned by uid 1000 instead of uid 0.
Error: "/tmp/kde-tone" is owned by uid 1000 instead of uid 0.
這兩個錯誤訊息都是說
不是 root 權限 # 見 3.
加 sudo 反而出現 錯誤訊息
不要加 sudo 看看
sudo kate 时 输出
https://help.ubuntu.com/community/RootS ... hical_sudo
1. kdesudo kate 文字檔案 # 見 4-2
2. 如果你是 kubuntu 14.04 需要先安裝 kdesudo (來自 universe)

補充

在 kubuntu 非 root 使用者登入
3. 要打開的文件檔案 使用者自己有權限時 (例如 家目錄內的檔案)
3-1. 文字指令 文件檔案 vim ~/myfile.txt
3-2. 圖形指令 文件檔案 kate ~/myfile.txt
4. 要打開的文件檔案 使用者自己沒有權限時 (例如 家目錄外的檔案) 需要 root 權限
4-1. sudo 文字指令 文件檔案 例如 sudo vim /etc/myfile.txt
4-2. kdesudo 圖形指令 文件檔案 kdesudo kate /etc/myfile.txt
我在打开非家目录内的文件时 必须要用sudo kate 呀

例如/etc/init 内的文件


之前是没有这个问题的, 直接运行 sudo kate /etc/init/mysql/my.ini 这样就是可以的 不会导致问题。


昨天突然就不行了 只要这么操作 就会出现后续的错误


另外 我发现 出现问题后运行 kdeinit4 后 问题就好了 这是为什么呢
life's a struggle
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 关于kate的问题

#6

帖子 poloshiao » 2014-09-04 23:32

回复