LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux
User Name
Password
antiX / MX Linux This forum is for the discussion of antiX and MX Linux.

Notices


Reply
  Search this Thread
Old 08-08-2018, 11:44 AM   #1
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX
Posts: 2,450
Blog Entries: 6

Rep: Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168
Weird bug in desktop menu when running geany


I've just installed the latest AntiX on a Samsung laptop. It runs icewm as its desktop and the desktop menu is using geany as its default editor. When I click on it, a window flashes up and immediately disappears. There's nothing wrong with geany as such: you can run it from a terminal. Other menu options such as "Default browser" work normally.

The menu runs a bash script called desktop-defaults-run. I studied this and found that the operative command is: gksu -u `whoami` geany. When I typed this in a terminal, it crashed in the same way. Yet "gksu -u hazel geany" ran normally.

It gets odder. "gksu -u `whoami` geany &" works. And once I had run the command in this form, "gksu -u `whoami` geany" also worked. But when I ran it from the menu, it crashed again and no longer worked from a terminal either. In other words, the crashing behaviour can be switched on and off.

I can only assume that there is some kind of weird interaction between whoami, geany and bash's job control system.
 
Old 08-10-2018, 01:39 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Kubuntu 18.04, Manjaro, Win 10
Posts: 2,159

Rep: Reputation: 158Reputation: 158
is there any output of the script in terminal?

Can you post the script of "start geany" here?
 
Old 08-10-2018, 09:32 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,349
Blog Entries: 36

Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
I've just installed the latest AntiX on a Samsung laptop. It runs icewm as its desktop and the desktop menu is using geany as its default editor. When I click on it, a window flashes up and immediately disappears. There's nothing wrong with geany as such: you can run it from a terminal. Other menu options such as "Default browser" work normally.

The menu runs a bash script called desktop-defaults-run. I studied this and found that the operative command is: gksu -u `whoami` geany. When I typed this in a terminal, it crashed in the same way. Yet "gksu -u hazel geany" ran normally.

It gets odder. "gksu -u `whoami` geany &" works. And once I had run the command in this form, "gksu -u `whoami` geany" also worked. But when I ran it from the menu, it crashed again and no longer worked from a terminal either. In other words, the crashing behaviour can be switched on and off.

I can only assume that there is some kind of weird interaction between whoami, geany and bash's job control system.
wrt: "flashing", Any clipboard helpers installed?
Have you tried a new user profile and tested as the new user?
 
Old 08-10-2018, 10:37 AM   #4
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX
Posts: 2,450

Original Poster
Blog Entries: 6

Rep: Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168
I didn't think of running the entire script from the terminal. I did that just now (desktop-defaults-run -te) and it worked. It output the word "Geany" and then launched the application successfully. And then I triggered it from the menu and that worked too! Curiouser and curiouser.

So I logged out, logged in again and then tried from the menu. Still works. So now I have an unreproducible bug.

Keruskerfuerst, I don't know what you mean by "start geany". I've never heard of a "start" command. I certainly don't have one.
 
Old 08-10-2018, 10:50 AM   #5
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX
Posts: 2,450

Original Poster
Blog Entries: 6

Rep: Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168Reputation: 1168
If you want the actual script that the menu runs, here it is.

Just out of interest: when a shell script is run from a menu, where do standard input, output and error go?
Attached Files
File Type: txt desktop-defaults-run.txt (2.8 KB, 2 views)

Last edited by hazel; 08-10-2018 at 11:05 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Weird error after running yum install "Desktop" lancelyons Linux - Desktop 2 11-26-2012 08:08 PM
Weird bug eeluve Linux - Newbie 7 11-30-2011 10:12 PM
[SOLVED] Adding wvdial to start menu/desktop, running wvdial without shell. Mogget Linux - Desktop 1 08-07-2009 03:08 AM
Intel i810 on-board graphics card bug, with Ubuntu server 7.04 running Ubuntu-Desktop calebf Linux - Server 2 05-15-2007 12:53 AM
running limewire from fluxbox menu or desktop icon tuneout Linux - Software 2 08-15-2005 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > antiX / MX Linux

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration