Bug 228570 - Terminal visible on all workspaces in window list with compiz
Terminal visible on all workspaces in window list with compiz
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: compiz (Show other bugs)
6
All Linux
medium Severity medium
: ---
: ---
Assigned To: Kristian Høgsberg
:
: 241181 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-13 15:26 EST by Bojan Smojver
Modified: 2007-11-30 17:11 EST (History)
4 users (show)

See Also:
Fixed In Version: f8
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-11-19 10:19:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Bojan Smojver 2007-02-13 15:26:56 EST
Description of problem:
When terminal (gnome-terminal in my case) is open using nautilus-open-terminal
(i.e. right click on desktop, then click "Open Terminal"), the terminal window
is visible in Window List on all workspaces. This does not happen when terminal
is open using the menu.


Version-Release number of selected component (if applicable):
0.3.6-2.fc6

How reproducible:
Always.

Steps to Reproduce:
1. Update FC6 to latest compiz.
2. Run Gnome desktop with compiz.
  
Actual results:
Terminal visible in Window List on all workspaces.

Expected results:
Previously, terminal open through the menu and via nautilus-open-terminal would
behave the same.

Additional info:
I'm filing this as a compiz bug, because that how I discovered the behaviour,
but it may as well be a bug in Window List or something else. Not exactly sure.
Comment 1 Bojan Smojver 2007-02-13 15:27:32 EST
One additional reference:

http://forum.go-compiz.org/viewtopic.php?p=3541&sid=db0ca3090f8229133368dd61d06102fa
Comment 2 Bojan Smojver 2007-02-13 22:55:20 EST
If terminal is switched to xterm, this problem does not occur. Maybe something
to do with the way gnome-terminal is launched from nautilus-open-terminal
(nautilus-open-terminal.c):

----------------------------------
        if (g_str_has_prefix (terminal_exec, "gnome-terminal")) {
                dfile = lookup_in_data_dirs ("applications/gnome-terminal.desktop");
        } else {
                dfile = NULL;
        }

        g_shell_parse_argv (terminal_exec, NULL, &argv, NULL);

        display_str = NULL;
        old_display_str = g_getenv ("DISPLAY");

        screen = g_object_get_data (G_OBJECT (item),
"NautilusOpenTerminal::screen");
        if (screen != NULL) {
                display_str = gdk_screen_make_display_name (screen);
                g_setenv ("DISPLAY", display_str, TRUE);
        }

        if (dfile != NULL) {
                if (working_directory != NULL) {
                  if (chdir (working_directory) != 0)
                    g_assert_not_reached();
                }

                ditem = gnome_desktop_item_new_from_file (dfile, 0, NULL);

                gnome_desktop_item_set_string (ditem, "Exec", terminal_exec);
                gnome_desktop_item_set_launch_time (ditem,
gtk_get_current_event_time ());
                gnome_desktop_item_launch (ditem, NULL,
GNOME_DESKTOP_ITEM_LAUNCH_USE_CURRENT_DIR, NULL);
                gnome_desktop_item_unref (ditem);
                g_free (dfile);
        } else {
                g_spawn_async (working_directory,
                               argv,
                               NULL,
                               G_SPAWN_SEARCH_PATH,
                               NULL,
                               NULL,
                               NULL,
                               NULL);
        }
----------------------------------

The dfile is only used if the name is "gnome-terminal", which then causes Gnome
functionality to launch the app, rather than regular process spawn.

Maybe something needs to be told to gnome_desktop_item_launch() in order to not
do that?

BTW, I can't reach the nautilus-open-terminal home page at
http://manny.cluecoder.org/packages/nautilus-open-terminal/. I get a DNS error.
Not sure where the new home page for this software lives...
Comment 3 Paul W. Frields 2007-06-27 17:24:32 EDT
*** Bug 241181 has been marked as a duplicate of this bug. ***
Comment 4 Matěj Cepl 2007-11-01 08:10:20 EDT
Does anybody on the Cc: list still use FC6 and could reproduce this bug?
Comment 5 Radek Vokal 2007-11-01 08:26:42 EDT
yes
Comment 6 Bojan Smojver 2007-11-01 16:36:04 EDT
This is also a problem in F7. Not sure about F8 - haven't tried.
Comment 7 Bojan Smojver 2007-11-18 17:55:20 EST
Fixed in F8. Feel free to close.
Comment 8 Matěj Cepl 2007-11-19 10:19:31 EST
Thanks for letting us know.

Note You need to log in before you can comment on or make changes to this bug.