kde

docker 镜像中文支持问题

走远了吗. 提交于 2020-02-26 11:00:12
* Docker解决中文乱码实践 问题 在公司使用dockers镜像中遇到一个问题,同事的python代码中使用 xx_str.encode('utf-8')在包含中文路径时报出异常,但在开发环境中没有遇到。 ps. 在开发中不要使用中文传递参数 排查步骤 # 分别在开发环境和docker容器中执行 locale -a # 可以查看到docker环境仅包含posix编码,开发环境包括utf-8 # 调用python命令行执行: sys.getdefaultencoding() # 也可以发现两者的区别 尝试解决 由于同事无法直接提供Dockerfile,只能在他的镜像基础上做修改, 制作如下的Dockerfile FROM XXX # 同事的镜像名 RUN yum install kde-l10n-Chinese -y &&\ yum reinstall glibc-common -y &&\ localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 ENV LANG zh_CN.UTF-8 WORKDIR /home/xxxx # 指定原先的工作路径 COPY run.sh . #新增一个启动脚本 EXPOSE 8080 ENTRYPOINT ["/bin/bash","run.sh"] 安装步骤 docker build -t xxx #创建新镜像

QT phonon在windows下的编译( 转)

吃可爱长大的小学妹 提交于 2020-02-16 11:41:06
最近需要用windows下的qt写一些界 面,里面用到qt的多媒体框架phonon,我用的是qt- 4.5.3。从官网上下载安装的qt本身并没有把phonon集成进去,只是提供了源码。自己在编译phonon时遇到一些问题,网上相关讨论不少,但很 少是关于windows下phonon的编译的,所以我在这把我编译phonon的过程系统的描述下,希 望能帮到大家。 假设qt的安装目录是xx 一、编译安装phonon 1 . 此时用xx\qt\src\phonon\phonon.pro工程,编辑phonon.pro PHONON_DIR=../3rdparty/phonon/phonon 2 . 编译出debug和release版本,此时会在xx\qt\lib下生成 libphonon4.a,libphonond4.a,phonon4.dll,phonond4.dll,在xx\qt\bin下会生成 phonon4.dll,phonond4.dll。 (注意:在编译某些qt自带的demo和example时,需要的库名字是libphonon.a,你只要改下名 字就行了,把上述提到的4个文件中的4去掉) //注最好是复制一份。 二、编译生成phonon_backend (xx\qt\plugins) 1 . 去KDE svn上下载kdewin32 package http://websvn

Arch Linux安装KDE桌面环境

半城伤御伤魂 提交于 2020-02-09 18:11:27
安装KDE 安装xorg pacman -S xorg 安装plasma桌面和kde应用包 pacman -S plasma kde-applications systemctl enable sddm 后续完善软件 声音 pacman -S alsa-utils 字体 pacman -S ttf-dejavu wqy-zenhei wqy-microhei 网络 pacman -S networkmanager net-tools systemctl enable NetworkManager systemctl enable dhcpcd 中文输入法 pacman -S fcitx fcitx-im fcitx-rime kcm-fcitx vim /home/ username /.pam_environment 内容: GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx 来源: CSDN 作者: 珍惜最爱的你 链接: https://blog.csdn.net/q479261154/article/details/104221095

centos + kde 禁用KDE wallet

て烟熏妆下的殇ゞ 提交于 2020-02-07 10:34:05
alt+f2(也就是开krunner) 输入wallet,选kde wallet(带configuration那个) 去掉enable the kde wallet subsystem前面的勾 任务完成,但个人发现,这样操作后,还有一些莫名的问题,比如联网的问题,又比如Google浏览器访问的问题。总之,这个问题,我搞的不是很明白。 来源: CSDN 作者: qq1225095213 链接: https://blog.csdn.net/qq_37769323/article/details/104108980

KDE Taskbar Progress

痞子三分冷 提交于 2020-01-31 05:58:07
问题 I am trying to show a progress in the taskbar of the plasma desktop using the KDE Frameworks. In short, it want to do the same thing as dolphin, when it copies files: I'm kinda stuck, because I don't even know where to get started. The only thing I found that could be useful is KStatusBarJobTracker, but I don't know how to use it. I could not find any tutorials or examples how to do this. 回答1: Right, so as it turns out you are right, there is not currently a tutorial for this. This

Permanently authorize Subversion to open KWallet

老子叫甜甜 提交于 2020-01-17 07:27:28
问题 This question is a followup to another one I asked 6 months ago (Integrating SVN with kwallet) but it is different now. I manage to make SVN integrate with KWallet, but now, everytime I do an svn command it popups asking for authorization to access the KWallet. Is it possible to five a permanent authorization? So that it doesn't ask me to open the wallet? 回答1: After sometime I found the solution. Just need to add a Subversion entry on the default wallet 来源: https://stackoverflow.com/questions

Qt application in kiosk mode

别来无恙 提交于 2020-01-13 20:44:27
问题 I need to start my qt application on desktop under windows and linux in kiosk mode. May I do it, using qt or special system calls? (not adjusting operation system) 回答1: I think you could look into the KDE iosk framework: http://techbase.kde.org/KDE_System_Administration/Kiosk/Introduction This is basically written in Qt, and should be working both on Linux and Windows. If you face any troubles, you can at least take their code as a good and robust base. Here you can find the first paragraph

Renaming a Konsole session from commandline after ssh

别来无恙 提交于 2020-01-13 11:02:46
问题 I use dcop to rename a Konsole session, such as dcop $KONSOLE_DCOP_SESSION renameSession "whatever" However, when I ssh to a server and from there, I issue this command, it does not work and gives error: ERROR: Couldn't attach to DCOP server! Is there a way using dcop or otherwise to rename the Konsole session, even though I have ssh 'ed to another computer. 回答1: The remote server appears not be running dcop and even if it were, that's not the instance you want to be communicating with

在xwindows界面中切换KDE与GNOME

时间秒杀一切 提交于 2020-01-13 01:40:08
在xwindows界面中切换KDE与GNOME 方法1: 在xwindows界面下通过菜单来切换,找到所需的菜单后执行,选择所需的桌面,重新启动xwindows即可。 方法2: 在命令提示符在xwindows界面中切换KDE与GNOME下 1.切换成为KDE 如果现然是GNOME,想切换成为KDE 1)首先退出X-win 2)首先执行 switchdesk KDE 3)然后执行startx运行X-win时,桌面就是KDE的了 2.切换成为GNOME 如果现然是KDE,想切换成为GNOME 1)首先退出X-Win 2)首先执行 switchdesk GNOME 3)然后执行startx运行X-win时,桌面就是GNOME 来源: https://www.cnblogs.com/wbyixx/p/12185452.html

[工具整理] Debain(KDE)下常用工具

可紊 提交于 2020-01-11 03:21:55
前言:   Debian安装了KDE桌面环境后,发现好多有用的功能没有集成,需要自己安装。这里主要介绍:截图工具 、云盘工具以及KDE上的网络管理工具。 0x01.截图工具:   推荐使用 flameshot,应用的界面QQ截图工具差不多,但是个人应用感受上却比QQ截图舒服。   安装:apt-get install flameshot   flamesshot config    # 配置flameshot   flameshot gui      # 截图   在系统设置里,将截图添加到快捷键中(可以设置为Ctrl + Alt + A) 0x02.云盘工具:   Linux上可以使用的国内的云盘工具很少,这里推荐使用 坚果云,手机与linux传文件很方便。   坚果云的链接地址: https://www.jianguoyun.com/s/downloads/linux   安装与使用,官网有非常详细的手册。 0x03.网络管理工具(KDE):   安装了KDE后,发现WIFI没法配置,非常头痛,之前就是先进gnome后连上wif后再转到kde环境下,非常麻烦,而且容易出现各种问题(比如窗口无法拖动,无法最大化等等)   利用KDE的软件中心,搜索 网络 直接在上面安装即可,安装时会提示输入root账户的密码。 来源: https://www.cnblogs.com/qtisec