分页: 1 / 1
关于kate的问题
发表于 : 2014-09-03 23:50
由 bcsflilong
之前还没有遇到过
问题是这样的
我在终端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 (20.84 KiB) 查看 14225 次
或者

- 抓图11.png (17.85 KiB) 查看 14225 次
但是个别的kde 程序 是还可以打开的
例如Snapshot
另外注销后 就又好了
一旦执行sudo kate 就又不可以了

Re: 关于kate的问题
发表于 : 2014-09-03 23:54
由 bcsflilong
另外 我又拿 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.
Re: 关于kate的问题
发表于 : 2014-09-03 23:55
由 bcsflilong
本来好好的 解惑今天需要gtk 的一点东西
我就
sudo apt-get install libgtk2.0-dev
了
后来卸载了 问题还是没有解决
求大神 解决
Re: 关于kate的问题
发表于 : 2014-09-04 8:59
由 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
Re: 关于kate的问题
发表于 : 2014-09-04 23:02
由 bcsflilong
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 后 问题就好了 这是为什么呢
Re: 关于kate的问题
发表于 : 2014-09-04 23:32
由 poloshiao