gedit

“xdg_runtime_dir not set in the environment” and pkexec doesn't work

谁说胖子不能爱 提交于 2019-12-08 02:13:19
问题 I try to execute the following line on ubuntu-server 14.04: $ sudo gedit /usr/local/svn/passwd-team and I get this error: error: XDG_RUNTIME_DIR not set in the environment. (gedit: 11805): Gtk-WARNING **: can not open display: I Googled for help and saw that I had to write: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit Then I got the following message: === AUTHENTICATING FOR org.freedesktop.policykit.exec === Authenticating is needed to run '/usr/bin/env' as the super user

How do I browse the source code for a gem in Rails3 with RVM (linux & gedit)

懵懂的女人 提交于 2019-12-07 10:56:54
问题 I am running rails3 in Ubuntu and using gedit for coding. I am using RVM. To look at the gem source code I tried: bundle open jquery-rails That doesn't work since I hadn't setup an editor. After setting gedit as the editor it still doesn't work because gedit can't be passed directories. I guess it only works with files. Too bad :(. nathan.f77's answer to this question ( Lookup Gem or Plugin code packaged in a Rails3 application ) seems promising, but I wasn't able to follow his instructions.

“xdg_runtime_dir not set in the environment” and pkexec doesn't work

北慕城南 提交于 2019-12-06 04:25:52
I try to execute the following line on ubuntu-server 14.04: $ sudo gedit /usr/local/svn/passwd-team and I get this error: error: XDG_RUNTIME_DIR not set in the environment. (gedit: 11805): Gtk-WARNING **: can not open display: I Googled for help and saw that I had to write: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY gedit Then I got the following message: === AUTHENTICATING FOR org.freedesktop.policykit.exec === Authenticating is needed to run '/usr/bin/env' as the super user Authenticating as: student,,, (student) Password: no talloc stackframe at ../source3/param/loadparm.c:4864,

linux mint 1.9 qq 安装

六眼飞鱼酱① 提交于 2019-12-06 00:27:45
转: https://www.jianshu.com/p/cdc3d03c144d 1. 下载 qq 轻聊版,可在百度搜索后下载 QQ7.9Light.exe 2. 去wine的官网(https://wiki.winehq.org/Ubuntu) 安装 wine . 提醒网页可以切换成中文查看 3. 使用 wine 运行 QQ7.9Light.exe wine QQ7.9Light.exe 之后就是和Windows下面一样的图形界面了.安装完成后会发现没有办法输入账号,扫码登录后也没有办法输入中文.需要配置下qq的运行库 4.配置qq环境 终端输入 winecfg会弹出图形配置界面一开始只有一个默认配置,我的是配置好的 点击增加程序设置,找到qq的安装目录下的qq.exe 下面是我安装好的qq的路径 /home/(用户名)/.wine/drive_c/Program Files (x86)/Tencent/QQLite/Bin 点击打开就有了qq.exe这个单独的配置 选中"默认设置"下面的qq.exe这个配置,将Windows版本改为Windows10也可以改成其他的,点击上面的函数库,按照下图配置,就可以输入账号了. 点击应用,现在就可以输入账户和密码登录了, 5. 创建快捷方式 新建一个文件命名成qq.desktop 写如下内容,保存,就可以双击进入qq了

Gedit adds line at end of file

泪湿孤枕 提交于 2019-12-04 16:48:36
问题 The answer to this must be somewhere but I'm not finding it -- can anyone help me understand why in Gedit, if I have a page of code there is no extra trailing blank line, but then when I do a file comparison for my svn commit it shows an extra line being added at the end of the file? I have a feeling that Gedit is automatically adding an ending line break. But why, I have no idea... 回答1: Reality finally won and it's been fixed, but the broken behavior is still the default; enable the WYSIWYG

Syntax highlighting in gedit not working automatically

烈酒焚心 提交于 2019-12-04 14:10:08
I'm trying to use Ubuntu for Rails development and I'm liking gedit except the syntax highlighting does not seem to work with out me setting it for each file I open. Should it not recognize a .rb file a ruby file rather than me having to go into the menu and setting it as such? Have I missed a setting somewhere? Try to edit your /etc/mime.types file and add those “text/x-????” entries: text/x-ruby-source rhtml html.erb erb text/x-eruby rjs text/x-yaml yml yaml Try opening up /usr/share/gtksourceview-2.0/language-specs/ruby.lang again and addding this line at the top of the section: <property

Syntax Highlighting: How Does Eclipse Do It So Fast?

两盒软妹~` 提交于 2019-12-03 12:40:22
问题 I've developed a syntax highlighter in Java for Android and it's working well, but the problem is it can be slow with big files. So I'm wondering how source code editors like Eclipse and Gedit (Ubuntu) highlight what you've just wrote so quickly. For example, if you enter the ending greater than symbol when writing a HTML tag, it highlights the tag instantly. How is it so quick, even with big files? Is there a specific way they go about doing it or do they just perform the syntax highlighting

Gedit adds line at end of file

a 夏天 提交于 2019-12-03 11:51:50
The answer to this must be somewhere but I'm not finding it -- can anyone help me understand why in Gedit, if I have a page of code there is no extra trailing blank line, but then when I do a file comparison for my svn commit it shows an extra line being added at the end of the file? I have a feeling that Gedit is automatically adding an ending line break. But why, I have no idea... Reality finally won and it's been fixed , but the broken behavior is still the default; enable the WYSIWYG behavior in a terminal with gsettings set org.gnome.gedit.preferences.editor ensure-trailing-newline false

How to configure gedit as git core.editor?

ε祈祈猫儿з 提交于 2019-12-03 11:02:25
问题 I have gedit configured as git core.editor. git config --global core.editor "gedit" This works fine unless there is already a gedit windows open. In that case, COMMIT_EDITMSG is opened in the existing window and gedit returns immediately. Git ends up with an empty commit message and fails. This site (http://fabianschuiki.wordpress.com/2012/05/20/use-gedit-as-git-editor/) suggests using "gedit -s -w", but I don't have those options (and --new-window doesn't work): $ gedit -V gedit - Version 2

How to make Gedit look like Textmate?

戏子无情 提交于 2019-12-03 09:38:26
问题 I want to make Gedit look like Textmate, and act like it too. I have read many tutorials on the net, but can't find an easy to follow guide. I am using Ubuntu 11.04 and would like to use it for Ruby on Rails and other web languages. I want only the core functions such as class/project browser and syntax highlighting. Can someone provide an easy to follow guide or point me in the right direction? Thanks a lot in advance! 回答1: sudo apt-add-repository ppa:ubuntu-on-rails/ppa sudo apt-get update