LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GNOME shell menu on FluxBox (https://www.linuxquestions.org/questions/linux-newbie-8/gnome-shell-menu-on-fluxbox-4175413782/)

ciremai 06-28-2012 01:14 AM

GNOME shell menu on FluxBox
 
Hi all,
I know about GNOME shell after installing FluxBox (desktop manager) on my Back Track 5R2 linux. GNOME shell menu is listed in: FluxBox > System > Utility > GNOME shell. I try to click the menu and a small sized box is pop up without menu or anything. it only contains windows title and blank white space below it. I want to close it but there's no close symbol (X) or anything, so I type "close" in the white box and then press "enter". Then it disappear.

But then I realize that when I click GNOME shell menu again nothing is pops up. Also the icon besides GNOME shell menu is disappear. I try to type "gnome-shell" in the terminal:
Code:

root@bt:~# gnome-shell
and the outcome is:

Code:

Window manager warning: Screen 0 on display ":0.0" already has a window manager
I try to do the same thing in CLI mode, and the outcome is:

Code:

Error: unable to open display
 Failed to start shell
 Traceback (most recent call last):
    File "/usr/bin/gnome-shell", line 277, in<module>
        shell = start_shell()
    File "/usr/bin/gnome-shell", line 134, in start_shell
        (server_glx_extensions, client_glx_extensions, glx_extensions) = _get_glx_extensions()
    File "/usr/bin/gnome-shell", line 73, in _get_glx_extensions
        server_glx_extensions = set (re.split("\s*,\s*", glxinfo_map['server glx extensions'] strip()))
 KeyError: 'server glx extensions'

Since the GNOME shell menu is malfunction so I thought the program is broken. I try to re-install gnome-shell by typing "apt-get install gnome-shell" in terminal but it says that I am using the newest version of gnome-shell.

I don't know what happen here? how to fix this? what is GNOME shell? How to restore the GNOME shell menu on FLUXBOX?

my system:
OS linux backtrack 5 R2
notebook HP compaq NC4010
ATI Radeon IGP 350M graphics

ewalter 06-28-2012 01:59 AM

Try right clicking on your desktop.

rokytnji 06-28-2012 03:03 AM

Here is a Ubuntu thread that mentions glx and the radeon driver with a similar error message like you posted. I am posting this because of your posted Laptop specs which show radeon.

http://ubuntuforums.org/showthread.p...05154&page=102

I took the easy way out in Fluxbox in AntiX, for a fuax Gnome shell using Tint2 taskbar set to autohide in Fluxbox.

http://i39.tinypic.com/29llnbt.jpg

ciremai 06-28-2012 06:04 AM

@rokytnji

thank you, but when I type "gnome-shell --replace" in CLI, the outcome is little bit different with that on http://ubuntuforums.org/showthread.p...05154&page=102
here is mine:

Code:

root@bt:~#gnome-shell --replace
Error: unable to open display
Failed to start shell
Traceback (most recent call last):
    File "/usr/bin/gnome-shell", line 317, in<module>
        restore_gnome()
    File "/usr/bin/gnome-shell", line 191, in restore_gnome
        launch_component("/desktop/gnome/sesssion/required_components/windowmanager")
    File "/usr/bin/gnome-shell", line 170, in launch_component
        component = client.get_string(gconf_path)
glib.GError: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit; or you stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information (Details - 1 : Not running within active session)

and here is the outcome when I type "gnome-shell --replace" in terminal:

Code:

root@bt:~# gnome-shell --replace
Window manager warning: Screen 0 on display ":0.0" already has a window manager
root@bt:~# Window manager warning: Screen 0 on display ":0.0" already has a window manager

here is my situation (I am using FluxBox), when I right click on the desktop then go to: FluxBox > System > Utility > GNOME shell, there is no icon besides "GENOME shell" text and when I click that menu (GNOME shell) there's nothing pops up, the menu just dead.

rokytnji 06-28-2012 08:29 AM

For menu entries in Fluxbox. They are located in the hidden folder in /home/<username>/.fluxbox.

Open that folder and look in there for the text file and see what it says.

to find the path for executable in gnome-shell in terminal.

Code:

which gnome-shell
will show you that. the menu entry for gnome-shell should look something like

[exec] (gnome-shell) {gnome-shell} <>

or

[exec] (ApplicationName) {/path/to/program} < path/to/icon>


http://fluxbox.sourceforge.net/docs/...t.php#commands

ciremai 06-28-2012 10:47 AM

Code:

root@bt:~# which gnome-shell
/usr/bin/gnome-shell

actually this is a Python script. And this is the script that always pointed out on error messages on my previous posts.


regarding the menu configuration. I try to type:
Code:

root@bt:~# gedit ~/.fluxbox/menu
and this is the partial result:

Code:

..........
..........
[begin] (-> FluxBox <-)
[encoding] {UTF-8}
        [exec] (Shell) {urxvt} </usr/share/flux-for-back/icondef/gksu-root-terminal.png>
        [exec] (Firefox) {firefox} </usr/share/flux-for-back/icondef/ffox.png>
        [exec] (Run) {fbrun} </usr/share/flux-for-back/icondef/tracker.png>
[submenu] (Net) </usr/share/flux-for-back/icondef/netscape.png>
        [include] (/usr/share/flux-for-back/inc/BT-Net)
[end]

[submenu] (Graphics) </usr/share/flux-for-back/icondef/gthumb.png>
        [include] (/usr/share/flux-for-back/inc/BT-Graphics)
[end]

[submenu] (Multimedia) </usr/share/flux-for-back/icondef/mplayer.png>
        [include] (/usr/share/flux-for-back/inc/BT-Multimedia)
[end]

[submenu] (System) </usr/share/flux-for-back/icondef/gpm-statistics.png>
       
                [submenu] (Editor) </usr/share/flux-for-back/icondef/120px-TextEdit_Mac.png>
                        [include] (/usr/share/flux-for-back/inc/BT-DEV)
                [end]
               
                [separator]
               
                [exec] (Gentoo) {gentoo --root-ok} </usr/share/flux-for-back/icondef/gentoo.png>
                [exec] (MC) {urxvt -e sh -c 'mc -b'} </usr/share/flux-for-back/icondef/gnome-gnect.png>
               
                [separator]
               
                [submenu] (Utility) </usr/share/flux-for-back/icondef/drawer.png>
                        [include] (/usr/share/flux-for-back/inc/Utility)
                       
                        [submenu] (Settings) </usr/share/flux-for-back/icondef/drawer.png>
                                [exec] (WBar) {wbar} </usr/share/flux-for-back/icondef/galternatives.png>
                                [exec] (WBarConf) {wbarconf} </usr/share/flux-for-back/icondef/wbarconf.png>
                                [exec] (GRandr) {grandr} </usr/share/flux-for-back/icondef/x.png>
                                [exec] (Resapplet) {resapplet} </usr/share/flux-for-back/icondef/120px-G3260_Mac.png>
                        [end]
               
                [include] (/usr/share/flux-for-back/inc/BT-K)
       
[end]


[end]
........
........
........

there's no detail information about "GNOME shell" under "Utility" sub menu. but then I go to edit /usr/share/flux-for-back/inc/Utility, there I found this:

Code:

[exec] (About GNOME) {cd  ; gnome-about} </usr/share/pixmaps/gnome-logo-icon-transparent.png>
[exec] (Archive Manager) {cd  ; file-roller } </usr/share/pixmaps/file-roller.xpm>
[exec] (Byobu Window Manager) {urxvt -e sh -c ' cd  ; byobu-launcher'} </usr/share/flux-for-back/icondef/btmenu.png>
[exec] (Disk Usage Analyzer) {cd  ; baobab} </usr/share/pixmaps/baobab.xpm>
[exec] (File Browser) {cd  ; nautilus --no-desktop --browser } </usr/share/icons/Tango/16x16/apps/system-file-manager.png>
[exec] (gedit) {cd  ; gedit } </usr/share/icons/Tango/16x16/apps/accessories-text-editor.png>
[exec] (GNOME Shell) {cd  ; /usr/bin/gnome-shell} </usr/share/pixmaps>
[exec] (KDocker) {cd  ; kdocker} </usr/share/flux-for-back/icondef/btmenu.png>
[exec] (Panel) {cd  ; gnome-panel} </usr/share/icons/hicolor/16x16/apps/gnome-panel.png>
[exec] (Resolution Switcher) {cd  ; resapplet} </usr/share/pixmaps/resapplet.png>
[exec] (Search for Files...) {cd  ; gnome-search-tool} </usr/share/icons/Tango/16x16/actions/system-search.png>
[exec] (Take Screenshot) {cd  ; gnome-screenshot --interactive} </usr/share/icons/gnome/16x16/apps/applets-screenshooter.png>
[exec] (Terminal) {cd  ; gnome-terminal} </usr/share/icons/Tango/16x16/apps/utilities-terminal.png>
[exec] (Terminator) {cd  ; terminator} </usr/share/pixmaps/terminator.png>
[exec] (Tilda) {cd  ; tilda} </usr/share/pixmaps/tilda.png>
[exec] (WBarConf) {cd  ; wbarconf} </usr/share/pixmaps/wbarconf.png>

as you can see, GNOME Shell is the only menu which don't have ICON.png in it's last line (I don't know is this the default setting or not). And I guest it execute /usr/bin/gnome-shell, which is contain Error on several lines? OR is it just because I lost some dependencies?
what makes me crazy is because it used to generate a window when I click the menu

frankbell 06-28-2012 09:25 PM

That menu syntax looks odd to me; I don't understand all the cd commands. Did you write it or was it generated by something? It also doesn't look like the standard Fluxbox menu format as described at the wiki.

Here's a snippet from my Fluxbox menu; the parts that refer to icons were copied from the default universal menu--I don't worry much about icons in the menu myself:

Code:

[exec] (Gedit) {/usr/bin/gedit} </usr/share/pixmaps/gedit-icon.xpm>
      [exec] (GFTP) {/usr/bin/gftp}
      [exec] (The GIMP) {/usr/bin/gimp} </usr/share/pixmaps/gimp.xpm>
      [exec] (gmix (Gnome 2.0 Mixer\)) {/usr/bin/gnome-volume-control} </usr/share/pixmaps/gnome-mixer.xpm>
      [exec] (Google Earth) {googleearth}

All the missing reference to an icon means is that an icon won't display in the menu; it should have no effect on functionality.

Note that I don't have an answer for you, though I am somewhat puzzled as to why you might want to call Gnome-shell from inside Fluxbox. I just have questions about why the menu looks so unusual.

ciremai 06-29-2012 03:07 AM

Quote:

Originally Posted by frankbell (Post 4714626)
That menu syntax looks odd to me; I don't understand all the cd commands. Did you write it or was it generated by something? It also doesn't look like the standard Fluxbox menu format as described at the wiki.

Note that I don't have an answer for you, though I am somewhat puzzled as to why you might want to call Gnome-shell from inside Fluxbox. I just have questions about why the menu looks so unusual.

I just copy it from original code

your syntax is same with mine on ~/.fluxbox/menu. please check my previous post
while syntax that contains cd is on /usr/share/flux-for-back/inc/Utility which is part of ~/.fluxbox/menu.

As I said before that I have try to call gnome-shell from CLI (outside fluxbox) as well but I got error messages as I describe on previous posts

yes, of course, ICON is not important ( I can add to it Right?). The most important is functionality.
plz help

frankbell 06-29-2012 09:12 PM

Quote:

while syntax that contains cd is on /usr/share/flux-for-back/inc/Utility which is part of ~/.fluxbox/menu.
Flux-for-back appears to be an adaptation of Fluxbox for Backtrack, and not standard Fluxbox.

My experience is strictly with Fluxbox; I'm afraid I'm not qualified to assist with Flux-for-Back.


All times are GMT -5. The time now is 01:33 AM.