Tag Info

Hot answers tagged

13

/usr/lib/indicator-session/gtk-logout-helper can be used to open the following dialogs: Log Out (/usr/lib/indicator-session/gtk-logout-helper --logout) Restart (/usr/lib/indicator-session/gtk-logout-helper --restart) Shutdown (/usr/lib/indicator-session/gtk-logout-helper --shutdown)


10

Just for those that was unable to solve this, here is what I did to make my dialogs moveable. I used dconf-editor which can be easily installed by: sudo apt-get install dconf-editor Open: dconf-editor Browse to: org -> gnome -> shell -> overrides -> attach-modal-dialogs And set it to: false Or everything in one line without installing ...


8

To my knowledge, this is a "feature" of GTK+ 3.x, and I'm not so certain it can be changed. If I find a solution I will update my answer, but for now I don't know of any (other than reporting a bug). Update: I believe I may have found a partial solution. It's not a permanent one unfortunately. Install dconf-tools. Run dconf-editor. Navigate to ...


7

Same problem here. The fix: Install ccsm as explained in earlier post. Go to General->General Options->Display Settings. From drop down menu of 'Overlapping Output Handling' select 'Prefer smaller output'. (My monitor is smaller than my TV.) Apparently the 'Smart Mode' isn't very smart (at least on my setup).


6

You can also try to have a look at the help for the add command. You can do either of these: invoke the quickly help add command invoke the quickly tutorial command and browse to the add command reference From the outupt of quickly help add For instance 'quickly add dialog dialog-name' will create: A subclass of Gtk.Dialog called DialogNameDialog in ...


6

In Nautilus, choose Edit ▸ Preferences ▸ Behavior ▸ Executable Text Files ▸ Run executable text files when they are opened.


5

If you're using Compiz I find that using the Place Windows plugin is a good way to have predictable windows placement. You'll need to install the CompizConfig Settings Manager (aka ccsm) to get going. One warning: CCSM can break things if you run around doing things you're not supposed to, so focus on the task at hand :) I currently have mine set to: ...


5

Use xautolock xautolock -time 15 -locker notify-send -t time "Title" "message_here" -i "path/to/icon" or use zenity or any dialog you wish. See http://manpages.ubuntu.com/manpages/trusty/man1/xautolock.1.html Edit: After the edit to the question, the OP went with zenity xautolock -time 15 -locker "zenity --text='<text here>' --warning"


4

The highlighting of the "O" in your screenshot is the terminal's cursor. You can't control its appearance, it's rendered according to each user's terminal settings. For example, here is how it appears in the OS X terminal with the default cursor style ("Block cursor"): Here it is with the cursor style changed to "Vertical bar": Here it is with the cursor ...


4

In the download dialog you can drag folders from the file list on the right into the shortcut list to add them. Or you can edit the file $HOME/.config/gtk-3.0/bookmarks using a text editor like gedit.


4

Take a look at the file ~/.config/gtk-2.0/gtkfilechooser.ini. You should see something like this: [Filechooser Settings] LocationMode=filename-entry ShowHidden=true ExpandFolders=true ShowSizeColumn=true GeometryX=2064 GeometryY=1053 GeometryWidth=768 GeometryHeight=638 SortColumn=name SortOrder=ascending Change SortColumn=name to SortColumn=modified. I ...


4

I was also bugged by this behaviour and gave it a closer look during the last days. I have found only one of the GTK3 applications so far that always brings up Recently Used at fresh start: Gedit. All other apps I have tested (Totem, Eog, Evince, File-Roller, ...) start with a "normal" folder in their file chooser (tested with fresh guest session). So I ...


4

Your .ICEauthority file probably isn't owned by your user (maybe because you ran something as root/with 'sudo' that has overwritten it). You can check this by running (in a terminal): ls -l /home/you/.ICEauthority If it says something other than -rw------- 1 you you ... you need to make it owned by your user again: sudo chown you:you ...


4

That is not really a dialog box expecting an answer from you but Firefox's downloads window, which is shown by default when downloading a file. However, you can switch it off in Firefox's preferences (untick the checkbox "Show downloads windows when downloading a file"). You can find Firefox's preferences under Edit->Preferences in the menu. See the ...


4

This is a bug which has beenreported to the developers. You can mark it as affecting you from its bug page. https://bugs.launchpad.net/compiz/+bug/754508


3

You might find your solution here: Audio output device, fast switch? or here: How to change pulseaudio sink with "pacmd set-default-sink" during playback?


3

The solution has been given in this forum topic. The specific answer is buried somewhere in that thread. But I'll provide the steps here. However, that forum topic will keep you updated as things evolve. These steps allow the use of KDE dialogs with Firefox in Kubuntu 12.04 (other KDE distros are supported too -- see the forum topic). My solution (given ...


3

It has been decided that the Unity dialogs are not ready for prime time. They won't ship in Ubuntu 11.10 (see this changlog).


3

I found this stackoverflow post, which leads to the documentation on the run function of a GtkDialog, where it states: The run() method blocks in a recursive main loop until the dialog either emits the "response" signal, or is destroyed. If the dialog is destroyed, the run() method returns gtk.RESPONSE_NONE; otherwise, it returns the response ID ...


3

Display path once From the breadcrumb view in both Nautilus (top), and Thunar (bottom) we can temporarily disable breadcrumb view by pressing Ctrl + L: The path will aready be selected ready for copy & paste. Disable Nautilus breadcrumbs We can set the default behaviour for Nautilus using dconf-editor when dconf-tools are installed. Browse to ...


3

If you run the following script in the background, it will check the idle-time every 5 seconds. If the idle time exceeds a given amount of time (in minutes), a message will appear, defined in a textfile. (through a Zenity window). #!/usr/bin/env python3 import subprocess import time ######################################### t=15 textfile = ...


2

I have not found a system-wide shortcut (even on OS X, the shortcut may change depending on the application), but there is a way to find the right shortcut for each prompt: When the prompt appears, hold alt and look at the underlined characters (as you would for an application top menu). Of course, we are interested in the "Close without saving" option ...


2

Not an answer, but you might be rather interested in dialog alternative - whiptail As for your dialocrc file, the line button_label_active_color = (YELLOW,BLUE,ON) might be what you wanna


2

First you need to get a hold of the dialog gui object. If I remember correctly, quickly uses glade for the gui and then loads it via the GtkBuilder, so. Get the dialog gui object from the builder dia = self.builder.get_object('the_name_of_the_dialog_in_glade') and then you can run it return_value = dia.run() the return_value will be a code that ...


2

It seems to me that I've seen this behaviour a couple of times: In one case the application was opening a window, the windows manager was centering it, and then the application was increasing its size. If that were the case here your windows would be displaced to the right--and they aren't. In another case I attached another monitor that had more ...


2

The dialog manpage mentions whiptail (in a rather deprecating fashion). It does not have the --ascii-lines option, but it does not mess up the screen either: The script: #!/bin/sh TEMP=/tmp/answer$$ whiptail --title "Administrative tasks" --menu "Tasks :" 20 0 0 1 "Display firewall settings" 2 "Restore firewall settings" 3 "Flush Firewall settings" ...


2

Reinstalling the packages won't necessarily help because localization info was separated in Ubuntu. You may want to open Settings, Language support (icon with United Nations flag) and see if it prompts for localization not being completely installed. The font issue is specially challenging because these Unicode symbols should be supported by default. If you ...


2

I just had the same issue. I got rid of it by using the following command ~ sudo chown user:user /home/user Replace user by your user name. Cheers!


2

This is by design in Cinnamon, as well as in gnome shell This feature is for arranging Modal Dialogs within their parent window, and can be disabled gnome shell by the use of gconftool. It can also be disabled in cinnamon. This feature has also been seen in Mac OSX


2

When you write copied='cp -v *SNAPSHOT.jar /home/user/folder' this is only a variable assignment, the command is executed when you write $copied that is equivalent to cp -v *SNAPSHOT.jar /home/user/folder If you want to capture the output of the command you should do output=$(cp -v *SNAPSHOT.jar /home/user/folder) this execute the cp command and ...



Only top voted, non community-wiki answers of a minimum length are eligible