LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-22-2006, 01:16 AM   #16
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67

I have none of the above in my system, in whatever directory.
I do have a /etc/X11/initrc/Xinitrc and Xinitrc.xfce , but adding that line does not work.

More ideas?
 
Old 06-22-2006, 01:22 AM   #17
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Forget it. Not worth the hassle. I'll wait til a real solution comes up.

This searching for non-existant files and directories is too irritating.
 
Old 06-22-2006, 05:00 AM   #18
Randux
Senior Member
 
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705

Rep: Reputation: 55
CW just create an .xinitrc in your home directory and add the command there.
 
Old 06-22-2006, 01:43 PM   #19
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
No good, Randux. Doesn't kick it up. Tried it as just .xinitrc and as executable too...

Found out, tho, that it only crashes the bar when I have a 'code' in it for location...

Any more ideas, anybody?
 
Old 06-22-2006, 02:26 PM   #20
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Well if you aren't having luck with launching this one, until the glitch is fixed (I have no idea if anyone is even still developing the weather plugin), you will have to find another weather app.

I don't really know of any other ones that aren't huge or ugly. That is why I have been dealing with the glitch on this one for so long.
 
Old 06-22-2006, 02:34 PM   #21
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Now it's personal, though...lol

I figured it would be a simple matter to put
Code:
G_SLICE=always-malloc xfce4-panel &
in a spot that would work for all users, or at least one.
The code works only if I execute it in a terminal window, then when I close the window, the panel goes away.

More ideas on where to put it so Xfce4 always executes it? So far:
  • /etc/X11/initrc/Xinitrc
  • /etc/X11/initrc/Xinitrc.xfce4
  • ~/.xinitrc
Don't work....
 
Old 06-22-2006, 03:32 PM   #22
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I don't know why it would quit the panel when you closed the terminal. "&" should put it in the background anyway.

I only turn off my computer every week or so, so I just make a script that has that line in it, and when I first get into XFCE, I just run it and then the panel is up until I shut the machine down. Closing the terminal has never been a problem for me personally.

Let me mess around with this and see if I can figure something out.
 
Old 06-22-2006, 03:51 PM   #23
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
Weird. What if you make a directory named...
~/Desktop/Autostart/

and execute the command as a script whenever XFCE starts?
 
Old 06-22-2006, 03:58 PM   #24
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I think I see what is happening here.

xfce4-panel is usually started from the session manager. So if you are using the session manager, and just putting the xfce4-panel command in ~/.xinitrc, it won't work. In fact, it looks like a good deal of xinitrc isn't even read if you are using session management.

The only thing I have come up with so far is to make a script with the launch command, save that somewhere, then go into ./cache/sessions, find the session is has saved (there should only be 2 or 3 files in there), and then find where it launches the panel and point it to the script.

This works, but only as long as you don't save a new session. If you keep loading your previous one, that is fine, but if you close XFCE4 with the "Save session for future logins" option, it will overwrite the session file.
 
Old 06-22-2006, 04:03 PM   #25
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
Alright, I think I have it now.

Put this into a file:

Code:
# This starts the XFCE4 panel with the Weather plugin, until the plugin is
# fixed

killall -9 xfce4-panel
sleep 1
G_SLICE=always-malloc xfce4-panel &

# EOF
Call it "StartPanel", make it executable, and then drop it in ~/Desktop/Autostart.

The problem was, when I just had a script starting xfce4-panel in Autostart, the panel had not yet crashed, and it was unable to start a second instance of it. This will kill the panel (which is going to crash in a few seconds anyway), give it a second to die, and then start the panel again with the adjusted glibc setting.

This will take a bit longer to start the panel now, but it is better than nothing.

Actually, I wonder if you saved a session when the panel was not running, then loaded that session on subsequent logins, if you wouldn't have the problem of it trying to start two at the same time. Might be worth looking into.

Last edited by MS3FGX; 06-22-2006 at 04:08 PM.
 
Old 06-22-2006, 04:19 PM   #26
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
That did it for this user....


Any idea on what to do globally?
 
Old 06-22-2006, 04:25 PM   #27
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
xfce will launch any scripts it finds in ~/Desktop/Autostart/ if it exists. but can you launch it from the xfrun4 box instead of the terminal? usually alt & F2 will bring it up. then choose save session when you log out? this usually works for me. also I dont use the weather plugin (or the panel actually.) I like the weather desklets for adesklets (but I don't know if they have everything you want as I haven't used kweather either.)
 
Old 06-22-2006, 04:29 PM   #28
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Doesn't work at all from the xfrun4 box, read previous posts.

As stated, the solution from MS3FGX works fine for individual users, but I would like a global solution, rather than adding that in for every user individually.
 
Old 06-22-2006, 07:27 PM   #29
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
When I tried to add it to .xinitrc (before the session manager kicks in), all it would do is load the panel, and nothing else. I am not sure what is wrong there.

The only thing I can think of do to this globally, and this is a bit hackish, is to rename xfce4-panel to something like "/usr/bin/xfce4-panel.bin", and then create a script at "/usr/bin/xfce4-panel" that contains "G_SLICE=always-malloc xfce4-panel.bin &".

That way, when any program or user tries to run xfce4-panel, they will actually be running a script that calls the real program with the adjusted glibc arguments.
 
Old 06-22-2006, 07:30 PM   #30
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649

Original Poster
Blog Entries: 1

Rep: Reputation: 67
Came across the same thing.

It's fairly easy to add another program, but this panel thing is stumping me.

As I said, now it's personal......
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if an app is running and if it's not launch this app Coume Linux - General 3 07-28-2008 03:34 AM
Getting rid of XFCE4-panel...using xfce4 and Ubuntu jagibbs Linux - Software 1 04-06-2006 06:00 AM
fluxbox weather app psychobuffalo Linux - Software 1 08-29-2005 10:15 PM
App to get weather? jon_k Linux - Software 6 11-14-2004 09:19 PM
Weather Reporting App Acetylcholine Linux - Software 0 09-28-2004 12:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:56 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