gnome

How can I run a Perl script as root yet still affect user gconf settings

我的梦境 提交于 2019-12-19 03:37:08
问题 THE NEW QUERY: I am trying to make a unified script that initializes a new Ubuntu install to my liking, it must be run under sudo to install packages, but using gconftool-2 to affect gconf setting relies on the dbus session which is not handled properly by the method of simply changing UID in the script alone. Does someone know how to manage to do this? OLD QUERY: I am writing a Perl script to be executed on first boot of a new Ubuntu install. This is to ease adding repositories, installing

How do I get a list of all windows on my gnome2 desktop using pygtk?

半世苍凉 提交于 2019-12-19 03:24:09
问题 I'm a bit confused with some gtk and gnome concepts. I'm trying to get list of non minimized windows on my gnome2 desktop, but after reading the pygtk documentation and inspecting the results, I can't understand the results. Neither of the two snippets below appears to work. First I tried this.. >>> gtk.gdk.window_get_toplevels() [<gtk.gdk.Window object at 0xb74339b4 (GdkWindow at 0x8a4c170)>] >>> gtk.gdk.window_get_toplevels()[0].get_children() [] then this >>> d = gtk.gdk.DisplayManager() >

Debian 9 美化界面

天大地大妈咪最大 提交于 2019-12-18 20:51:43
Debian 桌面美化 安装 gnome-tweak-tool aptitude install gnome-tweak-tool 登陆 gnome-look 下载主题包 gnome-look上有很多主题包,这里主要讲解以下几种主题的安装配置方法 GTK3 Themes Icon Themes Gnome Shell Themes Mouse Cursors GTK3 Themes 安装 将下载下来的主题包解压,然后复制到/usr/share/themes目录 cp -R DarkRed1 /usr/share/themes/ 打开tweak-tool设置 这里以我下载的DarkRed1为例 Gnome Shell Themes 安装 这个主题包一般会包含在/usr/share/themes的主题包中,所以将下载下来的包解压到/usr/share/themes 打开tweak-tool设置 这里的Shell theme主题默认没有开启,需要先开启Extension选项中的User theses,然后再选择相关的Gnome Shell Themes Icon Themes 安装 将下载下来的主题包解压,然后复制到/usr/share/icons目录 打开tweak-tool设置,即可看到文件夹图标的改变 这里以windows 10 icons为例 Mouse Cursors 安装

Which gtk method I have to use to get temporary path in Ubuntu?

China☆狼群 提交于 2019-12-18 16:57:19
问题 How can I get the temporary directory path in Ubuntu? 回答1: On most Unix-like systems, you'd be looking for /tmp . If that's not quite the answer you were after, you should specify which bit of Ubuntu you're talking about. Certain applications will allow you to specify where their temporary files are put (such as with the TMP , TEMP or TMPDIR environment variables) but a lot of stuff would break under UNIX if /tmp didn't exist, so it's safe just to use that. If you want to make it configurable

Which gtk method I have to use to get temporary path in Ubuntu?

倾然丶 夕夏残阳落幕 提交于 2019-12-18 16:57:08
问题 How can I get the temporary directory path in Ubuntu? 回答1: On most Unix-like systems, you'd be looking for /tmp . If that's not quite the answer you were after, you should specify which bit of Ubuntu you're talking about. Certain applications will allow you to specify where their temporary files are put (such as with the TMP , TEMP or TMPDIR environment variables) but a lot of stuff would break under UNIX if /tmp didn't exist, so it's safe just to use that. If you want to make it configurable

Qt place new window correctly on screen, center over mouse, move into screen

谁说我不能喝 提交于 2019-12-18 16:56:55
问题 After many months of trying, searching, reviewing code, etc. I'm unable to find a solution to properly positioning a new window in QT. In my most basic case I simply want to get the final size of the window and center it under the mouse. It will be shifted to ensure that no part of the window is outside of the screen. I do not wish to have the window appear then move into position, that produces visual jarring, particularly with desktop FX turned on. The problems I've encountered, not all of

How to mount from command line like the Nautilus does? [closed]

血红的双手。 提交于 2019-12-18 10:39:10
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . On my Ubuntu linux box I can easily mount USB connected drives or CDROM clicking on devices icons that I can found on the Desktop. For example if I click on a USB connected drive icon the following things happen: a /media/LABEL directory is automatically created (where LABEL is the label of the disk and may vary

GTK+ 3.0 and GNOME 3 Programming! Any Blog or Book or Tutorial? [closed]

帅比萌擦擦* 提交于 2019-12-18 10:28:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I am new to gtk and gnome programming and like to study GTK+ 3.0 and Gnome 3 programming. Since both of these are recent APIs, I can't find a good tutorial or blog post about these topics. The books I found on GTK+ or GNOME programming are very old ones. So I decided to start with the latest gtk tutorial at http

win7远程连接ubuntu

被刻印的时光 ゝ 提交于 2019-12-18 09:42:02
为了解决 windows远程桌面访问ubuntu12.04 之一 中提到的Vnc远程桌面的缺点,我们采用第二种方法 xrdp ,该方法支持多用户登录并远程桌面。 1、首先参考 windows远程桌面访问ubuntu12.04 之一 提到的安装GNOME桌面方法; 2、进入 GNOME 界面,在左上角进入系统 - 》首选项 - 》桌面共享进行如下设置。 我们共享所使用的协议是 rdp ,所以我们要装这个东西。打开终端:依次安装 sudoapt-get install xrdp sudoapt-get install vnc4server tightvncserver 安装完毕以后,执行以下命令(该命令的作用是由于安装了 gnome桌面,ubuntu12.04中同时存在unity、GNOME多个桌面管理器,需要启动的时候指定一个,不然即使远程登录验证成功以后,也只是背景,其他什么也没有) cd/home/ youruser(youruser 是每个人自己的用户名 ) echo"gnome-session --session=ubuntu-2d" > .xsession sudo/etc/init.d/xrdp restart 3、 运行 windows 的 mstsc 远程成功。 参考: Win7用远程桌面(xrdp+vnc)连接Ubuntu xrdp doesnt work 来源:

Linux GUI development

和自甴很熟 提交于 2019-12-17 19:16:33
问题 I have a large GUI project that I'd like to port to Linux. What is the most recommended framework to utilize for GUI programming in Linux? Are Frameworks such as KDE / Gnome usable for this objective Or is better to use something more generic other than X? I feel like if I chose one of Gnome or KDE, I'm closing the market out for a chunk of the Linux market who have chosen one over the other. (Yes I know there is overlap) Is there a better way? Or would I have to create 2 complete GUI apps to