Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-22-2006, 01:16 AM
|
#16
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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?
|
|
|
06-22-2006, 01:22 AM
|
#17
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
06-22-2006, 05:00 AM
|
#18
|
Senior Member
Registered: Feb 2006
Location: Siberia
Distribution: Slackware & Slamd64. What else is there?
Posts: 1,705
Rep:
|
CW just create an .xinitrc in your home directory and add the command there.
|
|
|
06-22-2006, 01:43 PM
|
#19
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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?
|
|
|
06-22-2006, 02:26 PM
|
#20
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
06-22-2006, 02:34 PM
|
#21
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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....
|
|
|
06-22-2006, 03:32 PM
|
#22
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
06-22-2006, 03:51 PM
|
#23
|
Member
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Rep:
|
Weird. What if you make a directory named...
~/Desktop/Autostart/
and execute the command as a script whenever XFCE starts?
|
|
|
06-22-2006, 03:58 PM
|
#24
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
06-22-2006, 04:03 PM
|
#25
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
06-22-2006, 04:19 PM
|
#26
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
That did it for this user....
Any idea on what to do globally?
|
|
|
06-22-2006, 04:25 PM
|
#27
|
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:
|
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.)
|
|
|
06-22-2006, 04:29 PM
|
#28
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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.
|
|
|
06-22-2006, 07:27 PM
|
#29
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
06-22-2006, 07:30 PM
|
#30
|
Senior Member
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Original Poster
Rep:
|
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......
|
|
|
All times are GMT -5. The time now is 09:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|