LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10:44 AM   #1
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567
Blog Entries: 19

Rep: Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448
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, 12:39 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

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

Can you post the script of "start geany" here?
 
Old 08-10-2018, 08:32 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

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, 09:37 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567

Original Poster
Blog Entries: 19

Rep: Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448
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, 09:50 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,567

Original Poster
Blog Entries: 19

Rep: Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448Reputation: 4448
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, 16 views)

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


Reply



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 07:08 PM
Weird bug eeluve Linux - Newbie 7 11-30-2011 09:12 PM
[SOLVED] Adding wvdial to start menu/desktop, running wvdial without shell. Mogget Linux - Desktop 1 08-07-2009 02:08 AM
Intel i810 on-board graphics card bug, with Ubuntu server 7.04 running Ubuntu-Desktop calebf Linux - Server 2 05-14-2007 11:53 PM
running limewire from fluxbox menu or desktop icon tuneout Linux - Software 2 08-15-2005 07:58 AM

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

All times are GMT -5. The time now is 10:30 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
Open Source Consulting | Domain Registration